Next: , Previous: , Up: Hardcopy   [Contents][Index]

21.5 Printing From an Emacs Shell

You can give formatting and printing commands from a shell within GNU Emacs, just like any other shell command. To create a shell within Emacs, type M-x shell (see Shell in The GNU Emacs Manual). In this shell, you can format and print the document. See Format and Print Hardcopy, for details.

You can switch to and from the shell buffer while tex is running and do other editing. If you are formatting a long document on a slow machine, this can be very convenient.

For example, you can use texi2dvi from an Emacs shell. Here is one way to use texi2pdf to format and print Using and Porting GNU CC from a shell within Emacs:

texi2pdf gcc.texi
lpr gcc.pdf

See the next section for more information about formatting and printing in Texinfo mode.