Debian Codegraph @

texmf-dist/doc/latex/verbasef/verbasef-doc.tex

raw
1 \documentclass[pagesize=auto]{scrartcl}
2
3 \usepackage{fixltx2e}
4 \usepackage{etex}
5 \usepackage{lmodern}
6 \usepackage[T1]{fontenc}
7 \usepackage{textcomp}
8 \usepackage{amstext}
9 \usepackage{microtype}
10 \usepackage{hyperref}
11
12 \newcommand*{\mail}[1]{\href{mailto:#1}{\texttt{#1}}}
13 \newcommand*{\pkg}[1]{\textsf{#1}}
14 \newcommand*{\cs}[1]{\texttt{\textbackslash#1}}
15 \makeatletter
16 \newcommand*{\cmd}[1]{\cs{\expandafter\@gobble\string#1}}
17 \makeatother
18 \newcommand*{\opt}[1]{\texttt{#1}}
19 \newcommand*{\meta}[1]{\textlangle\textsl{#1}\textrangle}
20 \newcommand*{\oarg}[1]{\texttt{[}\meta{#1}\texttt{]}}
21
22 \addtokomafont{title}{\rmfamily}
23
24 \title{The \pkg{verbasef} package\thanks{This manual corresponds to \pkg{verbasef.sty}~v1.1, dated~95/01/20.}}
25 \subtitle{VERBatim Automatic Splitting of External Files}
26 \author{Paul A. Thompson}
27 \date{95/01/20}
28
29
30 \begin{document}
31
32 \maketitle
33
34 \noindent
35 Requires:
36 %
37 \begin{itemize}
38 \item The New Font Selection Scheme (NFSS) as implemented in \LaTeXe
39 \item \pkg{VERBATIM.STY} by Rainer Schoepf
40 \item \pkg{VRBEXIN.STY} by Paul Thompson \\
41 However, it is based on \pkg{vrbinput.sty}, a style by
42 Bernd Raichle which must be revised as discussed below
43 in the section labeled ``\hyperref[sec:important]{Important}''
44 \item \pkg{HERE.STY} by David Carlisle
45 \end{itemize}
46
47 \pkg{verbasef} allows you to input (subsections of a) file, print them in
48 verbatim mode, while automatically breaking up the inputted lines into
49 pieces of a given length, which are output as figures. These figures are
50 posted using the \verb+[H]+ specification, which forces \LaTeX\ to place the figure
51 at the spot of invocation, rather than floating the figures to the top of
52 the next page.
53
54 Options for the verbasef specification include:
55 %
56 \begin{itemize}
57 \item numbering of input lines
58 \item differential number of lines for the first page
59 \item specification of the font for the verbatim output
60 \item specification of the font for the optional line numbering
61 \item specification of line numbers as labels \\
62 To use the labelling feature, non-standard approaches must be used.
63 A line number will be inserted into the main \texttt{.aux} file with label \texttt{foo},
64 if the specification
65 %
66 \begin{verbatim}
67 Vzzlabel|foo|
68 \end{verbatim}
69 %
70 is inserted \emph{after} the line which is to be indicated. Thus, if we have
71 a file with the following
72 %
73 \begin{verbatim}
74 a line
75 b line
76 Vzzlabel|fooa|
77 c line
78 Vzzlabel|foob|
79 d line
80 Vzzlabel|fooc|
81 e line
82 f line
83 Vzzlabel|food|
84 \end{verbatim}
85 %
86 these lines will be found in the \texttt{.aux} file.
87 %
88 \begin{verbatim}
89 \newlabel{fooa}{{2}{1}}
90 \newlabel{foob}{{3}{1}}
91 \newlabel{fooc}{{4}{1}}
92 \newlabel{food}{{6}{1}}
93 \end{verbatim}
94 %
95 They can be used as any other label, for instance
96 %
97 \begin{verbatim}
98 Using the labeling feature, pay attention to Line \ref{food} (found
99 on Page \pageref{food}) to understand this radically new method.
100 \end{verbatim}
101
102 Any lines with the \texttt{Vzzlabel} specification will be ignored in the
103 line counts.
104 \end{itemize}
105
106
107 \section{Using the style}
108
109 \pkg{verbasef} is an adaptation of \pkg{VRBSUBFILE}, from Norman Walsh.
110 I fully acknowledge Mr./Dr.~Walsh as the imprimature of the code ensconced
111 herein, but have included other features as indicated above.
112
113 Comments and suggestions always welcome.
114 %
115 \begin{verse}
116 Paul A. Thompson \\
117 Department of Psychiatry, Data Analysis and Statistics Section \\
118 Case Western Reserve University \\
119 Cleveland, OH 44106
120
121 AudioNet: (216) 844-8946 \\
122 InterNet: \mail{[email protected]}
123 \end{verse}
124
125
126 \minisec{User interface:}
127
128 \begin{description}
129 \item[\cmd{\VautoSubF}\oarg{\#1}\meta{\#2}\meta{\#3}\meta{\#4}\meta{\#5}\meta{\#6}]
130 Input lines \meta{\#2} to \meta{\#3} of file \meta{\#4}. If present, \meta{\#1} indicates which lines
131 should be numbered. For example, if \meta{\#1} is~5, lines 5, 10, 15, etc.
132 will be numbered. By default, lines are not numbered at all.
133 \meta{\#5} is figure caption, and \meta{\#6} is figure label.
134
135 \item[\cmd{VautoSfFont}\oarg{\#1}\meta{\#2}]
136 Use font \meta{\#2} for verbatim input lines and, if present, use font \meta{\#1} for
137 line numbers. By default, \meta{\#2} is \cmd{\tt} and \meta{\#1} is \verb+\rm\tiny+.
138
139 \item[\cmd{VautoPl}\meta{\#1}]
140 Placement of the figure (either \opt{H} or some other placement character)
141 By default, placement is \opt{H} (immediate here, \pkg{here.sty})
142 (This currently does not function. All placement is done using the
143 \opt{H} specification.)
144
145 \item[\cmd{VautoLines}\oarg{\#1}{\meta{\#2}}]
146 \meta{\#2} is number of lines per page. If \meta{\#1} is included, it is the number of
147 lines for the first page. If not, $\text{\meta{\#1}} = \text{\meta{\#2}}$
148 \end{description}
149
150
151 \section{Important}
152 \label{sec:important}
153
154 In order to use the \pkg{verbasef.sty} file, \pkg{VRBINPUT.STY} must be \emph{modified}
155 and given a \emph{new name.} Here are instructions for modification:
156
157 You must do \emph{either} \ref{item:1}--\ref{item:4} below \emph{or} \ref{item:5} below to get \pkg{verbasef} to run properly.
158
159 \begin{enumerate}
160 \item \label{item:1}
161 Obtain \pkg{vrbinput.sty} from the standard distribution channels. The file
162 should have the following characteristics:
163 %
164 \begin{verbatim}
165 \fileversion{v1.0b}
166 \filedate{91/06/30}
167 \docdate{91/08/05}
168 \end{verbatim}
169
170 \item Copy \texttt{vrbinput.sty} to a file \texttt{vrbexin.sty}. \emph{This must be done prior to
171 editing any file.}
172
173 \item Edit the file \texttt{vrbexin.sty}. Please don't edit the file \texttt{vrbinput.sty}.
174 Change Line~90 from \cmd{\verbatim@startline} to \cmd{\verbatim@start}
175 as shown in the fragment of code from Lines~89--92 below.
176 %
177 \begin{verbatim}
178 \def\verbatim@readfile#1{%
179 \verbatim@start
180 \openin\verbatim@in@stream #1\relax
181 \ifeof\verbatim@in@stream
182 \end{verbatim}
183
184 \item \label{item:4} \emph{Very important.} \emph{Change all occurrances} of \texttt{vrbinput}, in titles, typeout
185 sections and credits to \texttt{vrbexin}. Remove all references to the original
186 author, Bernd Raichle, as he is not the author of the style file \pkg{vrbexin}.
187 You may substitute my name for Mr.~Raichle if you wish.
188
189 \item \label{item:5} Obtain \texttt{vrbexin.sty} directly from the same subdirectory that \pkg{verbasef} was
190 found in.
191
192 \item Place this \texttt{.sty} file in a place searched by \TeX, on the \texttt{TEXINPUT} path.
193 \end{enumerate}
194 %
195 After I can figure out the \textsc{docstrip} utility, I will do this stuff myself.
196
197 Note: As is standard practice in the \TeX\ community, any modifications in
198 \texttt{.sty} files must be given new names. Thus, it is certainly vitally important
199 that the modifications in \pkg{vrbinput.sty} be done in the file named
200 \texttt{vrbexin.sty}, not in the original which I did not write.
201
202 \end{document}