我在尝试加载 siunitx 包时遇到了奇怪的问题。安装了版本 2.7l,所有必需包也都安装了。我制作了一个最小示例,其中发生了相同的错误:
\documentclass[a4paper, 12pt, oneside, headsepline, ngerman, openany, headings=small]{scrbook}
\usepackage{cancel}
\usepackage{caption}
\usepackage{cleveref}
\usepackage{csquotes}
\usepackage{helvet}
\usepackage{mathpazo}
\usepackage{listings}
\usepackage{pgfplots}
\usepackage{xcolor}
\usepackage{siunitx}
\sisetup{
detect-mode,
tight-spacing = true,
group-digits = false ,
input-signs = ,
input-symbols = ( ) [ ] - + *,
input-open-uncertainty = ,
input-close-uncertainty = ,
table-align-text-post = false
}
\begin{document}
\si{1,2,3}
\end{document}
错误信息告诉我包的样式文件有问题:
! 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 }
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.258 }
也许有人知道我该如何处理。提前谢谢您。