Document ClassesCannot use Beamer with verbatim, even with fragile set

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
wyverald
Posts: 2
Joined: Thu Apr 01, 2010 4:31 pm

Cannot use Beamer with verbatim, even with fragile set

Post by wyverald »

Code: Select all

\documentclass{beamer}
\usepackage{verbatim}

\begin{document}
 
 \begin{frame}[fragile]
  \begin{verbatim}
   asdfadsf
  \end{verbatim}

 \end{frame}

\end{document}
I get the following error: (The 5th line, something about "\next", is the error; the other two lines are warnings which do not cause compilation to abort.)

Code: Select all

[PDFLaTeX] sadf => sadf.pdf (pdflatex)
[PDFLaTeX] finished with exit status 1
sadf:0: Option `pdfpagelabels' is turned off(hyperref) because \thepage is undefined.
sadf:0:No file sadf.nav.
sadf:0:File ended while scanning use of \next.
[PDFLaTeX] 1 error, 2 warnings, 0 badboxes
I'm not sure if it's because I have some bad package setting... Thanks in advance to anyone who could help me with this.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Cannot use Beamer with verbatim, even with fragile set

Post by josephwright »

Try \listfiles, so we can see what file versions you have. I get

Code: Select all

 *File List*
  beamer.cls    2007/03/11 cvs version 3.07 A class for typesetting presentatio
ns (rcs-revision 1.70)
beamerbasercs.sty    2007/01/28 (rcs-revision 1.4)
beamerbasemodes.sty    2007/01/28 (rcs-revision 1.22)
beamerbasedecode.sty    2007/01/28 (rcs-revision 1.20)
beamerbaseoptions.sty    2007/01/28 (rcs-revision 1.8)
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
 pgfcore.sty    2008/01/15 v2.00 (rcs-revision 1.6)
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    2009/08/28 v1.8 graphics configuration of TeX Live
  pdftex.def    2010/02/14 v0.04n Graphics/color for pdfTeX
  pgfsys.sty    2008/02/07 v2.00 (rcs-revision 1.31)
  pgfrcs.sty    2008/02/20 v2.00 (rcs-revision 1.21)
  pgfrcs.code.tex
  pgfsys.code.tex
pgfsyssoftpath.code.tex    2008/01/23  (rcs-revision 1.6)
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
pgfbaseimage.sty    
 xxcolor.sty    2003/10/24 ver 0.1
 amssymb.sty    2009/06/22 v3.00
amsfonts.sty    2009/06/22 v3.00 Basic AMSFonts support
geometry.sty    2010/03/13 v5.3 Page Geometry
   ifpdf.sty    2010/01/28 v2.1 Provides the ifpdf switch (HO)
  ifvtex.sty    2010/03/01 v1.5 Switches for detecting VTeX and its modes (HO)
hyperref.sty    2010/03/30 v6.80u Hypertext links for LaTeX
 ltxcmds.sty    2010/03/09 v1.4 LaTeX kernel commands for general use (HO)
kvsetkeys.sty    2010/03/01 v1.9 Key value parser (HO)
infwarerr.sty    2007/09/09 v1.2 Providing info/warning/message (HO)
etexcmds.sty    2010/01/28 v1.3 Prefix for e-TeX command names (HO)
pdfescape.sty    2010/03/01 v1.9 Provides hex, PDF name and string conversions 
(HO)
pdftexcmds.sty    2010/03/01 v0.8 Utility functions of pdfTeX for LuaTeX (HO)
ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)
 ifxetex.sty    2009/01/23 v0.5 Provides ifxetex conditional
 hycolor.sty    2009/12/12 v1.6 Color options of hyperref/bookmark (HO)
xcolor-patch.sty    2009/12/12 xcolor patch
letltxmacro.sty    2008/06/24 v1.3 Let assignment for LaTeX macros (HO)
  pd1enc.def    2010/03/30 v6.80u Hyperref: PDFDocEncoding definition (HO)
 intcalc.sty    2007/09/27 v1.1 Expandable integer calculations (HO)
hyperref.cfg    2002/06/06 v1.2 hyperref configuration of TeXLive
kvoptions.sty    2010/02/22 v3.7 Keyval support for LaTeX options (HO)
     url.sty    2006/04/12  ver 3.3  Verb mode for urls, etc.
  bitset.sty    2007/09/28 v1.0 Data type bit set (HO)
bigintcalc.sty    2007/11/11 v1.1 Expandable big integer calculations (HO)
atbegshi.sty    2010/03/25 v1.12 At begin shipout hook (HO)
 hpdftex.def    2010/03/30 v6.80u Hyperref driver for pdfTeX
rerunfilecheck.sty    2010/03/16 v1.6 Rerun checks for auxiliary files (HO)
atveryend.sty    2010/03/24 v1.5 Hooks at very end of document (HO)
uniquecounter.sty    2009/12/18 v1.1 Provides unlimited unique counter (HO)
  size11.clo    2007/10/19 v1.4h Standard LaTeX file (size option)
beamerbasecompatibility.sty    2007/01/28  (rcs-revision 1.63)
beamerbasefont.sty    2007/01/28  (rcs-revision 1.16)
beamerbasemisc.sty    2007/01/28  (rcs-revision 1.24)
beamerbasetwoscreens.sty    2009/06/14  (rcs-revision 1.71)
beamerbaseoverlay.sty    2007/01/28  (rcs-revision 1.50)
beamerbasetitle.sty    2007/01/28  (rcs-revision 1.25)
beamerbasesection.sty    2007/01/28  (rcs-revision 1.21)
beamerbaseframe.sty    2007/01/28  (rcs-revision 1.60)
beamerbaseverbatim.sty    2007/01/28  (rcs-revision 1.8)
beamerbaseframesize.sty    2007/01/28  (rcs-revision 1.18)
beamerbaseframecomponents.sty    2007/01/28  (rcs-revision 1.41)
beamerbasecolor.sty    2007/01/28  (rcs-revision 1.42)
beamerbasenotes.sty    2007/01/28  (rcs-revision 1.23)
beamerbasetoc.sty    2007/01/28  (rcs-revision 1.21)
beamerbasetemplates.sty    2007/01/28  (rcs-revision 1.51)
beamerbaseauxtemplates.sty    2007/01/28  (rcs-revision 1.28)
beamerbaseboxes.sty    2007/03/11  (rcs-revision 1.32)
beamerbaselocalstructure.sty    2007/01/28  (rcs-revision 1.53)
enumerate.sty    1999/03/05 v3.00 enumerate extensions (DPC)
beamerbasenavigation.sty    2007/01/28  (rcs-revision 1.36)
beamerbasetheorems.sty    2007/01/28  (rcs-revision 1.10)
translator.sty    2007/03/11 ver 1.00
translator-language-mappings.tex
 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    2007/01/28  (rcs-revision 1.10)
beamerthemedefault.sty    2007/01/28  (rcs-revision 1.7)
beamerfontthemedefault.sty    2007/01/28  (rcs-revision 1.13)
beamercolorthemedefault.sty    2007/01/28  (rcs-revision 1.28)
beamerinnerthemedefault.sty    2007/01/28  (rcs-revision 1.20)
beamerouterthemedefault.sty    2007/01/28  (rcs-revision 1.14)
verbatim.sty    2003/08/22 v1.5q LaTeX2e package for verbatim enhancements
supp-pdf.mkii
 nameref.sty    2010/01/25 v2.36 Cross-referencing by name of section
refcount.sty    2008/08/11 v3.1 Data extraction from references (HO)
gettitlestring.sty    2009/12/18 v1.3 Cleanup title references (HO)
untitled-5.out
untitled-5.out
translator-theorem-dictionary-English.dict    
untitled-5.vrb
 ***********
from a successful pdfLaTeX run.
Joseph Wright
wyverald
Posts: 2
Joined: Thu Apr 01, 2010 4:31 pm

Cannot use Beamer with verbatim, even with fragile set

Post by wyverald »

I get:

Code: Select all

 *File List*
  beamer.cls    2007/03/11 cvs version 3.07 A class for typesetting presentatio
ns (rcs-revision 1.70)
beamerbasercs.sty    2007/01/28 (rcs-revision 1.4)
beamerbasemodes.sty    2007/01/28 (rcs-revision 1.22)
beamerbasedecode.sty    2007/01/28 (rcs-revision 1.20)
beamerbaseoptions.sty    2007/01/28 (rcs-revision 1.8)
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
 pgfcore.sty    2008/01/15 v2.00 (rcs-revision 1.6)
graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
graphics.sty    2006/02/20 v1.0o Standard LaTeX Graphics (DPC,SPQR)
    trig.sty    1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg    2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
  pdftex.def    2007/01/08 v0.04d Graphics/color for pdfTeX
  pgfsys.sty    2008/02/07 v2.00 (rcs-revision 1.31)
  pgfrcs.sty    2008/02/20 v2.00 (rcs-revision 1.21)
  pgfrcs.code.tex
  pgfsys.code.tex
pgfsyssoftpath.code.tex    2008/01/23  (rcs-revision 1.6)
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
pgfbaseimage.sty    
 xxcolor.sty    2003/10/24 ver 0.1
 amssymb.sty    2002/01/22 v2.2d
amsfonts.sty    2001/10/25 v2.2f
geometry.sty    2002/07/08 v3.2 Page Geometry
hyperref.sty    2007/02/07 v6.75r Hypertext links for LaTeX
  pd1enc.def    2007/02/07 v6.75r Hyperref: PDFDocEncoding definition (HO)
hyperref.cfg    2002/06/06 v1.2 hyperref configuration of TeXLive
kvoptions.sty    2006/08/22 v2.4 Connects package keyval with LaTeX options (HO
)
     url.sty    2005/06/27  ver 3.2  Verb mode for urls, etc.
 hpdftex.def    2007/02/07 v6.75r Hyperref driver for pdfTeX
  size11.clo    2005/09/16 v1.4f Standard LaTeX file (size option)
beamerbasecompatibility.sty    2007/01/28  (rcs-revision 1.63)
beamerbasefont.sty    2007/01/28  (rcs-revision 1.16)
beamerbasemisc.sty    2007/01/28  (rcs-revision 1.24)
beamerbasetwoscreens.sty    2007/01/28  (rcs-revision 1.7)
beamerbaseoverlay.sty    2007/01/28  (rcs-revision 1.50)
beamerbasetitle.sty    2007/01/28  (rcs-revision 1.25)
beamerbasesection.sty    2007/01/28  (rcs-revision 1.21)
beamerbaseframe.sty    2007/01/28  (rcs-revision 1.60)
beamerbaseverbatim.sty    2007/01/28  (rcs-revision 1.8)
beamerbaseframesize.sty    2007/01/28  (rcs-revision 1.18)
beamerbaseframecomponents.sty    2007/01/28  (rcs-revision 1.41)
beamerbasecolor.sty    2007/01/28  (rcs-revision 1.42)
beamerbasenotes.sty    2007/01/28  (rcs-revision 1.23)
beamerbasetoc.sty    2007/01/28  (rcs-revision 1.21)
beamerbasetemplates.sty    2007/01/28  (rcs-revision 1.51)
beamerbaseauxtemplates.sty    2007/01/28  (rcs-revision 1.28)
beamerbaseboxes.sty    2007/03/11  (rcs-revision 1.32)
beamerbaselocalstructure.sty    2007/01/28  (rcs-revision 1.53)
enumerate.sty    1999/03/05 v3.00 enumerate extensions (DPC)
beamerbasenavigation.sty    2007/01/28  (rcs-revision 1.36)
beamerbasetheorems.sty    2007/01/28  (rcs-revision 1.10)
 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    2007/01/28  (rcs-revision 1.10)
beamerthemedefault.sty    2007/01/28  (rcs-revision 1.7)
beamerfontthemedefault.sty    2007/01/28  (rcs-revision 1.13)
beamercolorthemedefault.sty    2007/01/28  (rcs-revision 1.28)
beamerinnerthemedefault.sty    2007/01/28  (rcs-revision 1.20)
beamerouterthemedefault.sty    2007/01/28  (rcs-revision 1.14)
verbatim.sty    2003/08/22 v1.5q LaTeX2e package for verbatim enhancements
 nameref.sty    2006/12/27 v2.28 Cross-referencing by name of section
refcount.sty    2006/02/20 v3.0 Data extraction from references (HO)
    asdf.out
    asdf.out
Post Reply