bug-texinfo
[Top][All Lists]
Advanced

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

Re: backslashes, macros, indexes, texinfo


From: David Kastrup
Subject: Re: backslashes, macros, indexes, texinfo
Date: Mon, 10 Aug 2015 19:07:38 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Gavin Smith <address@hidden> writes:

> On 8 August 2015 at 22:05, Gavin Smith <address@hidden> wrote:
>>> I'd like to make the @macroargdummy token completely disappear at some
>>> point, but maybe it isn't possible.
>>
>> Doing \def\macroargdummy{} in \scanmacro also makes the files I tried
>> work. It didn't the first time I tried, maybe because I had stale
>> index files.
>
> That last patch I posted doesn't work properly when a macro defines an
> index entry, because of changes in the active definition of backslash
> down under the definition of \cindex (\normalturnoffactive underneath
> \commondummies).
>
> Here's a change that I think's nicer, which does the expansion of the
> active backslash earlier as an extra stage of expansion.

Well, this is an interesting one...

\entry{Tiny examples}{90}{\code {Tiny examples}}
] [91]
/usr/local/tmp/lilypond/Documentation/contributor/issues.itexi:275: Undefined c
ontrol sequence.
<argument> @empty address@hidden @voidb 
                                       @x @penalty @tiepenalty @ address@hidden

@trim@@@ #1  address@hidden>#1
                    
l.1 address@hidden @penalty @tiepenalty @ Documentation}
                                                  @address@hidden
@scanmacro ...spaceisspace @scantokens address@hidden }
                                                  @endgroup 
@macnamexxx address@hidden address@hidden
                                                  @egroup 
l.275 @qq{Simple tasks -- Documentation}
                                         on:
? 
/usr/local/tmp/lilypond/Documentation/contributor/issues.itexi:275: Emergency s
top.
<argument> @empty address@hidden @voidb 
                                       @x @penalty @tiepenalty @ address@hidden

@trim@@@ #1  address@hidden>#1
                    
l.1 address@hidden @penalty @tiepenalty @ Documentation}
                                                  @address@hidden
@scanmacro ...spaceisspace @scantokens address@hidden }
                                                  @endgroup 
@macnamexxx address@hidden address@hidden
                                                  @egroup 
l.275 @qq{Simple tasks -- Documentation}
                                         on:
/usr/local/tmp/lilypond/Documentation/contributor/issues.itexi:275:  ==> Fatal 
error occurred, no output PDF file produced!
Transcript written on contributor.log.
/usr/bin/texi2dvi: pdfetex exited with bad status, quitting.


With the definition

@macro qq{TEXT}
@address@hidden
@end macro

-- 
David Kastrup



reply via email to

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