Hallo Thorsten,
erstmal ein Dankeschön, die Abbildung sieht so aus wie ich auch gerne haben möchte. Außer das die Einheiten bei mir fehlen.
Nur jetz zeigt mir der Compiller sieben fehler an, die ich nicht so ganz richtig nachvolziehe.
Mein Code zu meiner Dokumentklasse sieht folgender maßen aus
\documentclass[a4paper,oneside,11pt,openany,BCOR=10mm,cleardoubleplain]{scrbook}
%%%%%%%%%%%%% Deutsche Anpassungen %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{capt-of}
%\usepackage{caption}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{graphicx}
%% Packages für Formeln und Farben %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amsfonts}
\usepackage{color}
\usepackage{tabularx}
\usepackage[colorlinks=true,linkcolor=black,citecolor=black]{hyperref}
%\SelectInputMappings{%
% adieresis={ä},
%germandbls={ß},
%Euro={€}
%}
%\usepackage[%
% load={abbr,physical},
% loctolang={DE:ngerman}
%]{siunitx}
%\usepackage[%
% font=small,
% labelfont=bf,
% tableposition=top
%]{caption}
\usepackage{tikz}
\usepackage{selinput}
\setcounter{secnumdepth}{3}
\thispagestyle{empty}
\setlength{\textheight} {270mm}
\setlength{\textwidth} {150mm}
%Kopfzeile
\setlength{\topmargin} {-25mm}
%Fußzeile
\setlength{\footskip} {10mm}
%Seiterand links
\setlength{\oddsidemargin} {10mm}
%Seite rechts und Rand
\setlength{\marginparwidth} {0mm}
\setlength{\marginparsep} {0mm}
\parindent0mm
\begin{document}
\begin{figure}[ht]
\centering
\begin{tikzpicture}[%
>=stealth,
every node/.style={%
inner sep=1pt,
text badly centered} ]
\node[draw,minimum width=3cm,minimum height=1.5cm] (robot) at (0,4) {Roboter};
\node[draw,rotate=60,minimum width=2cm,minimum height=1cm] (polaris) at (3,0) {Polaris};
\draw[->] (0,0) -- (polaris) node[below=1pt,midway] {\small $b=\SI{110}{\cm}$};
\draw[->] (0,0) -- (robot) node[left=1pt,midway] {\small $d=?$};
\draw[->] (polaris) -- (robot.center) node[above=1pt,midway,sloped] {\small $c=\SI{229}{\cm}$};
\draw[->] (robot.south) -- (robot.center) node[left=1pt,midway] {\footnotesize $a=\SI{30}{\cm}$};
\end{tikzpicture}
\caption{Abstand zwischen Roboter und dem Polaris}\label{fig:abstand1}
\end{figure}
\end{document}
Die Fehler die der compiller mir zeigt: Die letzten sechs Fehler hat was mit den Einheiten zu tun.
! Package tikz Error: I do not know what to do with the option ``every node/.st
yle={{inner sep=1pt, text badly centered} }''.
See the tikz package documentation for explanation.
Type H <return> for immediate help.
...
l.1728 text badly centered} ]
This error message was generated by an \errmessage
command, so I can't give any explicit help.
Pretend that you're Hercule Poirot: Examine all clues,
and deduce the truth by order and method.
! Undefined control sequence.
l.1731 ...s) node[below=1pt,midway] {\small $b=\SI
{110}{\cm}$};
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
l.1731 ...elow=1pt,midway] {\small $b=\SI{110}{\cm
}$};
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
l.1733 ...[above=1pt,midway,sloped] {\small $c=\SI
{229}{\cm}$};
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
l.1733 ...t,midway,sloped] {\small $c=\SI{229}{\cm
}$};
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
l.1734 ...e[left=1pt,midway] {\footnotesize $a=\SI
{30}{\cm}$};
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
! Undefined control sequence.
l.1734 ...pt,midway] {\footnotesize $a=\SI{30}{\cm
}$};
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
Danke im Voraus für die super Hilfe