Possible imcompatibility with verbatim.sty

Create issue
Issue #5 resolved
Former user created an issue

Encountered a possible incompatibility with verbatim.sty. Using \verbatiminput{xx} yields a missing item error.

Used:

 *File List*
standalone.cls    2012/09/15 v1.1b Class to compile TeX sub-files standalone
ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)
   ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)
 ifxetex.sty    2010/09/12 v0.6 Provides ifxetex conditional
 xkeyval.sty    2012/10/14 v2.6b package option processing (HA)
 xkeyval.tex    2012/10/14 v2.6b key=value parser (HA)
standalone.cfg    2012/09/15 v1.1b Default configuration file for 'standalone' 
class
 article.cls    2007/10/19 v1.4h Standard LaTeX document class
  size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)
inputenc.sty    2008/03/30 v1.1d Input encoding file
  latin1.def    2008/03/30 v1.1d Input encoding file
verbatim.sty    2003/08/22 v1.5q LaTeX2e package for verbatim enhancements

with pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)
\documentclass{standalone}

\usepackage[latin1]{inputenc}

\usepackage{verbatim}


\begin{document}

\verbatiminput{myname.txt}

\end{document}

Comments (2)

  1. Martin Scharrer repo owner

    The reason this happens is that \verbatiminput creates a paragraph and v1.x standalone works in restricted horizontal mode by default. You need to use either the {{{preview}}} option to switch back to the v0.x way to use the {{{preview}}} package or the {{{varwidth}}} option to allow for paragraphs.

  2. Log in to comment