> > Date: Fri, 25 Aug 2000 22:39:32 +0200
> > From: Frank Heckenbach <[EMAIL PROTECTED]>
> > 
> > Apart from this, is this an actual limitation that section etc.
> > can't be part of an alias or macro definition?
> 
> What happens, exactly, if you do try to use @section inside a macro?

I tried:

---
@macro mychapter{NAME}
@chapter \NAME\
@end macro

@node Top
@top Top

@menu
* chap::
@end menu

@node chap
@mychapter{chap}

@bye
---

or:

---
@macro mychapter
@chapter @c
@end macro

@node Top
@top Top

@menu
* chap::
@end menu

@node chap
@mychapter chap

@bye
---

Or the latter without `@c'. They all give:

foo.texi:12: Node `chap' requires a sectioning command (e.g. @unnumbered).
./foo.texi:5: Next field of node `Top' not pointed to.
./foo.texi:12: This node (chap) has the bad Prev.
./foo.texi:12: `chap' has no Up field.
makeinfo: Removing output file `foo.info' due to errors; use --force to preserve.

I also tried:

---
@alias mychapter = chapter

@node Top
@top Top

@menu
* chap::
@end menu

@node chap
@mychapter chap

@bye
---

which gives:

foo.texi:10: Node `chap' requires a sectioning command (e.g. @unnumbered).
foo.texi:11: Unknown command `mychapter'.
./foo.texi:3: Next field of node `Top' not pointed to.
./foo.texi:10: This node (chap) has the bad Prev.
./foo.texi:10: `chap' has no Up field.
makeinfo: Removing output file `foo.info' due to errors; use --force to preserve.

Frank

-- 
Frank Heckenbach, [EMAIL PROTECTED]
http://fjf.gnu.de/
PGP and GPG keys: http://fjf.gnu.de/plan

Reply via email to