bug-texinfo
[Top][All Lists]
Advanced

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

index macro and emergency stop


From: Karl Berry
Subject: index macro and emergency stop
Date: Thu, 25 May 2006 11:51:14 -0500

About the `emergency stop' when using @macro to make index entries.  It
is apparently coming from the \endinput included in \scanmacro:

    % Append \endinput to make sure that TeX does not see the ending newline.
    % I've verified that it is necessary both for e-TeX and for ordinary TeX
    %                                                   --kasal, 29nov03
    \scantokens{#1\endinput}%

Because when I delete that \endinput, it runs to completion.  Presumably
we can't just delete the \endinput, because it's apparently there for a
reason, although I admit it is mysterious to me and I don't have an
obvious test case at hand.  No ChangeLog entry either, sigh.  Anyway, it
seems that the @funindex macro is getting executed when it shouldn't be,
somewhere in the index generation.

I simplified the test file to the following.  Both tex and etex fail in
the same way, so it's not some strangeness in one or the other's
\scantokens.

Stepan, do you have any ideas and/or time to look at this?
I will keep poking at it ...

Thanks,
karl


\input texinfo   @c -*-texinfo-*-

@setfilename macidx3

@macro funindex {WORD}
@findex \WORD\
@end macro

@top Test of indices

@loggingall
@funindex commtest

@unnumbered Function index

qqq

@bye

This is pdfeTeXk, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5)
 %&-line parsing enabled.
entering extended mode

(./mac-idx3.tex (./texinfo.tex Loading texinfo [version 2006-05-25.09]:
Basics, pdf, fonts, page headings, tables, conditionals, indexing, sectioning,
toc, environments, defuns, macros, cross references, insertions,
(/v/local/texlive2005/texmf-dist/tex/generic/epsf/epsf.tex
This is `epsf.tex' v2.7.3 <23 July 2005>
) localization, and turning on texinfo input format.) (./mac-idx3.aux)
(Test of indices) ( ) (Function index)

Completed box being shipped out [1]
Memory usage before: 472&31690; after: 348&31597; still untouched: 1467085
)
! Emergency stop.
<*> \nonstopmode \input mac-idx3.tex
                                    
Output written on mac-idx3.dvi (1 page, 224 bytes).
Transcript written on mac-idx3.log.





reply via email to

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