mhchem ver.4 更新后无法正常工作!控制序列未定义

mhchem ver.4 更新后无法正常工作!控制序列未定义

我周一更新了 MikTex 2.9,现在加载“mhchem”时无法编译。我正在使用 pdflatex [版本 3.14159265-2.6-1.40.16 (MiKTeX 2.9 64 位)] 编译以下内容:

\documentclass{article}
\usepackage[version=4]{mhchem}
\begin{document}
Hello, world!
\end{document}

引发以下错误:

! LaTeX error: "kernel/command-not-defined"

! Control sequence \prop_get:Nn undefined.

! See the LaTeX3 documentation for further information.

! For immediate help type H <return>.

l.180 ..._variant:Nn \prop_get:Nn           { cV }

| This is a coding error.

| LaTeX has been asked to use a control sequence '\prop_get:Nn': this has not been defined yet.

答案1

您有一个本地旧副本,可chemgreek屏蔽已安装的副本:

(C:\Users\TobiasGram\AppData\Roaming\MiKTeX\2.9\tex\latex\chemgreek\chemgreek.sty

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

("C:\Program Files\MiKTeX 2.9\tex\latex\l3packages\xparse\xparse.sty"
Package: xparse 2016/01/19 v6377 L3 Experimental document command parser
\l__xparse_current_arg_int=\count170
\l__xparse_m_args_int=\count171
\l__xparse_mandatory_args_int=\count172
\l__xparse_processor_int=\count173
\l__xparse_v_nesting_int=\count174
)
Package: chemgreek 2015/04/09 v1.0 interface for upright greek letters for use in chemistry (CN)

它应该更像是

(/usr/local/texlive/2015/texmf-dist/tex/latex/chemgreek/chemgreek.sty
(/home/davidc/texmf/tex/latex/l3packages/xparse/xparse.sty
Package: xparse 2016/01/19 v6377 L3 Experimental document command parser
\l__xparse_current_arg_int=\count170
\l__xparse_m_args_int=\count171
\l__xparse_mandatory_args_int=\count172
\l__xparse_processor_int=\count173
\l__xparse_v_nesting_int=\count174
)
Package: chemgreek 2016/02/10 v1.0e interfaceforuprightgreeklettersforuseinchem
istry (CN)

相关内容