CTAN has a new package: verbatimbox
Do you need to include blocks of verbatim text inside figures or tables? The verbatim environment is not compatible with some of these other environments. But now, the verbbox environment allows you to input verbatim text and store it in a LaTeX box. That box then becomes generally usable in all other LaTeX environments, and can be simply recalled. This style therefore allows for a greater use of the verbatim environment within other LaTeX constructs where verbatim was previously inaccessible.
This package is located at http://tug.ctan.org/tex-archive/macros/latex/contrib/verbatimbox . More information is at http://tug.ctan.org/pkg/verbatimbox (if the package is new it may take a day for that information to appear). We are supported by the TeX Users Group http://www.tug.org . Please join a users group; see http://www.tug.org/usergroups.html .
verbatimbox – Deposit verbatim text in a box
The package provides a verbbox environment (which uses techniques similar to those of the boxedverbatim environment of the moreverb package) to place its contents into a globally available box, or into a box specified by the user.
The global box may then be used in a variety of situations (for example, providing a replica of the boxedverbatim environment itself). A valuable use is in places where the standard verbatim environment (which is based on a trivlist) may not appear.
The package makes use of the verbatim package (which is a required part of any LaTeX distribution).
|Maintainer||Steven B. Segletes|