empheq 与 ntheorem 冲突吗?

empheq 与 ntheorem 冲突吗?

我正在尝试使用empheq包裹如图所示。但是我发现方程式标签的放置位置存在一些问题,因为我的文档也使用了这个ntheorem包。(备注:\usepackage...MWE 中的咒语是empheq文档中建议的咒语。)

梅威瑟:

\documentclass{minimal}
\usepackage[ntheorem]{empheq}
\usepackage[thmmarks,amsmath]{ntheorem}

\begin{document}
\begin{empheq}{equation}
a = b = c
\end{empheq}
\begin{empheq}[right=\empheqrbrace{\text{A long description}}]{equation}
a = b = c
\end{empheq}
\begin{empheq}{align}
a & = b\\
c & = d
\end{empheq}
\begin{empheq}[left={\text{yet another desc}}\empheqlbrace]{align}
a & = b\\
c & = d
\end{empheq}
\end{document}

编译后的输出如下

在此处输入图片描述

如您所见,由于某种原因,方程式标签的偏移量与通过环境插入的左和/或右强调成比例。这似乎与如何覆盖命令empheq有关。如果我加载ntheoremamsmath

\usepackage[thmmarks]{ntheorem}

相反(没有amsmath选项),对齐是可以的。(但当然,在我的原始文档中,其他东西都很糟糕;这似乎在文档中有所记录ntheorem。)

这是已知的吗?有解决方法吗?还是我现在无法使用该empheq软件包?

最后,值得一提的是,这是编译日志:

~/myWork/NEW $ latex test
This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2012/dev/Debian)
 restricted \write18 enabled.
entering extended mode
(./test.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, et
hiopic, farsi, arabic, pinyin, croatian, bulgarian, ukrainian, russian, slovak,
 czech, danish, dutch, usenglishmax, ukenglish, finnish, french, basque, ngerma
n, ngerman-x-2011-07-01, german, swissgerman, german-x-2011-07-01, monogreek, g
reek, ibycus, ancientgreek, hungarian, bengali, tamil, hindi, telugu, gujarati,
 sanskrit, malayalam, kannada, assamese, marathi, oriya, panjabi, italian, lati
n, latvian, lithuanian, mongolian, mongolianlmc, nynorsk, bokmal, indonesian, e
speranto, lao, coptic, welsh, irish, interlingua, serbian, serbianc, slovenian,
 estonian, romanian, armenian, uppersorbian, afrikaans, icelandic, kurmanji, tu
rkish, polish, portuguese, galician, catalan, spanish, swedish, ukenglish, load
ed.
(/usr/share/texlive/texmf-dist/tex/latex/base/minimal.cls
Document Class: minimal 2001/05/25 Standard LaTeX minimal class
) (/usr/share/texlive/texmf-dist/tex/latex/mh/empheq.sty
(/usr/share/texlive/texmf-dist/tex/latex/mh/mhsetup.sty)
(/usr/share/texlive/texmf-dist/tex/latex/mh/mathtools.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texlive/texmf-dist/tex/latex/tools/calc.sty)
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/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/amsmath/amsbsy.sty)
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty))))
(/usr/share/texlive/texmf-dist/tex/latex/ntheorem/ntheorem.sty
Style `ntheorem', Version 1.31 <2011/02/16>
(/usr/share/texlive/texmf-dist/tex/latex/base/ifthen.sty)) (./test.aux)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/graphics.cfg)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/dvips.def))) [1] (./test.aux)
 )
Output written on test.dvi (1 page, 892 bytes).
Transcript written on test.log.

答案1

我刚刚收到 Lars Madsen 的回复。目前问题的根本原因尚未解决(尽管他知道哪些行ntheorem是罪魁祸首),但有一个解决方法(在我的文档中测试时有效并且不会破坏任何其他内容):

在加载行之后ntheorem,插入\usetagform{default}

相关内容