我希望创建多个文档(在运行pdflatex后输出为PDF),它们的源代码来自同一个文件。
例如:
\documentclass{article}
\begin{document}
This text will appear in the first PDF.
\end{document}
\begin{document}
This text will appear in the second PDF.
\end{document}
这将非常有用,因为:
- 我可以将所有内容保存在一个文件中,并具有单一、一致的前言。
- 我可以使用
ifthen
或其他循环来自动生成文档的各种替代形式。