Create an ASCII document containing the embedded control codes with <your favorite text editor>. By convention, these documents are stored with a .tex extension.
Compile the document into a device-independent intermediate file with tex (or latex).
View and print the resulting .dvi file with xdvi.
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).
The preceding document first needs to be compiled into a deviced independent format ...