# dvi2tty(1) - man - phpman

[DVI2TTY(1)](https://www.chedong.com/phpMan.php/man/DVI2TTY/1/markdown)                             General Commands Manual                            [DVI2TTY(1)](https://www.chedong.com/phpMan.php/man/DVI2TTY/1/markdown)



## NAME
       dvi2tty - preview a TeX DVI file on an ordinary ASCII terminal

## SYNOPSIS
       **dvi2tty** [ options ] dvifile

## DESCRIPTION
       _dvi2tty_ converts a TeX DVI file to a format that is appropriate for terminals and line print‐
       ers. The program is intended to be used for preliminary proofreading of TeX-ed documents.  By
       default  the  output  is directed to the terminal, possibly through a pager (depending on how
       the program was installed), but it can be directed to a file or a pipe.

       The output leaves much to be desired, but is still useful if you want to avoid walking to the
       laser printer (or whatever) for each iteration of your document.
       Since _dvi2tty_ produces output for terminals and line printers the representation of documents
       is naturally quite primitive.  In principle font changes are  totally  ignored,  but  _dvi2tty_
       recognizes  a few mathematical and special symbols that can be displayed on an ordinary ASCII
       terminal, such as the '+' and '-' symbol.

       If the width of the output text requires more columns than fits in one line (cf. the  -w  op‐
       tion) it is broken into several lines by _dvi2tty_ although they will be printed as one line on
       regular TeX output devices (e.g., laser printers). To show that a broken line is really  just
       one logical line an asterisk (``*'') in the last position means that the logical line is con‐
       tinued on the next physical line output by _dvi2tty._  Such a continuation line is started with
       a space and an asterisk in the first two columns.

       Options  may  be  specified  in  the environment variable DVI2TTY.  Any option on the command
       line, conflicting with one in the environment, will override the one from the environment.

### Options:

### -o file
              Write output to file ``file''.

### -p list
              Print the pages chosen by list.  Numbers refer to TeX page numbers (known as \count0).
              An  example  of  format  for list is ``1,3:6,8'' to choose pages 1, 3 through 6 and 8.
              Negative numbers can be used exactly as in  TeX,  e.g.,  -1  comes  before  -4  as  in
              ``-p-1:-4,17''.

### -P list
              Like  -p except that page numbers refer to the sequential ordering of the pages in the
              dvi-file.  Negative numbers don't make a lot of sense here...

### -w
              the  ability to display in 132 columns it might be a good idea to use -w132 and toggle
              the terminal into this mode as output will probably look somewhat better.

### -v

### -q
              pending on the whims of the person installing the program).

### -e
              the number of spaces between words becomes less, with  a  positive  value  it  becomes
              more.  -e-11 seems to worked well.

### -f
              piled in (often ``more''). This may be the default, but it is still okay  to  redirect
              output with ``>'', the pager will not be used if output is not going to a terminal.

### -F
              and the default pager.

### -Fprog
              (e.g., ``-Fless'').

### -t

### -a
              characters are output without the accent sign.

### -l
              with a form-feed character.

### -c
              when running in tt-font.

### -u
              supports  latin1  characters.  Note this may interfere with -s. Best not to use -u and
              -s together.

### -s
              nals  in  Scandinavia are mapped to ``{|}[\]''.  Note this may interfere with -u. Best
              not to use -u and -s together.

### -J

### -N

### -A

### -U

### -Eenc
              Shift_JIS, ISO-2022-JP, and UTF-8, respectively.

### -bdelim
              Print  the  name  of fonts when switching to it (and ending it). The delim argument is
              used to delimit the fontname.

## FILES
       /bin/more     probably the default pager.

## ENVIRONMENT
       PAGER         the pager to use.
       DVI2TTY       can be set to hold command-line options.

## SEE ALSO
       TeX, dvi2ps

## AUTHOR
       Original Pascal version: Svante Lindahl, Royal Institute of Technology, Stockholm
       Improved C version: Marcel Mol, MESA Consulting
       Now maintained at <https://github.com/t-tk/dvi2tty/releases>.

## BUGS
       Blanks between words get lost quite easily. This is less likely if you are using a wider out‐
       put than the default 80.

       Only one file may be specified on the command line.



                                            4 March 2021                                  [DVI2TTY(1)](https://www.chedong.com/phpMan.php/man/DVI2TTY/1/markdown)
