同時產生單面和雙面版本

同時產生單面和雙面版本

是否有可能在編譯我的乳膠文件時一直建立兩個 PDF(單面版本和雙面版本)。因此,就我而言,兩個版本只有第一行不同:

\documentclass[11pt, a4paper, oneside]{scrreprt}
\documentclass[11pt, a4paper, twoside]{scrreprt}

答案1

如果對您來說更容易,您也可以.tex在編譯期間在批次腳本中更改原始檔案。例如,以下是使用DOS腳本的範例。

給定一個sample.tex文件:

\begin{document}
\thispagestyle{empty}
Hello
\end{document}

以下批次檔將建立兩個不同的tex檔案並處理它們以給出顯示的輸出。

echo \documentclass[10pt]{article} > temp10.tex
type sample.tex >> temp10.tex
pdflatex temp10.tex

echo \documentclass[12pt]{article} > temp12.tex
type sample.tex >> temp12.tex
pdflatex temp12.tex

在此輸入影像描述

在此輸入影像描述

相關內容