From 72e060c8ccab1f801c7f40b5283256f296098de7 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 8 Sep 2008 00:54:18 +0000 Subject: new latex package verbatimbox (20aug08) git-svn-id: svn://tug.org/texlive/trunk@10478 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/verbatimbox/README | 18 +++++++ .../doc/latex/verbatimbox/verbatimbox_example.pdf | Bin 0 -> 30963 bytes .../doc/latex/verbatimbox/verbatimbox_example.tex | 57 +++++++++++++++++++++ 3 files changed, 75 insertions(+) create mode 100644 Master/texmf-dist/doc/latex/verbatimbox/README create mode 100644 Master/texmf-dist/doc/latex/verbatimbox/verbatimbox_example.pdf create mode 100644 Master/texmf-dist/doc/latex/verbatimbox/verbatimbox_example.tex (limited to 'Master/texmf-dist/doc/latex/verbatimbox') diff --git a/Master/texmf-dist/doc/latex/verbatimbox/README b/Master/texmf-dist/doc/latex/verbatimbox/README new file mode 100644 index 00000000000..57a881cd961 --- /dev/null +++ b/Master/texmf-dist/doc/latex/verbatimbox/README @@ -0,0 +1,18 @@ +The style file verbatimbox has been created for the report writer's +convenience. + +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. + +Sorry I don't have a separate documentation file, but it's very simply +documented in the style file itself and in the verbatimbox_example. + + -Steven Segletes diff --git a/Master/texmf-dist/doc/latex/verbatimbox/verbatimbox_example.pdf b/Master/texmf-dist/doc/latex/verbatimbox/verbatimbox_example.pdf new file mode 100644 index 00000000000..b603fd385a0 Binary files /dev/null and b/Master/texmf-dist/doc/latex/verbatimbox/verbatimbox_example.pdf differ diff --git a/Master/texmf-dist/doc/latex/verbatimbox/verbatimbox_example.tex b/Master/texmf-dist/doc/latex/verbatimbox/verbatimbox_example.tex new file mode 100644 index 00000000000..66dc277c0c8 --- /dev/null +++ b/Master/texmf-dist/doc/latex/verbatimbox/verbatimbox_example.tex @@ -0,0 +1,57 @@ +\documentclass{article} +\usepackage{verbatimbox} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\begin{document} + +\parskip 1em + +This is a test of the \textsf{verbatimbox} style package, to +test the \verb,verbbox, environment. I am about to call on the +\verb,verbbox, environment to see how if I can stuff \verb,verbatim, +text into a \LaTeX{} box. Here goes... + +\begin{verbbox} + Program test + implicit none + integer a, x + a = 0 + x = 1 + 10 a = a + x + if (a .eq. 100) stop + goto 10 + end +!@#$%^&*()_+=-{}|\][<>?/\\\ +\end{verbbox} + +OK, I have created a \verb,verbbox, (which creates no output in and of +itself), and I now wish to see if I can stick it into a \verb,tabular, +environment. Note, when sticking a verbbox into the \verb,tabular, +environment, use the \verb,[t], option of \verb,\theverbbox,. +\begin{center} +\begin{tabular}{| c | c | c |} +\hline +%\raisebox{0.7in}{First box of table}&% +%\theverbbox[t] & +%\raisebox{0.7in}{last box of table}\\ +First box of table&% +\begin{tabular}{@{} c @{}} \theverbbox[t]\end{tabular}& +last box of table\\ +\hline +\end{tabular} +\end{center} + +Otherwise, if I choose, I can just stick the \verb,verbatim, box into an +\verb,fbox,, +so as to frame the result. This latter case produces the same output as +would the \verb,boxedverbatim, environment in the \textsf{moreverb} +package. + +\fbox{\theverbbox} + +Being a box, I can use \verb,verbbox, output as part of a figure or +table, for example. Bottom line: the \textsf{verbatimbox} package +provides nice flexibility in utilizing the \verb,verbatim, environment +in a variety of ways. + +\end{document} -- cgit v1.2.3