[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
aliases/macros in @chapter/@section/etc vs. table of contents
From: |
Jim Meyering |
Subject: |
aliases/macros in @chapter/@section/etc vs. table of contents |
Date: |
Fri, 01 Jul 2005 16:31:07 +0200 |
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()}
- aliases/macros in @chapter/@section/etc vs. table of contents,
Jim Meyering <=