我无法打印讲义 --- 每页有多张幻灯片,每张都有边框。而且它根本不起作用。我尝试使用 xelatex 和 latex 进行编译(两者都几乎是 Ubuntu 10.12 上的默认安装)。
我该如何正确设置?以下是 MWE。
\documentclass[xcolor=dvipsnames,english,professionalfonts,smaller,handout]{beamer}
\usetheme{Madrid}
\usecolortheme[named=Black]{structure}
\usepackage{arev}
\usepackage{wasysym}
\usepackage{keystroke}
\usepackage{parskip}
\usepackage{booktabs}
\usepackage{tabu}
\usepackage{pifont}
\usepackage{tikz}
\usepackage{graphicx}
\graphicspath{{.}{./images/}}
\setbeamertemplate{navigation symbols}{}
\date{}
\defbeamertemplate*{footline}{my infolines theme}
{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.1\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
\usebeamerfont{author in head/foot}{\underline{\textbf{Author} }}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.8\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
\usebeamerfont{title in head/foot}Title~---~\insertshorttitle
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.1\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
\usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}
\insertframenumber{} / \inserttotalframenumber\hspace*{2ex}
\end{beamercolorbox}}%
\vskip0pt%
}
\newcommand{\footlineextra}[1]{
\begin{tikzpicture}[remember picture,overlay]
\node[yshift=2ex,anchor=south east] at (current page.south east) {\usebeamerfont{author in head/foot}\hspace{2ex}#1};
\end{tikzpicture}
}
\newcommand{\footlineleft}[1]{
\begin{tikzpicture}[remember picture,overlay]
\node[yshift=2ex,anchor=south west] at (current page.south west) {\usebeamerfont{author in head/foot}\hspace{2ex}#1};
\end{tikzpicture}
}
%}}}
\title{\newline Title \newline}
\institute[Institute]{\Large{Institute}\newline \newline \normalsize{\textbf{Some text} normal text\newline \textbf{Some text} normal text\newline \textbf{Some text}}}
\mode<handout>{
\usepackage{pgfpages}
\usetheme{default}
\setbeamercolor{background canvas}{bg=black!5}
\pgfpagesuselayout{2 on 1}[a4paper,landscape,border shrink=5mm]
\pgfpageslogicalpageoptions{1}{border code=\pgfusepath{stroke}}
\pgfpageslogicalpageoptions{2}{border code=\pgfusepath{stroke}}
\pgfpageslogicalpageoptions{3}{border code=\pgfusepath{stroke}}
\pgfpageslogicalpageoptions{4}{border code=\pgfusepath{stroke}}
}
\begin{document}
\setlength{\parskip}{\bigskipamount}
\begin{frame}[<+->]{Slide 1}
\pause
ONE
\end{frame}
\begin{frame}[<+->]{Slide 2}
\pause
TWO
\end{frame}
\begin{frame}[<+->]{Slide 3}
\pause
THREE
\end{frame}
\begin{frame}[<+->]{Slide 4}
\pause
FOUR
\end{frame}
\end{document}
答案1
pgfpages
似乎遇到了 Beamer 的问题,至少根据
https://github.com/josephwright/beamer/issues/183
(我遇到了同样的问题)。我现在要做的是ps2dpf
输出latex/dvips
(不带pgfpages
)——它将扩展到正确的演示大小——然后pdflatex
在其上运行一个小作业,调用pdfpages
\includepdf[nup=1x2,pages=1-last,delta=1.5 1.5,frame=true]{0.pdf}
(或根据需要更改 nup)。希望有所帮助。
答案2
我会看看pdfjam,尤其是在 pdfnup 上。它的参数列表可能令人生畏,但它非常灵活。据我所知,它内部使用 LaTeX 来完成将多页放在一张纸上的繁重工作。
答案3
好的。经过一番寻找,我终于找出了问题所在。使用 xelatex 编译代码时,讲义不正确。您需要使用 pdflatex 进行编译才能正确获取讲义。