[texhax] SIunitx

Joseph Wright joseph.wright at morningstar2.co.uk
Mon Sep 14 17:47:38 CEST 2009


Mads Munch Hansen wrote:
> Hello, I am having problems with the following bit of code. when I
> compile the document, LaTeX complains that \SI is an undefined control
> sequence and points to the line above \end{equation*}. I have been
> unable to pinpoint the source of the problem, and would be gratefull for
> any assistance.
> 
> Thanks, Mads
> 
> \begin{equation*}
> c_\text{Al} = \frac{\SI{0,150}{\kilo\gram}\cdot
> \SI{4180}{\joule\per\kilo\gram\per\kelvin} \cdot
> (\SI{25,2}{\celsius} - \SI{23,5}{\celsius})} {\SI{0,018}{\kilo\gram})\cdot
> (\SI{100}{\celsius} - \SI{25,2}{\celsius})}
> \end{equation*}

The following works for me:

\documentclass{article}
\usepackage{siunitx,amsmath}
\begin{document}
\begin{equation*}
c_\text{Al} = \frac{\SI{0,150}{\kilo\gram}\cdot
\SI{4180}{\joule\per\kilo\gram\per\kelvin} \cdot
(\SI{25,2}{\celsius} - \SI{23,5}{\celsius})} {\SI{0,018}{\kilo\gram})\cdot
(\SI{100}{\celsius} - \SI{25,2}{\celsius})}
\end{equation*}
\end{document}
-- 
Joseph Wright


More information about the texhax mailing list