【发布时间】:2017-10-14 22:41:26
【问题描述】:
我想写一份结构如下的报告:
\begin{document}
\input[option=a]{class}
\input[option=b]{class}
\input[option=c]{class}
\input[option=d]{class}
\end{document}
class.tex 的内容如下:
here are some shared content
switch(option)
case a
some text a
case b
some text b
case c
some text c
case d
some text d
endswitch
Here maybe more shared content.
在 Latex 中有什么方法可以做到这一点吗?
【问题讨论】:
-
给定 LaTeX 输入的预期输出是什么?也就是说,
\input[option=c]{class}(比如说)翻译成什么? -
我已经更新了。我想输出单个 tex 文件的不同部分。