## 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

1. ! Undefined control sequence.
2. <argument> \seq_const_from_clist:Nn
4. l.258 }
5. The control sequence at the end of the top line
6. of your error message was never \def'ed. If you have
7. misspelled it (e.g., \hobx'), type I' and the correct
8. spelling (e.g., I\hbox'). Otherwise just continue,
9. and I'll forget about whatever was undefined.
10. ! Undefined control sequence.
11. <argument> ...list:Nn \c__siunitx_old_options_seq
13. l.258 }
14. The control sequence at the end of the top line
15. of your error message was never \def'ed. If you have
16. misspelled it (e.g., \hobx'), type I' and the correct
17. spelling (e.g., I\hbox'). Otherwise just continue,
18. and I'll forget about whatever was undefined.
19. ! LaTeX Error: Missing \begin{document}.
20. See the LaTeX manual or LaTeX Companion for explanation.
21. 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: 3883
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: 3883
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.