Next: Include Files, Previous: Conditionally Visible Text, Up: Texinfo [Contents][Index]
Texinfo provides several ways to define new commands (in all cases, it’s not recommended to try redefining existing commands):
Incidentally, these macros have nothing to do with the @defmac
command, which is for documenting macros in the subject area of the
manual (see The Template for a Definition).
Most generally of all (not just for defining new commands), it is
possible to invoke any external macro processor and have Texinfo
recognize so-called #line
directives for error reporting.
If you want to do simple text substitution, @set
and
@value
is the simplest approach (see Flags: @set
, @clear
, conditionals, and @value
).