| 1 |
% |
| 2 |
% By: Robert Schneider |
| 3 |
% |
| 4 |
% LaTeX input file which describes how dvi2tty works under |
| 5 |
% VMS with VAXC. When using this file as a source for documentation |
| 6 |
% of dvi2tty on your system, look for the string "NOTE ---" to |
| 7 |
% see what local variables need to be set. |
| 8 |
% |
| 9 |
% This file was created by modifying the original Unix man page. |
| 10 |
% The majority of the conversion from troff to TeX was done by |
| 11 |
% tr2tex. |
| 12 |
% |
| 13 |
\documentstyle{article} |
| 14 |
% |
| 15 |
% Set the page margins. |
| 16 |
% |
| 17 |
\parindent 0pt |
| 18 |
\marginparpush 5pt |
| 19 |
\headheight 5pt |
| 20 |
\headsep 0pt |
| 21 |
\footheight 5pt |
| 22 |
\footskip 15pt |
| 23 |
\columnsep 10pt |
| 24 |
\columnseprule 0pt |
| 25 |
\marginparwidth 0pt |
| 26 |
\oddsidemargin 0pt |
| 27 |
\evensidemargin 0pt |
| 28 |
\marginparsep 0pt |
| 29 |
\topmargin 0pt |
| 30 |
\textwidth 6.5in |
| 31 |
\textheight 9.0in |
| 32 |
% |
| 33 |
\newcommand{\bs}{$\backslash$} |
| 34 |
% |
| 35 |
\title{{\bf DVI2TTY for VAX/VMS}} |
| 36 |
\author{} |
| 37 |
\date{April 25, 1990} |
| 38 |
% |
| 39 |
\begin{document} |
| 40 |
\maketitle |
| 41 |
% |
| 42 |
% NOTE --- We like to describe what something is and how to get it |
| 43 |
% at the top of our files. You will probably want to |
| 44 |
% delete from here to the next \section. |
| 45 |
% |
| 46 |
This document describes the use of {\bf dvi2tty}\/, a filter for converting |
| 47 |
the device independent output files created by \TeX\/ to files which may |
| 48 |
be printed on any ASCII terminal or line printer. |
| 49 |
This document may be printed on the line printer in CPE-3.102 by entering |
| 50 |
the command; |
| 51 |
\\[1ex] |
| 52 |
{\em DOCPRINT SYS\$DOCUMENT:DVI2TTY.DOC} |
| 53 |
\\[1ex] |
| 54 |
Copies of this document may be printed on the laser printer in CPE-3.159 |
| 55 |
by entering the command; |
| 56 |
\\[1ex] |
| 57 |
{\em PSPRINT SYS\$DOCUMENT:DVI2TTY.PS} |
| 58 |
\\[1ex] |
| 59 |
You may view copies of this document on workstations or personal computers |
| 60 |
which recognize the {\it X}\/ window system protocol by entering the command; |
| 61 |
\\[1ex] |
| 62 |
{\em XDVI SYS\$DOCUMENT:DVI2TTY.DVI} |
| 63 |
\section*{Description} |
| 64 |
{\bf dvi2tty} |
| 65 |
converts a \TeX\/ DVI-file to a format that is appropriate for terminals |
| 66 |
and line printers. The program is intended to be used for |
| 67 |
preliminary proofreading of \TeX-ed documents. |
| 68 |
By default the output is directed to the terminal. |
| 69 |
% |
| 70 |
% NOTE --- VMS can't pipe output to a pager. Maybe you are lucky |
| 71 |
% and your system can. |
| 72 |
% |
| 73 |
%,possibly through a pager (depending on how the program was installed), |
| 74 |
%but it can be directed to a file or a pipe. |
| 75 |
\par\vspace{1.0\baselineskip} |
| 76 |
The output leaves much to be desired, but is still |
| 77 |
useful if you want to avoid walking to the |
| 78 |
laser printer (or whatever) for each iteration of your |
| 79 |
document. |
| 80 |
\par\vspace{1.0\baselineskip} |
| 81 |
Since {\bf dvi2tty}\/ produces output for terminals and line printers the |
| 82 |
representation of documents is naturally quite primitive. |
| 83 |
Font changes are totally ignored, which implies that |
| 84 |
special symbols, such as mathematical symbols, get mapped into the |
| 85 |
characters at the corresponding positions in the ``standard'' fonts. |
| 86 |
\par\vspace{1.0\baselineskip} |
| 87 |
If the width of the output text requires more columns than fits |
| 88 |
in one line (c.f. the -w option) it is broken into several lines by |
| 89 |
{\bf dvi2tty} although they will be printed as one line on regular \TeX\/ output |
| 90 |
devices (e.g. laser printers). To show that a broken line is really |
| 91 |
just one logical line an asterisk (``*'') in the last position |
| 92 |
means that the logical line is continued on the next physical |
| 93 |
line output by {\bf dvi2tty.} |
| 94 |
Such a continuation line is started with a space and an asterisk |
| 95 |
in the first two columns. |
| 96 |
\section*{Format} |
| 97 |
{\bf dvi2tty} |
| 98 |
[ |
| 99 |
{\bf -o} |
| 100 |
{\it file} |
| 101 |
] |
| 102 |
[ |
| 103 |
{\bf -p} |
| 104 |
{\it list} |
| 105 |
] |
| 106 |
[ |
| 107 |
{\bf -P} |
| 108 |
{\it list} |
| 109 |
] |
| 110 |
[ |
| 111 |
{\bf -w} |
| 112 |
{\it n} |
| 113 |
] |
| 114 |
[ |
| 115 |
{\bf -l} |
| 116 |
] |
| 117 |
[ |
| 118 |
{\bf -u} |
| 119 |
] |
| 120 |
[ |
| 121 |
{\bf -s} |
| 122 |
] |
| 123 |
{\it file\rm[\it.dvi\rm]} |
| 124 |
\par\vspace{1.0\baselineskip} |
| 125 |
{\bf dvi2tty}\/ is compiled with VAXC which converts uppercase command line |
| 126 |
arguments to lowercase. To pass an uppercase argument to {\bf dvi2tty}, |
| 127 |
the argument must be enclosed in quotation marks ( i.e. ``-P'' ). Arguments |
| 128 |
enclosed in brackets ( [ ] ) are optional. |
| 129 |
\section*{Options} |
| 130 |
The {\it file}\/ [{\it .dvi}] argument is optional. |
| 131 |
Options may be specified in either a symbol or logical which is named |
| 132 |
% |
| 133 |
% NOTE --- The definition of the following environment variable |
| 134 |
% is implementation dependent. |
| 135 |
% |
| 136 |
DVI\$DVI2TTY or on the command line. |
| 137 |
Any option on the command line, conflicting with one in the |
| 138 |
environment, will override the one from the environment. |
| 139 |
\begin{list}{}{\setlength{\leftmargin}{0.6in}\labelwidth 0.6in} |
| 140 |
\item[{{\bf -o} {\it name}}] |
| 141 |
Write output to file {\it name}. |
| 142 |
\item[{{\bf -p} {\it list}}] |
| 143 |
Print the pages chosen by {\it list}. |
| 144 |
Numbers refer to \TeX-page numbers (known as \bs count0). |
| 145 |
An example of format for {\it list}\/ is ``1,3:6,8'' |
| 146 |
to choose pages 1, 3 through 6 and 8. |
| 147 |
Negative numbers can be used exactly as in \TeX, |
| 148 |
e g -1 comes before -4 as in ``-p-1:-4,17''. |
| 149 |
\item[{{\bf -P} {\it list}}] |
| 150 |
Like -p except that page numbers refer to |
| 151 |
the sequential ordering of the pages in the dvi-file. |
| 152 |
Negative numbers don't make a lot of sense here... |
| 153 |
\item[{{\bf -w} {\it n}}] |
| 154 |
Specify terminal width {\it n.}\/ The legal range is 16-132 with a |
| 155 |
default of 80. If your terminal has the |
| 156 |
ability to display in 132 columns it might |
| 157 |
be a good idea to use -w132 and toggle the |
| 158 |
terminal into this mode as output will probably look somewhat better. |
| 159 |
% |
| 160 |
% NOTE --- The ability to pipe to a pager is operating system dependent. |
| 161 |
% |
| 162 |
%\item[{{\bf -q}}] |
| 163 |
%Don't pipe the output through a pager. |
| 164 |
%This may be the default on some systems |
| 165 |
%(depending on the whims of the SA installing the program). |
| 166 |
%\item[{{\bf -f}}] |
| 167 |
%Pipe through a pager, \$PAGER if defined, or whatever your SA compiled |
| 168 |
%in (often ``more''). This may be the default, but it is still okay |
| 169 |
%to redirect output with ``$>$'', the pager will not be used if output |
| 170 |
%is not going to a terminal. |
| 171 |
%\item[{{\bf -F}}] |
| 172 |
%Specify the pager program to be used. |
| 173 |
%This overides the \$PAGER and the default pager. |
| 174 |
%\item[{{\bf -Fprog}}] |
| 175 |
%Use ``prog'' as program to pipe output into. Can be used to choose an |
| 176 |
%alternate pager (e g ``-Fless''). |
| 177 |
\item[{{\bf -l}}] |
| 178 |
Mark page breaks with the two-character sequence ``\^{}L''. The default is |
| 179 |
to mark them with a form feed character. |
| 180 |
\item[{{\bf -a}}] |
| 181 |
Remove accents grave etc. from output. |
| 182 |
\item[{{\bf -c}}] |
| 183 |
Do not attempt to trnaslate any characters (like the Scandinavion mode) |
| 184 |
except when running in tt-font. |
| 185 |
\item[{{\bf -C}}] |
| 186 |
Do not attempt to compose a combining character sequence. |
| 187 |
\item[{{\bf -bdelim}}] |
| 188 |
Print the name of fonts when switching to it (and ending it). The delim |
| 189 |
argument is used to delimit the fontname. |
| 190 |
\item[{{\bf -u}}] |
| 191 |
Toggle option to process certain latin1 characters. Use this if your output |
| 192 |
devices supports latin1 cahracters. |
| 193 |
Note this may interfere with -u. Best not to use -u and -s together. |
| 194 |
\item[{{\bf -s}}] |
| 195 |
Toggle option to process the special Scandinavian characters that on most (?) |
| 196 |
terminals in Scandinavia are mapped to ``\{$|$\}[\bs ]''. |
| 197 |
Note this may interfere with -u. Best not to use -u and -s together. |
| 198 |
\item[{{\bf -J}}] |
| 199 |
Auto detect NTT JTeX, ASCII pTeX, and upTeX dvi format. |
| 200 |
\item[{{\bf -N}}] |
| 201 |
Display NTT JTeX dvi. |
| 202 |
\item[{{\bf -A}}] |
| 203 |
Display ASCII pTeX dvi. |
| 204 |
\item[{{\bf -U}}] |
| 205 |
Display upTeX dvi. |
| 206 |
\item[{{\bf -Eenc}}] |
| 207 |
Set output multibyte encoding. The enc argument 'e', 's', 'j', 'u', and 'u1' |
| 208 |
denotes EUC-JP, Shift\_JIS, ISO-2022-JP, UTF-8, |
| 209 |
and UTF-8 (do not use ligature for ff, fi, fl, ffi, ffl), respectively. |
| 210 |
\end{list} |
| 211 |
% |
| 212 |
% NOTE --- No other files are used under VMS. |
| 213 |
% |
| 214 |
%\section*{FILES} |
| 215 |
%/usr/ucb/more \ \ \ \ |
| 216 |
%probably the default pager. |
| 217 |
\section*{Environment} |
| 218 |
% |
| 219 |
% NOTE --- The PAGER variable isn't used under VMS. |
| 220 |
% |
| 221 |
%PAGER \ \ \ \ \ \ \ \ \ \ \ \ |
| 222 |
%the pager to use. |
| 223 |
%\nwl |
| 224 |
% |
| 225 |
% NOTE --- The definition of the following environment variable |
| 226 |
% is operating system dependent. |
| 227 |
% |
| 228 |
Either a symbol or logical which is named DVI\$DVI2TTY can be set to hold |
| 229 |
command line options. As an example, if you wish to normally have your |
| 230 |
output written to the file {\it dvi2tty.output}\/ and wish to also have |
| 231 |
the output be 132 columns in width, you may define the logical name |
| 232 |
DVI\$DVI2TTY as in; |
| 233 |
\par\vspace{1.0\baselineskip} |
| 234 |
\begin{center} |
| 235 |
{\bf \$ DEFINE DVI\$DVI2TTY ``{\it o dvi2tty.output w 132}''} |
| 236 |
\end{center} |
| 237 |
\par\vspace{1.0\baselineskip} |
| 238 |
Options set in the environment variable will be overridden by conflicting |
| 239 |
options on the command line. |
| 240 |
\section*{See Also} |
| 241 |
% |
| 242 |
% NOTE --- How do you describe where your help files and manuals are? |
| 243 |
% |
| 244 |
For further information use the DCL command {\bf HELP TeX}\/ to obtain |
| 245 |
information on \TeX\/ and how \TeX\/ may be used on our system. |
| 246 |
You should also read the \LaTeX\/ {\it Local Guide}\/ which may be found |
| 247 |
in SYS\$DOCUMENT:. |
| 248 |
This document may be printed on the line printer in CPE-3.102 by entering |
| 249 |
the command; |
| 250 |
\\[1ex] |
| 251 |
{\em DOCPRINT SYS\$DOCUMENT:LOCAL\_GUIDE.DOC} |
| 252 |
\\[1ex] |
| 253 |
Copies of this document may be printed on the laser printer in CPE-3.159 |
| 254 |
by entering the command; |
| 255 |
\\[1ex] |
| 256 |
{\em PSPRINT SYS\$DOCUMENT:LOCAL\_GUIDE.PS} |
| 257 |
\\[1ex] |
| 258 |
You may view copies of this document on workstations or personal computers |
| 259 |
which recognize the {\it X}\/ window system protocol by entering the command; |
| 260 |
\\[1ex] |
| 261 |
{\em XDVI SYS\$DOCUMENT:LOCAL\_GUIDE.DVI} |
| 262 |
\section*{Bugs} |
| 263 |
Blanks between words get lost quite easy. This is less |
| 264 |
likely if you are using a wider output than the default 80. |
| 265 |
\par\vspace{1.0\baselineskip} |
| 266 |
Only one file may be specified on the command line. |
| 267 |
\section*{Author} |
| 268 |
Svante Lindahl, Royal Institute of Technology, Stockholm |
| 269 |
\\[1ex] |
| 270 |
\{seismo, mcvax\}!enea!ttds!zap |
| 271 |
\\[1ex] |
| 272 |
Improved C version: Marcel Mol |
| 273 |
\\[1ex] |
| 274 |
[email protected], MESA Consulting |
| 275 |
\end{document} |
| 276 |
|