siunitx 和 mathenv 之间有冲突吗?

siunitx 和 mathenv 之间有冲突吗?

当我同时使用“siunitx”和“mathenv”时遇到了问题。

我想添加“siunitx”来使用“\meter”等等,但它似乎与“mathenv”有问题:

\documentclass[a4paper]{article}

    % Mathématiques
\usepackage{mathenv}

\usepackage{siunitx}


\title{Test}
\author{Cécile Moulin}
\date{}

\begin{document}
\maketitle
\tableofcontents

text text text
\end{document}

出现以下错误:

This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015/Debian) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(./test.tex
LaTeX2e <2016/02/01>
Babel <3.9q> and hyphenation patterns for 81 language(s) loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texlive/texmf-dist/tex/latex/mdwtools/mathenv.sty
(/usr/share/texlive/texmf-dist/tex/latex/mdwtools/mdwtab.sty))
(/usr/share/texlive/texmf-dist/tex/latex/siunitx/siunitx.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/expl3-code.tex)
(/usr/share/texlive/texmf-dist/tex/latex/l3kernel/l3pdfmode.def))
(/usr/share/texlive/texmf-dist/tex/latex/l3packages/xparse/xparse.sty)
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/share/texlive/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.sty)
(/usr/share/texlive/texmf-dist/tex/latex/beamer/translator/translator.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texlive/texmf-dist/tex/latex/beamer/translator/translator-language-
mappings.tex))) (./test.aux)
! Missing \endcsname inserted.
<to be read again> 
                   \relax 
l.13 \begin{document}

相关内容