1. Vedran Miletić
  2. beamer
  3. Issues
Issue #215 resolved

Issue with plain text in "fragile" mode (v3.20)

Heather Miller
created an issue


I've encountered what seem like an issue when using fragile mode (i.e. \begin{frame}[fragile]) in version 3.20. To be brief, the issue is that a \par is being generated by beamer in the *.vrb file without a space following it. So, what happens is that a \par token gets stuck to the first word in the slide without a space separating it. (Of course, all is fine when a second token follows, i.e. you'd have \par\yourtoken, but not an arbitrary word)

So, for the following slide:



\begin{frame}[fragile] Hello world! \end{frame}

}}} The following is generated in the *.vrb file:



\parHello world! }}}

Clearly, pdflatex, xelatex, etc, will fail, complaining of an undefined control sequence.

This issue isn't present at all in beamer 3.10.

In poking around, I discovered this issue: #93, which could be the origin of this behavior.

In my case, this results in me not being able to use beamer + syntax highlighting (i.e. via minted) across machines running TeX Live.

Comments (4)

  1. Joseph Wright

    I don't see this with minimal example

    Hello world!

    Can you provide an example, ideally along with \listfiles output.

  2. Heather Miller reporter

    The culprit is apparently a newline after \begin{frame}[fragile]. This will recreate it:

    Hello world!

    And it causes this:

    ! Undefined control sequence.
    l.1 \parHello

    This is happening with MacTeX-2012 (beamer v3.20). I discovered this when my beamer presentations suddenly stopped compiling on a colleague's computer with a fresh installation of MacTeX-2012. I had been using MacTeX-2011, where all runs fine (beamer v3.10).

    `\listfiles` output from the MacTeX-2012 machine:

    *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
      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
       xetex.def    2009/11/22 v0.94 LaTeX color/graphics driver for XeTeX (RRM/JK)
      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)
    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
     xxcolor.sty    2003/10/24 ver 0.1
    hyperref.sty    2012/05/13 v6.82q Hypertext links for LaTeX
    hobsub-hyperref.sty    2012/05/28 v1.13 Bundle oberdiek, subset hyperref (HO)
    hobsub-generic.sty    2012/05/28 v1.13 Bundle oberdiek, subset generic (HO)
      hobsub.sty    2012/05/28 v1.13 Construct package bundles (HO)
    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)
    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    2012/05/28 v1.2 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    2008/07/11 v1.2 hyperref configuration for XeLaTeX
         url.sty    2006/04/12  ver 3.3  Verb mode for urls, etc.
      hxetex.def    2012/05/13 v6.82q Hyperref driver for XeTeX
       puenc.def    2012/05/13 v6.82q Hyperref: PDF Unicode definition (HO)
    stringenc.sty    2011/12/02 v1.10 Convert strings between diff. encodings (HO)
    rerunfilecheck.sty    2011/04/15 v1.7 Rerun checks for auxiliary files (HO)
    se-ascii-print.def    2011/12/02 v1.10 stringenc: Printable ASCII characters
    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
    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    2009/07/02 v2.20.1
    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)
     nameref.sty    2010/04/30 v2.40 Cross-referencing by name of section
    gettitlestring.sty    2010/12/03 v1.4 Cleanup title references (HO)
  3. Joseph Wright

    Detect blank line read as \par when first line of verbatim frame (fixes issue #215)

    When reading verbatim, we have an issue as beamer is rather too flexible with the first token in the frame: see issue #93 for when this can go wrong. If the first token in the frame is a blank line, TeX will convert this to a \par token. The best way to deal with this is to detect such a token and write as a blank line to the .vrb file. (It is much more likely that a blank line has been read than an actual \par token.)


  4. Log in to comment