
라텍스 문서를 컴파일할 때마다 두 개의 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