@example command is used to indicate an example that is
not part of the running text, such as computer input or output.
This is an example of text written between an
@examplecommand and an
@end examplecommand. The text is indented but not filled. In the printed manual, the text is typeset in a fixed-width font, and extra spaces and blank lines are significant. In the Info file, an analogous result is obtained by indenting each line with five spaces.
@example command at the beginning of a line by itself.
This line will disappear from the output. Mark the end of the example
@end example command, also written at the beginning of a
line by itself. The
@end example will disappear from the
@example mv foo bar @end example
mv foo bar
Since the lines containing
will disappear, you should put a blank line before the
@example and another blank line after the
example. (Remember that blank lines between the beginning
@example and the ending
@end example will appear in
Caution: Do not use tabs in the lines of an example (or anywhere else in Texinfo, for that matter)! TeX treats tabs as single spaces, and that is not what they look like. This is a problem with TeX. (If necessary, in Emacs, you can use M-x untabify to convert tabs in a region to multiple spaces.)
Examples are often, logically speaking, "in the middle" of a
paragraph, and the text continues after an example should not be
@noindent command prevents a piece of text from
being indented as if it were a new paragraph.
@code command is used for examples of code that are
embedded within sentences, not set off from preceding and following
text. See section