我的问题在某种意义上是关于覆盖的问题。这就是我想要做的。
我有一个包含两帧的 Beamer 演示文稿,每帧都有一些叠加层。每帧看起来像
\begin{frame}
\includegraphics<1>{fig1}
\includegraphics<2>{fig2}
....
\end{frame}
假设我在每个框架中有 3 个叠加层。那么我的输出 PDF 就有 6 页,即使我不按照我的样式渲染页码,我也可以在查看器中看到页码。
我希望发生的是,在最终的 PDF 中页面编号为 XY,这样在我的 PDF 查看器中,我看到的是“1-1、1-2、1-3、2-1、2-2、2-3”而不是 1-6。
请注意,这可能与我是否选择以 beamer 样式呈现页码无关(我不确定是否如此)。
我的原因是我想要一种更好的方法来校准我的演讲的“幻灯片数量”,并且覆盖不应该真正计算(因为它们动画很快)
更新:这是我在查看器中看到的示例:
答案1
PDF 页面标签是通过 添加的beamer
。\thispagelabel{\insertframenumber}
由于hyperref
使用\pdfstringdef
将页面标签转换为 PDF 字符串,因此\pdfstringdefDisableCommands
可以使用其方法更改\insertframenumber
页面标签。我没有找到覆盖层的计数器,唯一有用的东西是框架启动时的页码\beamer@framestartpage
。这至少允许计算覆盖层编号。
\listfiles
\documentclass{beamer}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\pdfstringdefDisableCommands{%
\renewcommand*{\insertframenumber}{%
\theframenumber-%
\the\numexpr\value{page}-\beamer@framestartpage+1\relax
}%
}
\begin{document}
\begin{frame}
\fontsize{20mm}{30mm}\selectfont\bfseries
1st frame,\\
\only<1>{1st overlay}
\only<2>{2nd overlay}
\only<3>{3rd overlay}
\end{frame}
\begin{frame}
\fontsize{20mm}{30mm}\selectfont\bfseries
2nd frame,\\
\only<1>{1st overlay}
\only<2>{2nd overlay}
\only<3>{3rd overlay}
\end{frame}
\end{document}
更新后的问题对应的图片:
\listfiles
, 2.9的输出MiKTeX
:
*File List* beamer.cls 2011/09/12 development version 3.20 A class for typesetting pre sentations (rcs-revision 70f9d8411e54) beamerbasercs.sty 2012/06/01 (rcs-revision 352157baec3a) beamerbasemodes.sty 2012/04/15 (rcs-revision cc6557182d97) beamerbasedecode.sty 2010/05/01 (rcs-revision efa082c6111d) ifpdf.sty 2011/01/30 v2.3 Provides the ifpdf switch (HO) beamerbaseoptions.sty 2010/04/27 (rcs-revision 982469101dd6) keyval.sty 1999/03/16 v1.13 key=value parser (DPC) geometry.sty 2010/09/12 v5.6 Page Geometry ifvtex.sty 2010/03/01 v1.5 Detect VTeX and its facilities (HO) ifxetex.sty 2010/09/12 v0.6 Provides ifxetex conditional geometry.cfg size11.clo 2007/10/19 v1.4h Standard LaTeX file (size option) pgfcore.sty 2010/04/11 v2.10 (rcs-revision 1.7) graphicx.sty 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR) graphics.sty 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR) trig.sty 1999/03/16 v1.09 sin cos tan (DPC) graphics.cfg 2010/04/23 v1.9 graphics configuration of TeX Live pdftex.def 2011/05/27 v0.06d Graphics/color for pdfTeX infwarerr.sty 2010/04/08 v1.3 Providing info/warning/error messages (HO) ltxcmds.sty 2011/11/09 v1.22 LaTeX kernel commands for general use (HO) pgfsys.sty 2010/06/30 v2.10 (rcs-revision 1.37) pgfrcs.sty 2010/10/25 v2.10 (rcs-revision 1.24) everyshi.sty 2001/05/15 v3.00 EveryShipout Package (MS) pgfrcs.code.tex pgfsys.code.tex pgfsyssoftpath.code.tex 2008/07/18 (rcs-revision 1.7) pgfsysprotocol.code.tex 2006/10/16 (rcs-revision 1.4) xcolor.sty 2007/01/21 v2.11 LaTeX color extensions (UK) color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive pgfcore.code.tex xxcolor.sty 2003/10/24 ver 0.1 hyperref.sty 2012/05/13 v6.82q Hypertext links for LaTeX hobsub-hyperref.sty 2012/04/25 v1.12 Bundle oberdiek, subset hyperref (HO) hobsub-generic.sty 2012/04/25 v1.12 Bundle oberdiek, subset generic (HO) hobsub.sty 2012/04/25 v1.12 Construct package bundles (HO) ifluatex.sty 2010/03/01 v1.3 Provides the ifluatex switch (HO) intcalc.sty 2007/09/27 v1.1 Expandable calculations with integers (HO) etexcmds.sty 2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO) kvsetkeys.sty 2012/04/25 v1.16 Key value parser (HO) kvdefinekeys.sty 2011/04/07 v1.3 Define keys (HO) pdftexcmds.sty 2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO) pdfescape.sty 2011/11/25 v1.13 Implements pdfTeX's escape features (HO) bigintcalc.sty 2012/04/08 v1.3 Expandable calculations on big integers (HO) bitset.sty 2011/01/30 v1.1 Handle bit-vector datatype (HO) uniquecounter.sty 2011/01/30 v1.2 Provide unlimited unique counter (HO) letltxmacro.sty 2010/09/02 v1.4 Let assignment for LaTeX macros (HO) hopatch.sty 2011/06/24 v1.1 Wrapper for package hooks (HO) xcolor-patch.sty 2011/01/30 xcolor patch atveryend.sty 2011/06/30 v1.8 Hooks at the very end of document (HO) atbegshi.sty 2011/10/05 v1.16 At begin shipout hook (HO) refcount.sty 2011/10/16 v3.4 Data extraction from label references (HO) hycolor.sty 2011/01/30 v1.7 Color options for hyperref/bookmark (HO) kvoptions.sty 2011/06/30 v3.11 Key value format for package options (HO) pd1enc.def 2012/05/13 v6.82q Hyperref: PDFDocEncoding definition (HO) hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive url.sty 2006/04/12 ver 3.3 Verb mode for urls, etc. hpdftex.def 2012/05/13 v6.82q Hyperref driver for pdfTeX rerunfilecheck.sty 2011/04/15 v1.7 Rerun checks for auxiliary files (HO) beamerbaserequires.sty 2010/05/01 (rcs-revision efa082c6111d) beamerbasecompatibility.sty 2012/05/01 (rcs-revision 67c48b3b652d) beamerbasefont.sty 2012/05/10 (rcs-revision a0b4f9f91ee9) amssymb.sty 2009/06/22 v3.00 amsfonts.sty 2009/06/22 v3.00 Basic AMSFonts support sansmathaccent.sty 2012/04/26 beamerbasetranslator.sty 2010/06/11 (rcs-revision 85fd1cc7fc42) translator.sty 2010/06/12 ver 1.10 translator-language-mappings.tex beamerbasemisc.sty 2012/02/24 (rcs-revision 2ff5461be705) beamerbasetwoscreens.sty 2010/05/01 (rcs-revision efa082c6111d) beamerbaseoverlay.sty 2012/04/03 (rcs-revision 45744d9ae88b) beamerbasetitle.sty 2010/09/21 (rcs-revision f0446ed0b6ae) beamerbasesection.sty 2012/05/30 (rcs-revision 22ff49def670) beamerbaseframe.sty 2012/05/31 (rcs-revision 5fc3b3dbfeba) beamerbaseverbatim.sty 2011/09/12 (rcs-revision 70f9d8411e54) beamerbaseframesize.sty 2011/09/12 (rcs-revision 70f9d8411e54) beamerbaseframecomponents.sty 2012/03/07 (rcs-revision 9f094699ce15) beamerbasecolor.sty 2010/06/06 (rcs-revision d1a9b48be06d) beamerbasenotes.sty 2010/05/01 (rcs-revision efa082c6111d) beamerbasetoc.sty 2012/02/28 (rcs-revision 138681b92320) beamerbasetemplates.sty 2010/05/01 (rcs-revision efa082c6111d) beamerbaseauxtemplates.sty 2012/05/01 (rcs-revision 67c48b3b652d) beamerbaseboxes.sty 2012/05/13 (rcs-revision 56972908a390) beamerbaselocalstructure.sty 2012/05/25 (rcs-revision 5ff5e8ed7c0e) enumerate.sty 1999/03/05 v3.00 enumerate extensions (DPC) beamerbasenavigation.sty 2012/04/03 (rcs-revision 42a0f21a412d) beamerbasetheorems.sty 2010/06/06 (rcs-revision 7e7cc5e53e9d) amsmath.sty 2000/07/18 v2.13 AMS math features amstext.sty 2000/06/29 v2.01 amsgen.sty 1999/11/30 v2.0 amsbsy.sty 1999/11/29 v1.2d amsopn.sty 1999/12/14 v2.01 operator names amsthm.sty 2004/08/06 v2.20 beamerbasethemes.sty 2010/05/01 (rcs-revision efa082c6111d) beamerthemedefault.sty 2010/06/17 (rcs-revision d02a7cf4d8ae) beamerfontthemedefault.sty 2010/06/17 (rcs-revision d02a7cf4d8ae) beamercolorthemedefault.sty 2010/06/17 (rcs-revision d02a7cf4d8ae) beamerinnerthemedefault.sty 2012/05/01 (rcs-revision 67c48b3b652d) beamerouterthemedefault.sty 2010/06/17 (rcs-revision d02a7cf4d8ae) fontenc.sty t1enc.def 2005/09/27 v1.99g Standard LaTeX file lmodern.sty 2009/10/30 v1.6 Latin Modern Fonts t1lmss.fd 2009/10/30 v1.6 Font defs for Latin Modern supp-pdf.mkii epstopdf-base.sty 2010/02/09 v2.5 Base part for package epstopdf grfext.sty 2010/08/19 v1.1 Manage graphics extensions (HO) nameref.sty 2010/04/30 v2.40 Cross-referencing by name of section gettitlestring.sty 2010/12/03 v1.4 Cleanup title references (HO) test.out test.out translator-basic-dictionary-English.dict translator-bibliography-dictionary-English.dict translator-environment-dictionary-English.dict translator-months-dictionary-English.dict translator-numbers-dictionary-English.dict translator-theorem-dictionary-English.dict ***********