我在结婚combine
和amsthm
打包方面遇到了麻烦。
最小示例:
compilation.tex
\documentclass[colclass=amsart]{combine}
\usepackage[utf8]{inputenc}
\begin{document}
\pagestyle{combine}
\tableofcontents
\clearpage
\begin{papers}
\coltoctitle{Paper title}
\coltocauthor{Paper author}
\import{paper1}
\end{papers}
\end{document}
paper1.tex
\documentclass[12pt]{amsart}
\usepackage{amsthm}
\usepackage[utf8]{inputenc}
\newtheorem{theorem}{Theorem}[section]
\begin{document}
\begin{theorem}
Theorem statement
\end{theorem}
\end{document}
当我尝试这样处理时:
> pdflatex -halt-on-error -interaction nonstopmode compilation.tex
...我得到以下信息:
(/usr/share/texmf-texlive/tex/latex/base/ot1enc.dfu)
(/usr/share/texmf-texlive/tex/latex/base/omsenc.dfu)))
LaTeX Warning: Unused global option(s):
[colclass=amsart].
(./compilation.aux) (/usr/share/texmf-texlive/tex/latex/amsfonts/umsa.fd)
(/usr/share/texmf-texlive/tex/latex/amsfonts/umsb.fd) (./compilation.toc)
[1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] [2] (./paper1.tex
! Missing \endcsname inserted.
<to be read again>
\relax
l.5 \newtheorem{theorem}{Theorem}[section]
! ==> Fatal error occurred, no output PDF file produced!
Transcript written on compilation.log.
这可能是什么原因造成的?
答案1
这似乎是combine
软件包的一个错误,如下所示。如果出现错误,您应该直接给软件包作者发送电子邮件。联系信息是在combine
文档中。
%\documentclass[colclass=amsart]{combine}% Missing \endcsname inserted.
\documentclass[12pt]{amsart}% Works
\usepackage[utf8]{inputenc}
\usepackage{amsthm}
\newtheorem{theorem}{Theorem}[section]
\begin{document}
\begin{theorem}
Theorem statement
\end{theorem}
\end{document}
standalone
根据您想要实现的目标,您可能需要考虑使用该包。