O'Reilly logo

Linux® Desk Reference, Second Edition by Scott Hawkins

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Document Formatting with Tex

  1. Create an ASCII document containing the embedded control codes with <your favorite text editor>. By convention, these documents are stored with a .tex extension.

  2. Compile the document into a device-independent intermediate file with tex (or latex).

  3. View and print the resulting .dvi file with xdvi.

  4. Depending on your printer type, use one of the dvi printer commands (dvips, dvilj) to print the dvi file.

If you're so inclined, you can type in the sample file that follows to get a feel for how TeX works. If not, pretend you did, as the file is used repeatedly in the next several examples (see Figure 20-1).

Figure 20-1. The file example.tex

The preceding document first needs to be compiled into a deviced independent format ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required