Seite 1 von 1
SiUnitx will nicht so recht
Verfasst: Mi 15. Mai 2013, 22:54
von Peterlinho
Hi,
ich weiß nicht was ich bei der Eingabe falsch mache beim Siunitx Paket:
Geschwindigkeit $c_{0}=SI[per-mode=fraction]{220}{\metre\per\second}$
Ich erhalte immer eine Fehlermeldung
Danke für Tipps!
Verfasst: Mi 15. Mai 2013, 23:04
von Johannes_B
Welche Fehlermeldung?
Minimalbeispiel?
\documentclass{scrartcl}
\usepackage{siunitx}
\begin{document}
Geschwindigkeit $c_{0}=\SI[per-mode=fraction]{220}{\metre\per\second}$
\end{document}
Verfasst: Mi 15. Mai 2013, 23:15
von Peterlinho
Ich dachte das sei schnell gelöst und der Code für solche Formeln bekannt und habe auf ein Minimalbeispiel verzichtet.
Der Fehlercode:
! Undefined control sequence.
\metre ->\ERROR
l.989 ... $c_{0}=SI[per-mode=fraction]{220}{\metre
\per\second}$
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.
\per ->\ERROR
l.989 ...{0}=SI[per-mode=fraction]{220}{\metre\per
\second}$
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.
\second ->\ERROR
l.989 ...per-mode=fraction]{220}{\metre\per\second
}$
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.
[13
]
Verfasst: Mi 15. Mai 2013, 23:38
von Epllus
So weit ich das verstehe, kennt er den Befehl "\metre" nur, wenn er in \SI{}{} steht.
Du hast bei SI den \ vergessen.
Epllus
PS. Statt der log ist ein Minimalbeispiel besser (siehe Johannes).
Verfasst: Do 16. Mai 2013, 07:51
von Johannes_B
In meinem Post steht auch dein fehlendes Minimalbeispiel, mit dem von Epllus erwähntem Backslash \
Vielleicht hätte ich das ein wenig kenntlicher machen können, aber es war ja schon spät.
Grüße