LaTeX ビーマーを使用してプレゼンテーションを作成したいと思います。これには、2 つの異なる種類のスライド テンプレート/レイアウトがあります。
ビーマーを使用してこれを行うためのトリックはありますか?
1つのスライドに特定の背景画像が必要な場合は、
{\usebackgroundtemplate{\includegraphics[width=\paperwidth]{background.jpg}}
の直前\begin{frame}
。
\usebackgroundtemplate
基本的に、私は各の前に置くことに要約します\begin{frame}...\end{frame}
。
私が正しく理解していれば、問題はプレゼンテーションの2つのコピーを同時に生成する方法です。これを行うには、いくつかの低レベルのtexコマンドといくつかのファイルを使用します。
あなたPresentation.tex
が持っているかもしれません
%&pdftex
\relax
\immediate\write18{pdflatex -synctex=1 PresentationWithBG.tex}
\relax
\immediate\write18{pdflatex -synctex=1 PresentationWithoutBG.tex}
\end
これは、実際にラテックスを実行する必要がある唯一のファイルですpdftex --shell-escape Presentation.tex
。ただし、次のものも必要になります。
で(各フレームの前PresentationWithBG.tex
に実際には必要ないことに注意してください):\usebackgroundtemplate
\documentclass{beamer}
\setbeamercolor{background canvas}{bg=}
\usebackgroundtemplate{\includegraphics[width=\paperwidth]{<your_background_fig>}}
\input{PresentationContent}
でPresentationWithoutBG.tex
:
\documentclass{beamer}
\input{PresentationContent}
でPresentationContent.tex
:
\begin{document}
[All your actual presentation goes here...]
\end{document}
を実行すると、とが表示されpdftex --shell-escape Presentation.tex
ます。PresentationWithBG.pdf
PresentationWithoutBG.pdf
%&pdftex
で、Presentation.tex
実行しているTeXのバージョンが正しいモードに切り替わっていることを確認してください。実際にを使用して実行できますpdflatex
。