CatDVI translates a TeX Device Independent (DVI) file into a readable plaintext file. It aims to generate high-quality output that reproduces all aspects of the DVI file within the limits of the output medium. CatDVI uses Unicode internally and can output ASCII, ISO Latin 1 and UTF-8 Unicode.
CatDVI can be used for previewing TeX documents on character-cell displays such as traditional terminals and terminal emulators. It is also possible to use it in generation of plain text documents from TeX source, assuming that the document is written with this conversion in mind.
CatDVI is under development and as such yet incomplete. However, it is quite useful even in its current form and already outperforms some of its competition in some areas.
CatDVI requires that the TFM files for all fonts used in its input DVI files are installed or can be generated by kpathsea.
In order to invoke catdvi from the gnome-terminal, just type:
In many systems less uses lesspipe, which can handle pdftotext automatically. Therefore, you can immediately try:
Which will show the output of pdftotext in less.