(texinfo) Macro Details
Info Catalog
(texinfo) Invoking Macros
(texinfo) Defining New Texinfo Commands
(texinfo) alias
Macro Details
=============
Due to unavoidable disparities in the TeX and `makeinfo'
implementations, Texinfo macros have the following limitations.
* All macros are expanded inside at least one TeX group. This means
that
* Macros containing a command which must be on a line by itself,
such as a conditional, cannot be invoked in the middle of a line.
* The TeX implementation cannot construct macros that define macros
in the natural way. To do this, you must use conditionals and raw
TeX. For example:
@ifinfo
@macro ctor {name, arg}
@macro \name\
something involving \arg\ somehow
@end macro
@end macro
@end ifinfo
@tex
\gdef\ctor#1{\ctorx#1,}
\gdef\ctorx#1,#2,{\def#1{something involving #2 somehow}}
@end tex
* It is best to avoid comments inside macro definitions.
Info Catalog
(texinfo) Invoking Macros
(texinfo) Defining New Texinfo Commands
(texinfo) alias
automatically generated byinfo2html