%20%E3%81%8C%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99.png)
私は複数の tex ファイルを結合するために、combine クラスを使用しています。これらの各ファイルには、記事名、著者名、著者の住所と電子メール ID を含むタイトルがあります。各記事のサンプルを以下に示します。
\documentclass[12pt]{amsart}
\usepackage{amssymb,amsmath,amsthm}
\title[xxx]{xxx}
\author{yyy}
\address{Department of zzz, www}
\email{[email protected]}
\begin{document}
\maketitle
\begin{abstract}
...
\end{abstract}
...
\end{document}
以下は、コンバインのメイン ドキュメントのテキストです。
\documentclass[12pt]{combine}
\begin{document}
\pagestyle{combine}
\maketitle \tableofcontents
\clearpage
\begin{papers}
\coltoctitle{xxx}
\coltocauthor{yyy}
\label{abc}
\import{abc}
\end{papers}
\end{document}
メインの結合ファイルをコンパイルしようとすると、次のエラーが発生します。
./abc.tex:未定義の制御シーケンス\address
./abc.tex:未定義の制御シーケンス \email
個々の記事ではこのエラーは発生しません。この点についてご協力いただければ幸いです。ありがとうございます。
答え1
クラスcombine
は、インポートされたドキュメントでどのドキュメント クラスを使用しているかを認識する必要があります。
これは読み込み時にオプションとして渡すことができます: memoir
、book
、report
、 はletter
直接渡すことができますが、何も指定しない場合はarticle
が想定されます。
あなたの場合は を使用しておりamsart
、combine
それを知らせるには、オプション を渡す必要がありますcolclass=amsart
:
\documentclass[12pt,colclass=amsart]{combine}
MWE:
\documentclass[12pt,colclass=amsart]{combine}
\title{Proceedings}
\begin{document}
\pagestyle{combine}
\maketitle \tableofcontents
\clearpage
\begin{papers}
\coltoctitle{xxx}
\coltocauthor{yyy}
\label{abc}
\import{abc}
\end{papers}
\end{document}
出力: