In addition to the regular
Texinfo has two other "example-style" commands. These are the
@smalllisp commands. Both these
commands are designed for use with the
@smallbook command that
causes TeX to produce a printed manual in a 7 by 9.25 inch format
rather than the regular 8.5 by 11 inch format.
In TeX, the
typeset text in a smaller font for the smaller
format than for the 8.5 by 11 inch format. Consequently, many examples
containing long lines fit in a narrower,
without needing to be shortened. Both commands typeset in the normal
font size when you format for the 8.5 by 11 inch size; indeed,
in this situation, the
commands are defined to be the
In Info, the
@smalllisp commands are
equivalent to the
@lisp commands, and work
exactly the same.
Mark the end of
@end smallexample or
Here is an example written in the small font used by the
This is an example of text written between
@end smallexample. In Info and in an 8.5 by 11 inch manual, this text appears in its normal size; but in a 7 by 9.25 inch manual, this text appears in a smaller font.
@smalllisp commands make it
easier to prepare smaller format manuals without forcing you to edit
examples by hand to fit them onto narrower pages.
As a general rule, a printed document looks better if you write all the
examples in a chapter consistently in
@example or in
@smallexample. Only occasionally should you mix the two
See section Printing "Small" Books, for more information
Go to the first, previous, next, last section, table of contents.