Next: Comments, Up: Writing a Texinfo File [Contents][Index]
This section describes the general conventions used in all Texinfo documents.
Depending on what they do or what arguments1 they take, you need to write @-commands on lines of their own, or as part of sentences. As a general rule, a command requires braces if it mingles among other text; but it does not need braces if it is on a line of its own. For more details of Texinfo command syntax, see Command Syntax.
@example
environment.
@code
and @example
.
In normal text, treated as ending any open paragraph; essentially ignored between paragraphs.
Output as-is between paragraphs (their most common use); in other contexts, they may be treated as regular spaces (and thus consolidated with surrounding whitespace).
Written as a numeric entity except contexts where spaces are ignored; for example, in ‘@footnote{ ^L foo}’, the form feed is ignored.
Keep them everywhere; in attributes, escaped as ‘\f’; also, ‘\’ is escaped as ‘\\’ and newline as ‘\n’.
Completely removed, as they are not allowed.
As you can see, because of these differing requirements of the output formats, it’s not possible to use form feeds completely portably.
makeinfo
does nothing special with tabs, and thus
a tab character in your input file will usually have a different
appearance in the output.
To avoid this problem, Texinfo mode in GNU Emacs inserts
multiple spaces when you press the TAB key. Also, you can run
untabify
in Emacs to convert tabs in a region to multiple
spaces, or use the unexpand
command from the shell.
The word argument comes from the way it is used in mathematics and does not refer to a dispute between two people; it refers to the information presented to the command. According to the Oxford English Dictionary, the word derives from the Latin for to make clear, prove; thus it came to mean ‘the evidence offered as proof’, which is to say, ‘the information offered’, which led to its mathematical meaning. In its other thread of derivation, the word came to mean ‘to assert in a manner against which others may make counter assertions’, which led to the meaning of ‘argument’ as a dispute.
Next: Comments, Up: Writing a Texinfo File [Contents][Index]