summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/verbatimbox
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-04-15 22:24:46 +0000
committerKarl Berry <karl@freefriends.org>2013-04-15 22:24:46 +0000
commit49742e558ae6a2766508b2c59f24009d0d4a94b2 (patch)
treeb085b7abeba27403f83de8c21bd796e367f55b74 /Master/texmf-dist/doc/latex/verbatimbox
parentde6e8c69e15337c4ed24ec5159e72fd0d35cf839 (diff)
verbatimbox (15apr13)
git-svn-id: svn://tug.org/texlive/trunk@29957 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/verbatimbox')
-rw-r--r--Master/texmf-dist/doc/latex/verbatimbox/README24
-rw-r--r--Master/texmf-dist/doc/latex/verbatimbox/verbatimbox_example.pdfbin0 -> 61039 bytes
-rw-r--r--Master/texmf-dist/doc/latex/verbatimbox/verbatimbox_example.tex78
3 files changed, 102 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/verbatimbox/README b/Master/texmf-dist/doc/latex/verbatimbox/README
new file mode 100644
index 00000000000..55ee4311328
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/verbatimbox/README
@@ -0,0 +1,24 @@
+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.
+
+Input to the verbatim box can either be as text typed into the verbbox
+environment, or else as the contents of a file, provided as an argument
+to the \verbfilebox command. In either case, an optional argument may
+be provided to modify the text appearance, for example, by changing the
+font size of the verbatim text placed into the box.
+
+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..8dbcc0fea26
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/verbatimbox/verbatimbox_example.pdf
Binary files 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..5f06af0a3cf
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/verbatimbox/verbatimbox_example.tex
@@ -0,0 +1,78 @@
+\documentclass{article}
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3
+% of this license or (at your option) any later version.
+% The latest version of this license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.3c or later is part of all distributions of LaTeX
+% version 2005/12/01 or later.
+%
+% This work has the LPPL maintenance status `maintained'.
+%
+% The Current Maintainer of this work is Steven B. Segletes.
+%
+\pagestyle{empty}
+\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}[\footnotesize]
+ 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). When doing so, I used an optional argument of
+\verb,\footnotesize,. 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}\\
+\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, including some places where \verb,verbatim, would
+not otherwise be allowed.
+
+Finally, the \verb,\verbfilebox, command acts just like the
+\verb,verbbox, environment, except that it takes as its input the
+contents of a file (provided as the mandatory argument to the command).
+Like, the \verb,verbbox, environment, the \verb,\verbfilebox, command
+also has an optional argument through which things like font size of
+\verb,\theverbbox, can be altered.
+
+\end{document}