Nếu tôi hiểu chính xác, câu hỏi là cách tạo hai bản sao của bản trình bày cùng một lúc. Để thực hiện việc này, bạn sử dụng một số lệnh tex cấp thấp và một số tệp.
Trong Presentation.tex
bạn có thể có
%&pdftex
\relax
\immediate\write18{pdflatex -synctex=1 PresentationWithBG.tex}
\relax
\immediate\write18{pdflatex -synctex=1 PresentationWithoutBG.tex}
\end
Đó là tập tin duy nhất mà bạn sẽ thực sự phải chạy mủ trên, mà bạn làm với pdftex --shell-escape Presentation.tex
. Nhưng bạn cũng sẽ cần những điều sau đây.
Trong PresentationWithBG.tex
(lưu ý rằng bạn không thực sự cần \usebackgroundtemplate
trước mỗi khung hình):
\documentclass{beamer}
\setbeamercolor{background canvas}{bg=}
\usebackgroundtemplate{\includegraphics[width=\paperwidth]{<your_background_fig>}}
\input{PresentationContent}
Trong PresentationWithoutBG.tex
:
\documentclass{beamer}
\input{PresentationContent}
Trong PresentationContent.tex
:
\begin{document}
[All your actual presentation goes here...]
\end{document}
Khi bạn chạy pdftex --shell-escape Presentation.tex
, bạn sẽ nhận được PresentationWithBG.pdf
và PresentationWithoutBG.pdf
.
Lưu ý rằng %&pdftex
trong Presentation.tex
đảm bảo rằng bất kỳ phiên bản TeX nào đang chạy chuyển sang chế độ phù hợp. Bạn thực sự có thể chạy nó với pdflatex
.
Bạn đã thử hỏi tại đây: http://tex.stackexchange.com/? – pgb