bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using macros in @item


From: Akim Demaille
Subject: Re: Using macros in @item
Date: Fri, 24 Oct 2003 16:11:42 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)

 >     Now I remember!  That's why texi2dvi used to perform weird magic bits:
 >     that was to _preserve_ these guys.  or?

 > Yes.  It preserves @macro in some cases where it would otherwise be
 > commented out.  This is before makeinfo is called, not after ...

There is another issue with makeinfo to preprocess: should we use
--iftex, or --ifnottex?  It seems clear that the former is right, but
then because makeinfo is run with --iftex (well, --iftex simulated via
the sed script), it doesn't see the @top, and complains about it:

/tmp % LC_ALL=C texi2dvi -e foo.texi                             nostromo 16:04
stdin:18: warning: @menu seen before first @node, creating `Top' node.
stdin:18: warning: perhaps your @top node should be wrapped in @ifnottex rather 
than @ifinfo?.

this is because the input is:

| \input texinfo   @c -*-texinfo-*-
| @c %**start of header
| @setfilename INFONAME.info
| @settitle NAME-OF-MANUAL VERSION
| @c %**end of header
| 
| @c @anchored{TEXT}
| @c ===============
| 
| @c (texi2dvi)@ifnottex
| @c (texi2dvi)@node Top
| @c (texi2dvi)@top TITLE
| @c (texi2dvi)@end ifnottex

Note that the @top is missing, and makeinfo validly complains about
this.


| 
| @menu
| * First Chapter::    Getting started ...
| @end menu
| 
| @node First Chapter
| @chapter First Chapter
| 
| @xref{Thinking in C++ Volume 2}, for more information.
| 
| @table @asis
| @item @anchored{Thinking in C++ Volume 1}
| Blak blah.
| 
| @item @anchored{Thinking in C++ Volume 2}
| More Blak blah.
| @end table
| 
| @bye




reply via email to

[Prev in Thread] Current Thread [Next in Thread]