| 1 |
%% |
| 2 |
%% This is file `verbtest.tex', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% verbatim.dtx (with options: `testdriver') |
| 8 |
%% |
| 9 |
%% This is a generated file. |
| 10 |
%% |
| 11 |
%% The source is maintained by the LaTeX Project team and bug |
| 12 |
%% reports for it can be opened at https://latex-project.org/bugs/ |
| 13 |
%% (but please observe conditions on bug reports sent to that address!) |
| 14 |
%% |
| 15 |
%% |
| 16 |
%% Copyright (C) 1993-2026 |
| 17 |
%% The LaTeX Project and any individual authors listed elsewhere |
| 18 |
%% in this file. |
| 19 |
%% |
| 20 |
%% This file was generated from file(s) of the Standard LaTeX `Tools Bundle'. |
| 21 |
%% -------------------------------------------------------------------------- |
| 22 |
%% |
| 23 |
%% It may be distributed and/or modified under the |
| 24 |
%% conditions of the LaTeX Project Public License, either version 1.3c |
| 25 |
%% of this license or (at your option) any later version. |
| 26 |
%% The latest version of this license is in |
| 27 |
%% https://www.latex-project.org/lppl.txt |
| 28 |
%% and version 1.3c or later is part of all distributions of LaTeX |
| 29 |
%% version 2005/12/01 or later. |
| 30 |
%% |
| 31 |
%% This file may only be distributed together with a copy of the LaTeX |
| 32 |
%% `Tools Bundle'. You may however distribute the LaTeX `Tools Bundle' |
| 33 |
%% without such generated files. |
| 34 |
%% |
| 35 |
%% The list of all files belonging to the LaTeX `Tools Bundle' is |
| 36 |
%% given in the file `manifest.txt'. |
| 37 |
%% |
| 38 |
%% Package `verbatim' to use with LaTeX2e |
| 39 |
%% Copyright (C) 1989--2003 by Rainer Sch\"opf. All rights reserved. |
| 40 |
\documentclass{article} |
| 41 |
|
| 42 |
\usepackage{verbatim} |
| 43 |
|
| 44 |
\newenvironment{myverbatim}% |
| 45 |
{\endgraf\noindent MYVERBATIM:\endgraf\verbatim}% |
| 46 |
{\endverbatim} |
| 47 |
|
| 48 |
\makeatletter |
| 49 |
|
| 50 |
\newenvironment{verbatimlisting}[1]% |
| 51 |
{\def\verbatim@startline{\input{#1}% |
| 52 |
\def\verbatim@startline{\verbatim@line{}}% |
| 53 |
\verbatim@startline}% |
| 54 |
\verbatim}{\endverbatim} |
| 55 |
|
| 56 |
\newwrite\verbatim@out |
| 57 |
|
| 58 |
\newenvironment{verbatimwrite}[1]% |
| 59 |
{\@bsphack |
| 60 |
\immediate\openout \verbatim@out #1 |
| 61 |
\let\do\@makeother\dospecials\catcode`\^^M\active |
| 62 |
\def\verbatim@processline{% |
| 63 |
\immediate\write\verbatim@out{\the\verbatim@line}}% |
| 64 |
\verbatim@start}% |
| 65 |
{\immediate\closeout\verbatim@out\@esphack} |
| 66 |
|
| 67 |
\makeatother |
| 68 |
|
| 69 |
\addtolength{\textwidth}{30pt} |
| 70 |
|
| 71 |
\begin{document} |
| 72 |
|
| 73 |
\typeout{} |
| 74 |
\typeout{===> Expect ``characters dropped'' |
| 75 |
warning messages in this test! <====} |
| 76 |
\typeout{} |
| 77 |
|
| 78 |
Text Text Text Text Text Text Text Text Text Text Text |
| 79 |
Text Text Text Text Text Text Text Text Text Text Text |
| 80 |
Text Text Text Text Text Text Text Text Text Text Text |
| 81 |
\begin{verbatim} |
| 82 |
test |
| 83 |
\end{verbatim*} |
| 84 |
test |
| 85 |
\end{verbatim |
| 86 |
test of ligatures: <`!`?`> |
| 87 |
\endverbatim |
| 88 |
test |
| 89 |
\end verbatim |
| 90 |
test |
| 91 |
test of end of line: |
| 92 |
\end |
| 93 |
{verbatim} |
| 94 |
\end{verbatim} Further text to be typeset: $\alpha$. |
| 95 |
Text Text Text Text Text Text Text Text Text Text Text |
| 96 |
Text Text Text Text Text Text Text Text Text Text Text |
| 97 |
Text Text Text Text Text Text Text Text Text Text Text |
| 98 |
\begin{verbatim*} |
| 99 |
test |
| 100 |
test |
| 101 |
\end {verbatim*} |
| 102 |
Text Text Text Text Text Text Text Text Text Text Text |
| 103 |
Text Text Text Text Text Text Text Text Text Text Text |
| 104 |
Text Text Text Text Text Text Text Text Text Text Text |
| 105 |
\begin{verbatim*} bla bla |
| 106 |
test |
| 107 |
test |
| 108 |
\end {verbatim*} |
| 109 |
Text Text Text Text Text Text Text Text Text Text Text |
| 110 |
Text Text Text Text Text Text Text Text Text Text Text |
| 111 |
Text Text Text Text Text Text Text Text Text Text Text |
| 112 |
Text Text Text Text Text Text Text Text Text Text Text |
| 113 |
|
| 114 |
First of Chris Rowley's fiendish tests: |
| 115 |
\begin{verbatim} |
| 116 |
the double end test<text> |
| 117 |
\end\end{verbatim} or even \end \end{verbatim} |
| 118 |
|
| 119 |
Another of Chris' devils: |
| 120 |
\begin{verbatim} |
| 121 |
the single brace test<text> |
| 122 |
\end{not the end\end{verbatim} |
| 123 |
Back to my own tests: |
| 124 |
\begin{myverbatim} |
| 125 |
test |
| 126 |
test |
| 127 |
\end {myverbatim} rest of line |
| 128 |
Text Text Text Text Text Text Text Text Text Text Text |
| 129 |
Text Text Text Text Text Text Text Text Text Text Text |
| 130 |
Text Text Text Text Text Text Text Text Text Text Text |
| 131 |
|
| 132 |
Test of empty verbatim: |
| 133 |
\begin{verbatim} |
| 134 |
\end{verbatim} |
| 135 |
Text Text Text Text Text Text Text Text Text Text Text |
| 136 |
Text Text Text Text Text Text Text Text Text Text Text |
| 137 |
Text Text Text Text Text Text Text Text Text Text Text |
| 138 |
\begin {verbatimlisting}{verbtest.tex} |
| 139 |
Additional verbatim text |
| 140 |
... |
| 141 |
\end{verbatimlisting} |
| 142 |
And here for listing a file: |
| 143 |
\verbatiminput{verbtest.tex} |
| 144 |
And again, with explicit spaces: |
| 145 |
\verbatiminput*{verbtest.tex} |
| 146 |
Text Text Text Text Text Text Text Text Text Text Text |
| 147 |
Text Text Text Text Text Text Text Text Text Text Text |
| 148 |
Text Text Text Text Text Text Text Text Text Text Text |
| 149 |
\begin{comment} |
| 150 |
test |
| 151 |
\end{verbatim*} |
| 152 |
test |
| 153 |
\end {comment |
| 154 |
test |
| 155 |
\endverbatim |
| 156 |
test |
| 157 |
\end verbatim |
| 158 |
test |
| 159 |
\end {comment} Further text to be typeset: $\alpha$. |
| 160 |
Text Text Text Text Text Text Text Text Text Text Text |
| 161 |
Text Text Text Text Text Text Text Text Text Text Text |
| 162 |
Text Text Text Text Text Text Text Text Text Text Text |
| 163 |
\begin{comment} bla bla |
| 164 |
test |
| 165 |
test |
| 166 |
\end {comment} |
| 167 |
Text Text Text Text Text Text Text Text Text Text Text |
| 168 |
Text Text Text Text Text Text Text Text Text Text Text |
| 169 |
Text Text Text Text Text Text Text Text Text Text Text |
| 170 |
Text Text Text Text Text Text Text Text Text Text Text |
| 171 |
|
| 172 |
\begin{verbatimwrite}{verbtest.txt} |
| 173 |
asfa<fa<df |
| 174 |
sdfsdfasd |
| 175 |
asdfa<fsa |
| 176 |
\end{verbatimwrite} |
| 177 |
|
| 178 |
\end{document} |
| 179 |
\endinput |
| 180 |
%% |
| 181 |
%% End of file `verbtest.tex'. |