bug-texinfo
[Top][All Lists]
Advanced

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

@ifnottex inside @copying


From: Karl Berry
Subject: @ifnottex inside @copying
Date: Fri, 18 Jun 2004 09:36:21 -0400

For the record ...

Bob reported that @ifnottex started failing inside @copying again with
texinfo.tex.  The error is:
...
Runaway argument?
^^M^^Mifnottex address@hidden address@hidden address@hidden
! File ended while scanning use of @doignoretext.

Test file below.

Stepan's idea for solving this (thanks, Stepan):

> I beleive that both @caption and @copying should be redefined to scan
> their parameter in a similar way to macro body.
> The parameter would be then expanded by \scanmacro , using the \scantokens
> feature od etex or the workaroud with tmp input file.
> 
> This would:
>  - fix many problems with xxx inside @caption, as reproted by Pat
>  - fix the minor problem with @ref inside @copying
>  - allow removing of the ugly hack with active ^^M in \insertcopying
>  - and I guess it would fix your problem too.
> 
> I have written some code on May 26, according to file timestamp.
> I'll try to finish it and submit it.

So that's where we are.

Bob, for now I guess you can keep using the old texinfo.tex with the
other workaround (using \nestedignore) for the problem.  Or, if you need
a newer version before Stepan finishes, let me know, and I'll
re-incorporate the \nestedignore "fix" into the current version for you.

k


\input texinfo.tex
@setfilename test-ifnottex-in-copying.info

@copying
This tests the use of @@ifnottex inside an @@copying environment.

@ifnottex
ifnottex segment
@end ifnottex

@end copying

@insertcopying

@bye




reply via email to

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