I noticed that using user-defined macros or aliases in
@chapter or @section names doesn't work.
Here's a sample input file, k.texi
-------------------------------
\input texinfo
@macro fn{name}
@code{\name\()}
@end macro
@contents
@chapter @fn{foo}
@bye
=============================
$ texi2dvi --pdf --batch k.texi
...
./k.toc:1: Use of \ doesn't match its definition
...
Note how the .toc file looks bogus:
=============================
$ cat k.toc
@numchapentry{\fn {foo}}{1}{}{1}
If I expand the macro manually it works fine:
@chapter @code{foo()}
_______________________________________________
Texinfo home page: http://www.gnu.org/software/texinfo/
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-texinfo