打印 Beamer 演示文稿的讲义,生成的 pdf 缩小了!

打印 Beamer 演示文稿的讲义,生成的 pdf 缩小了!

我使用下面的代码来制作我的演示文稿的讲义。

当我使用任何 pdf 查看器打开生成的 pdf 时,它都可以正确显示,但是当我打印它时,它总是打印得很小,无论我使用什么程序(Okular、Evince、Acrobat……)。如果有人能在 Ubuntu 下让 Okular 正确打印 pdf,那就太好了!谢谢!

MWE 在这里:

\documentclass[handout]{beamer}
\usepackage{pgfpages}
\pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm]
\setbeameroption{show notes on second screen=bottom}

\setbeamercolor{background canvas}{bg=pink}

\mode<presentation> {
    \usetheme{Singapore}
}
\begin{document}


\begin{frame}[plain]
    \titlepage  
\note{
    Notes for the title page
}
\end{frame}


\section*{Outline}
\begin{frame}[plain]
\frametitle{Outline}
    \tableofcontents

\note{
    Notes for the table of contents
}
\end{frame}

编辑:

如果我将“\pgfpagesuselayout{2 on 1}”行放在“\setbeameroption{show notes}”行之后,就不会再遇到打印问题了!!但是,出现在底部的幻灯片预览和注释属于下一张幻灯片,而不是当前幻灯片!!这是怎么回事?

答案1

这与 无关TeX,只与您的打印属性有关。上述 MWE 生成的文档尺寸为 128 毫米\times192 毫米,因此比 Din A4 小得多。如果您不缩放就打印它,您将在纸张中央得到一个小图像:

在此处输入图片描述

如果你让你的打印机完成它的工作并且缩放它(例如 140% 似乎是一个好的开始)或者fit to paper,你将得到整个页面填满:

在此处输入图片描述


或者,不用摆弄打印机选项,直接将 pdf 编译为 Din A4 版本,即不pgf通过省略来干扰调整大小on second screen

\documentclass[handout]{beamer}
\usepackage{pgfpages}
\pgfpagesuselayout{2 on 1}[landscape,a4paper,border shrink=5mm]
\setbeameroption{show notes}


\setbeamercolor{background canvas}{bg=pink}

\mode<presentation> {
    \usetheme{Singapore}
}
\begin{document}


\begin{frame}[plain]
    \titlepage  
\note{
    Notes for the title page
}
\end{frame}


\section*{Outline}
\begin{frame}[plain]
\frametitle{Outline}
    \tableofcontents

\note{
    Notes for the table of contents
}
\end{frame}


\section{Frame 1}
\begin{frame}
\frametitle{Frame with notes 1}
    FIRST FRAME CONTENTS

\note{
    Notes for the first frame
}
\end{frame}


\section{Frame 2}
\begin{frame}
\frametitle{Frame with notes 2}
    SECOND FRAME CONTENTS
\note{
    Notes for the second frame
}
\end{frame}


\section{Frame 3}
\begin{frame}
    \frametitle{Frame with notes 3}
    SECOND FRAME CONTENTS
    \note{
        Notes for the third frame
    }
\end{frame}


\end{document}

答案2

以下解决方案确实很丑陋,我希望有人能找到更好的解决方案。我将纸张尺寸明确设置为 A4(高度是它的一半,因为它由两张幻灯片组成):

\documentclass[handout, xcolor={dvipsnames,table}]{beamer}
\usepackage{pgfpages}

% A4 Paper Size and some small additional margin
\paperheight=143.5mm %297mm / 2 - 5mm
\paperwidth=205mm % 210mm -5mm

% border shrink and a4paper doesn't seem to work like I wanted it to..
\pgfpagesuselayout{resize to}[a4paper,border shrink=5mm] % could also use letterpaper
\setbeameroption{show notes on second screen=bottom} % Beamer manual, section 19.3
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\setbeamercolor{background canvas}{bg=pink}

\setbeamertemplate{note page}[plain] % Beamer manual, section 19.1
\newlength{\parskipbackup}
\setlength{\parskipbackup}{\parskip}
\newlength{\parindentbackup}
\setlength{\parindentbackup}{\parindent}
\newcommand{\baselinestretchbackup}{\baselinestretch}

\usetemplatenote{

  \insertslideintonotes{0.3}%

  \rmfamily \scriptsize%
  \setlength{\parindent}{1em} \setlength{\parskip}{1ex}%
  \renewcommand{\baselinestretch}{1}%

  \insertnote%

  \setlength{\parskip}{\parskipbackup}%
  \setlength{\parindent}{\parindentbackup}%
  \renewcommand{\baselinestretch}{\baselinestretchbackup}%
}
\begin{document}

\begin{frame}
Title slide
\note{this is a note}
\end{frame}

\begin{frame}
This is the first slide
\note{this is another note}
\end{frame}

\end{document}

要改变边框,只需缩小纸张尺寸。

相关内容