Beamer 演示文稿可打印到 A4 上

Beamer 演示文稿可打印到 A4 上

嗨,我将于周二毕业于物理学专业,我很想获得一份可打印的、格式良好的演示文稿副本。我尝试添加

\usepackage{pgfpages}
\pgfpagesuselayout{resize to}[a4paper,border shrink=5mm,landscape]

但在 OSx 上通过 pdflatex 进行编译时,除了我制作的常规 beamer 演示文稿外,没有呈现任何其他内容。我做错了什么?

\documentclass{beamer}

\usepackage[italian]{babel}
\usepackage[utf8]{inputenc}
\usepackage{enumerate}
\usepackage[round]{natbib}
    \bibliographystyle{chicago}
\usepackage{graphicx}
    \graphicspath{ {img/} }

\usepackage{pgfpages}
\pgfpagesuselayout{resize to}[a4paper,border shrink=5mm,landscape]


%%% Personalizzazione del layout---articolata su cinque livelli.
\usetheme{Berkeley}         % layout complessivo. 
\useoutertheme{sidebar}     % layout esterno.

%%% Titolo e autore.
\title{*}
\subtitle{*}
\author{*}
\institute{*}
\date{*}
\logo{\includegraphics[width=15mm]{*}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}
blabla
\end{document}

最后一张幻灯片是参考幻灯片

\begin{frame}[allowframebreaks]{Bibliografia}
    \tiny
        \nocite{*}

    \bibliography{tesi}

\end{frame}

答案1

警告:完全基于观点。

  • 我肯定会选择纵向格式的。这样翻页就没那么麻烦了。

  • 由于投影仪幻灯片设计为远距离阅读,字体大小等通常比普通印刷更大。为了让阅读更愉快,我建议每页多张幻灯片。下面例子中的两张幻灯片甚至可能太大,甚至两列中的 6 张幻灯片也放不进一页。

  • 如果您要将页面胶装,请记住在内边距上留出更多空间。下面的示例添加了0.7cm,但这在很大程度上取决于确切的装订技术、使用的纸张以及页数。最好与您的装订员交谈以获得合适的价格。

  • 如果您要进行双面打印,事情会变得更加复杂,因为装订偏移必须交替放置在左侧和右侧。其他文档类有twosided选项,也许设置新文档并将幻灯片作为图像包含在其中会更容易。此外,我发现在双面打印中,边距应该是不对称的,内边距较小(因为两侧的边距彼此相邻)和外边距较大。

  • 最后但同样重要的一点是:留出足够的空白!如果有疑问,请将边距设置得更大。

(布局基于有没有办法用 LaTeX 将两页合并为一页?

\documentclass{beamer}

\usepackage{pgfpages}

\makeatletter
\define@key{pgfpagesuselayoutoption}{horizontal shift}%
{\def\pgfpageoptionhshift{#1}}
\define@key{pgfpagesuselayoutoption}{vertical shift}%
{\def\pgfpageoptionvshift{#1}}
\makeatother

\pgfpagesdeclarelayout{2 on 1 shifted}
{
    \edef\pgfpageoptionheight{\the\paperwidth} % landscaped by default
    \edef\pgfpageoptionwidth{\the\paperheight}
    \def\pgfpageoptionborder{0pt}
    \def\pgfpageoptionfirstshipout{1}
    \def\pgfpageoptionhshift{0pt}
    \def\pgfpageoptionvshift{0pt}
}
{
    \pgfpagesphysicalpageoptions
    {%
        logical pages=2,%
        physical height=\pgfpageoptionheight,%
        physical width=\pgfpageoptionwidth,%
        current logical shipout=\pgfpageoptionfirstshipout%
    }
    \ifdim\paperheight>\paperwidth\relax
    % put side-by-side
    \pgfpageslogicalpageoptions{1}
    {%
        border shrink=\pgfpageoptionborder,%
        resized width=.5\pgfphysicalwidth,%
        resized height=\pgfphysicalheight,%
        center=\pgfpoint{.25\pgfphysicalwidth+\pgfpageoptionhshift}{.5\pgfphysicalheight+\pgfpageoptionvshift}%
    }%
    \pgfpageslogicalpageoptions{2}
    {%
        border shrink=\pgfpageoptionborder,%
        resized width=.5\pgfphysicalwidth,%
        resized height=\pgfphysicalheight,%
        center=\pgfpoint{.75\pgfphysicalwidth+\pgfpageoptionhshift}{.5\pgfphysicalheight+\pgfpageoptionvshift}%
    }%
    \else
    % stack on top of one another
    \pgfpageslogicalpageoptions{1}
    {%
        border shrink=\pgfpageoptionborder,%
        resized width=\pgfphysicalwidth,%
        resized height=.5\pgfphysicalheight,%
        center=\pgfpoint{.5\pgfphysicalwidth+\pgfpageoptionhshift}{.75\pgfphysicalheight+\pgfpageoptionvshift}%
    }%
    \pgfpageslogicalpageoptions{2}
    {%
        border shrink=\pgfpageoptionborder,%
        resized width=\pgfphysicalwidth,%
        resized height=.5\pgfphysicalheight,%
        center=\pgfpoint{.5\pgfphysicalwidth+\pgfpageoptionhshift}{.25\pgfphysicalheight+\pgfpageoptionvshift}%
    }%
    \fi    
}

\pgfpagesuselayout{2 on 1 shifted}[a4paper,border shrink=12mm, horizontal shift=0.7cm]

\usetheme{Berkeley}         
\useoutertheme{sidebar}    

\begin{document}

    \frame{frame1}
    \frame{frame2}

\end{document}

在此处输入图片描述

相关内容