我用 latex 写了一篇论文,我想将其直接转换为幻灯片(如 beamer),用于演示。有代码可以做到吗?
答案1
一个简单但不太好的版本是
\begin{document}
\newcount\anzahlSeiten
\anzahlSeiten=10 %if it throws an error, decrease the number and include the last one manually. Number must be even, because it includes always a pair
\newcount\ipp
\ipp=0
\loop
%\begin{frame} %with frames it doesn't loop somehow
\global\advance\ipp by1
\includegraphics[page=\ipp, width=0.49\textwidth]{test1}
\hfill
\global\advance\ipp by1
\includegraphics[page=\ipp, width=0.49\textwidth]{test1}
%\end{frame}
\newpage
\ifnum\ipp<\anzahlSeiten\repeat
\end{document}