## LaTeX forum ⇒ Theses, Books, Title pages ⇒ Problems with siunitx package

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
Posts: 2
Joined: Wed Jun 20, 2018 6:26 pm

### Problems with siunitx package

Hello everyone,

I am trying to use the masters-doctoral-thesis template.

I am using MikTex 2.9 and compiling with TexMaker.

When trying to run the main file, I get these errors

! Undefined control sequence.<argument> \seq_const_from_clist:Nn\c__siunitx_old_options_seq {addsign,all...l.258 }The control sequence at the end of the top lineof your error message was never \def'ed. If you havemisspelled it (e.g., \hobx'), type I' and the correctspelling (e.g., I\hbox'). Otherwise just continue,and I'll forget about whatever was undefined.! Undefined control sequence.<argument> ...list:Nn \c__siunitx_old_options_seq{addsign,allowlitunits,all...l.258 }The control sequence at the end of the top lineof your error message was never \def'ed. If you havemisspelled it (e.g., \hobx'), type I' and the correctspelling (e.g., I\hbox'). Otherwise just continue,and I'll forget about whatever was undefined.! LaTeX Error: Missing \begin{document}.See the LaTeX manual or LaTeX Companion for explanation.Type H <return> for immediate help.

There seems to be a problem with the siunitx package.

If I delete that line in the .cls file and remove all the places in the document where \si is called, it compiles no problems.

I do however need to use units in my thesis.

If I try to \usepackage{SIunits} instead, I get a different error saying that the \degree command is already defined.

Any advice would be greatly appreciated. Thank you!
Last edited by cgnieder on Fri Jun 22, 2018 2:27 pm, edited 1 time in total.
Reason: code

Tags:

Johannes_B
Site Moderator
Posts: 3905
Joined: Thu Nov 01, 2012 4:08 pm
Make a complete update of your TeX installation.

What happens?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Posts: 2
Joined: Wed Jun 20, 2018 6:26 pm
Dear Johannes,

I completely uninstalled MiKTeX, re-installed the latest version and updated all the packages.

When I reran the main.tex file it compiled fine.

However when I uncommented the places where the \si function was called, I got errors again. I realised this happened because the proper way of calling it when typesetting numbers and units is using capital letters (i.e. \SI). Something to bear in mind for future users since the examples given in the template use lowercase.

Johannes_B
Site Moderator
Posts: 3905
Joined: Thu Nov 01, 2012 4:08 pm
I just checked on Overleaf, the template uses correct uppercase and lowercase. It compiles completely fine.

I guess you mistyped somewhere without noticing.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.