Theses, Books, Title pagesProblems with siunitx package

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

Problems with siunitx package

Post by macovlad »

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

Code: Select all

! 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 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.
<argument> ...list:Nn \c__siunitx_old_options_seq
{addsign,allowlitunits,all...
l.258 }
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.
! 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.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Problems with siunitx package

Post by Johannes_B »

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.
macovlad
Posts: 2
Joined: Wed Jun 20, 2018 6:26 pm

Problems with siunitx package

Post by macovlad »

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.

Thank you for your assistance!
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Problems with siunitx package

Post by Johannes_B »

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.
Post Reply