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: Wed, 22 Oct 2003 17:15:34 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)

 > Hi Akim,

Hi Karl!

 >     - Shouldn't makeinfo -E perform expansion in @item too?

 > I suppose so.  I didn't know that it didn't.

ISTR that once that was a known issue.  But it's distant in my
memories :(

 >     - Isn't it time to drop dead the 20th century protection against
 >       texinfo.tex that do not support macros?  And therefore to stop
 >       texi2dvi from removing these definitions?

 > I suppose.  What change do you propose in texi2dvi? 

Well, if expansions in @item is performed, I no longer need to make
changes.  But I was suggesting that texi2dvi, when used with -e, would
leave the macro definitions active instead of disabling them.  This
would make my source compile correctly, but taking the risk that some
really old texinfo.tex choke on @macro.

 > Remove the whole comment_iftex_sed stuff, so it doesn't comment out
 > anything?  Won't that cause other problems, with makeinfo expanding
 > what shouldn't be expanded?

I'm not sure I understand the problems you envision.

 > My question is, why does pdftex behave differently than tex in this
 > regard?  I don't understand.

I must have been unclear: the failure is both with DVI and PDF, the
failure is due to:

/tmp % diff foo.texi /tmp/t2d15701/src/foo.texi -u100            nostromo Err 1
--- foo.texi    2003-10-22 09:45:05.000000000 +0200
+++ /tmp/t2d15701/src/foo.texi  2003-10-22 09:48:48.000000000 +0200
@@ -1,35 +1,32 @@
 \input texinfo   @c -*-texinfo-*-
 @c %**start of header
 @setfilename INFONAME.info
 @settitle NAME-OF-MANUAL VERSION
 @c %**end of header
 
 @c @anchored{TEXT}
 @c ===============
address@hidden anchored{text}
address@hidden
address@hidden macro
-
address@hidden
address@hidden Top
address@hidden TITLE
address@hidden ifnottex
+
address@hidden (texi2dvi)@ifnottex
address@hidden (texi2dvi)@node Top
address@hidden (texi2dvi)@top TITLE
address@hidden (texi2dvi)@end ifnottex
 
 @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

the fact that texi2dvi, after having run makeinfo -E, disables the
@macro.  Since @anchored was not expanded behind @item, TeX chokes on
@anchor.  




reply via email to

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