DVI2TTY(1)
π NAME π
okay bestie, meet dvi2tty π (the General Commands Manual's most iconic tool, DVI2TTY(1)) β¨ It previews a TeX DVI file on an ordinary ASCII terminal π₯οΈ
πΈ SYNOPSIS πΈ
dvi2tty [ options ] dvifile
π DESCRIPTION π
okay so dvi2tty turns a TeX DVI file into something terminals and line printers can actually handle π¦ It's meant for preliminary proofreading of your TeX-ed docs, and by default the output goes to your terminal, maybe through a pager (depending on how the program was installed). You can also send it to a file or a pipe π«Ά
the output is not perfect, ngl π but it's still super useful when you don't wanna trek over to the laser printer (or whatever) every single time you tweak your document β¨
because dvi2tty is making stuff for terminals and line printers, the representation is pretty primitive, no cap π font changes get totally ignored in principle, BUT it does recognize a few math and special symbols that an ASCII terminal can show, like the + and - symbols π§
if the output text needs more columns than fit on one line (see the -w option), dvi2tty breaks it into several lines π even though it would print as one line on regular TeX output devices (like laser printers). to show that a broken line is really one logical line, an asterisk (*) in the last position means the logical line keeps going on the next physical line dvi2tty prints. that continuation line starts with a space and an asterisk in the first two columns π
fun fact: you can set options in the environment variable DVI2TTY π but if an option on the command line conflicts with one in the environment, the command line one wins, periodt π
π¦ Options π¦
-o fileβ writes the output to a file namedfileπ-p listβ prints the pages picked bylist. Numbers refer to TeX page numbers (known as\count0) π An example format forlistis1,3:6,8, which picks pages 1, 3 through 6, and 8. Negative numbers work exactly like they do in TeX, so -1 comes before -4 as in-p-1:-4,17π’-P listβ same vibe as-p, except the page numbers refer to the sequential order of pages in the dvi file. Negative numbers don't make a lot of sense here... π-w nβ sets your terminal width ton. Valid range is 16β132, and the default is 80 π If your terminal can do 132 columns, try-w132and toggle the terminal into that mode. The output will probably look somewhat better β¨-vβ specifies the height of lines. Default value is 450000. Lets you adjust the linespacing πΈ-qβ don't pipe the output through a pager. This might be the default on some systems (it depends on the whims of whoever installed the program) π-e nβ influences the spacing between words. With a negative value there are fewer spaces between words, with a positive value there are more π«§-e-11seems to have worked well, bestie π-fβ pipes through a pager:$PAGERif it's defined, or whatever the installer compiled in (oftenmore) π This might be the default, but it's still okay to redirect with>. The pager won't get used if the output isn't going to a terminal π¦-Fβ specifies the pager program to use. This overrides the$PAGERenvironment variable and the default pager π-Fprogβ usesprogas the program to pipe output into. Great for picking an alternate pager, like-Flessπ§-tβ\ttfonts were used (instead of cm) to make the dvi file π-aβ dvi2tty normally tries to output accented characters. With-a, accented characters come out without the accent sign π-lβ marks page breaks with the two-character sequence^L. The default is a form-feed character π-cβ doesn't try to translate any characters (like the Scandinavian/latin1 mode) except when running in tt-font π-uβ toggles processing of certain latin1 characters. Use this if your output device supports latin1 characters π«Ά Note this may interfere with-s-sβ toggles processing of the special Scandinavian characters that on most (?) terminals in Scandinavia are mapped to{|}[\]πΈπͺ Note this may interfere with-u
β οΈ bestie, the-uand-soptions can clash. Best not to use-uand-stogether π
-Jβ auto detects NTT JTeX, ASCII pTeX, and upTeX dvi format π-Nβ displays NTT JTeX dvi π―π΅-Aβ displays ASCII pTeX dvi πΈ-Uβ displays upTeX dvi π-Eencβ sets the output Japanese encoding. Theencargument can bee,s,j, oru, which mean EUC-JP, Shift_JIS, ISO-2022-JP, and UTF-8 respectively π-bdelimβ prints the name of a font when switching to it (and when ending it). Thedelimargument is used to delimit the fontname π·οΈ-hβ shows a help message and exits successfully π«Ά
π 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, ngl π This is less likely if you use a wider output than the default 80 π
only one file may be specified on the command line π
stay iconic, bestie π this page was last updated 1 May 2022, and it's all DVI2TTY(1) all the way πβ¨
π¦ where this page comes from
- alpine 3.24: texmf-dist-binextra-doc 2026.0-r0 Β· LPPL-1.0 AND LPPL-1.1 AND LPPL-1.2 AND LPPL-1.3a AND LPPL-1.3c AND GPL-2.0-only
- π girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms