On Nov 9, 2005, at 2:11 PM, Hans Hagen wrote:
not with headphones, which i normally wear when i'm in that kind of debugging mode -)
try a megaphone? ;-)
I'm with you :))
so, what was the test file?
Hans
Compile this with newtexexec: \starttext \index{This} This \index{and} and \index{That} That. \page \placeindex \stoptext and This and That will be sorted under "h." If you modify the file like so: \starttext \index{This} This \index{and} and \seeindex{That}{This} That. \page \placeindex \stoptext it will give this error message: ! Argument of \@@filterlevelpart has an extra }. <inserted text> \par <to be read again> } \doifprevlevelelse ...tor \@@filterlevelpart [#1]} \edef \@@tocsectiontype {\... \dosetpageregisterpage ...->\doifreglevelelse [#5] {\dodosetpageregisterpage ... l.46 ...isterpage{index}{,}{3}{2::0:0:0:0:0:0:0}{} Runaway argument? 0:0:0:0:0:0:0] ! Paragraph ended before \@@filterlevelpart was complete. <to be read again> \par <to be read again> } \doifprevlevelelse ...tor \@@filterlevelpart [#1]} \edef \@@tocsectiontype {\... \dosetpageregisterpage ...->\doifreglevelelse [#5] {\dodosetpageregisterpage ... l.46 ...isterpage{index}{,}{3}{2::0:0:0:0:0:0:0}{} ! Argument of \@@filterblockpart has an extra }. <inserted text> \par <to be read again> } \doifprevlevelelse ...pe {\@@filterblockpart [#1]} \ifcase \alltoclevels \ifn... \dosetpageregisterpage ...->\doifreglevelelse [#5] {\dodosetpageregisterpage ... l.46 ...isterpage{index}{,}{3}{2::0:0:0:0:0:0:0}{} Runaway argument? 0:0:0:0:0:0:0] ! Paragraph ended before \@@filterblockpart was complete. <to be read again> \par <to be read again> } \doifprevlevelelse ...pe {\@@filterblockpart [#1]} \ifcase \alltoclevels \ifn... \dosetpageregisterpage ...->\doifreglevelelse [#5] {\dodosetpageregisterpage ... l.46 ...isterpage{index}{,}{3}{2::0:0:0:0:0:0:0}{} ! Argument of \@@filternumberpart has an extra }. <inserted text> \par <to be read again> } \pageprefix ...stprefix {\@@filternumberpart [#2]} \let \donexttrackcommando ... <argument> ... {\??id \v!index }[2::0:0:0:0:0:0:0] \translatednumber [2::0:0:... \doregisterpagehowto ...??id #1\c!pagecommand }{#2 }\dostopattributes <argument> ...erpage {\v!index }[2::0:0:0:0:0:0:0] \ifnum 1=2\/\fi ... l.46 ...isterpage{index}{,}{3}{2::0:0:0:0:0:0:0}{} Runaway argument? 0:0:0:0:0:0:0] ! Paragraph ended before \@@filternumberpart was complete. <to be read again> \par <to be read again> } \pageprefix ...stprefix {\@@filternumberpart [#2]} \let \donexttrackcommando ... <argument> ... {\??id \v!index }[2::0:0:0:0:0:0:0] \translatednumber [2::0:0:... \doregisterpagehowto ...??id #1\c!pagecommand }{#2 }\dostopattributes <argument> ...erpage {\v!index }[2::0:0:0:0:0:0:0] \ifnum 1=2\/\fi ... l.46 ...isterpage{index}{,}{3}{2::0:0:0:0:0:0:0}{} Runaway argument? ! Paragraph ended before \@@dofilterheadpart was complete. <to be read again> \par \@@filterheadpart ... \@@dofilterheadpart \@EA [#1 :0] <argument> ...ix {\@@filterheadpart [\postprefix ] }\edef \postprefix {\@@fil... \firstoftwoarguments #1#2->#1 \donexttrackcommando #1->\dodopageprefix {#1} \donexttracklevel {#1} \pageprefix ...\donexttrackcommando \firstsection \egroup ... l.46 ...isterpage{index}{,}{3}{2::0:0:0:0:0:0:0}{} Runaway argument? ! Paragraph ended before \@@dofiltertailpart was complete. <to be read again> \par \@@filtertailpart ... \@@dofiltertailpart \@EA [#1 :0] <argument> ...ix {\@@filtertailpart [\postprefix ] }\let \uchar \normaluchar ... \firstoftwoarguments #1#2->#1 \donexttrackcommando #1->\dodopageprefix {#1} \donexttracklevel {#1} \pageprefix ...\donexttrackcommando \firstsection \egroup ... l.46 ...isterpage{index}{,}{3}{2::0:0:0:0:0:0:0}{} Runaway argument? ! Paragraph ended before \@@dofiltertailpart was complete. <to be read again> \par \postprefix ->\par :0] \@@filtertailpart ... \@@dofiltertailpart \@EA [#1 :0] <argument> ...ix {\@@filtertailpart [\postprefix ] }\let \uchar \normaluchar \secondoftwoarguments #1#2->#2 \donexttrackcommando #1->\dodopageprefix {#1} \donexttracklevel {#1} ... l.46 ...isterpage{index}{,}{3}{2::0:0:0:0:0:0:0}{} Runaway argument? ! Paragraph ended before \@@dofiltertailpart was complete. <to be read again> \par \postprefix ->\par :0]:0] \@@filtertailpart ... \@@dofiltertailpart \@EA [#1 :0] <argument> ...ix {\@@filtertailpart [\postprefix ] }\let \uchar \normaluchar \secondoftwoarguments #1#2->#2 \donexttrackcommando #1->\dodopageprefix {#1} \donexttracklevel {#1} ... l.46 ...isterpage{index}{,}{3}{2::0:0:0:0:0:0:0}{} Runaway argument? ! Paragraph ended before \@@dofiltertailpart was complete. <to be read again> \par \postprefix ->\par :0]:0]:0] \@@filtertailpart ... \@@dofiltertailpart \@EA [#1 :0] <argument> ...ix {\@@filtertailpart [\postprefix ] }\let \uchar \normaluchar \secondoftwoarguments #1#2->#2 \donexttrackcommando #1->\dodopageprefix {#1} \donexttracklevel {#1} ... l.46 ...isterpage{index}{,}{3}{2::0:0:0:0:0:0:0}{} Runaway argument? ! Paragraph ended before \@@dofiltertailpart was complete. <to be read again> \par \postprefix ->\par :0]:0]:0]:0] \@@filtertailpart ... \@@dofiltertailpart \@EA [#1 :0] <argument> ...ix {\@@filtertailpart [\postprefix ] }\let \uchar \normaluchar \secondoftwoarguments #1#2->#2 \donexttrackcommando #1->\dodopageprefix {#1} \donexttracklevel {#1} ... l.46 ...isterpage{index}{,}{3}{2::0:0:0:0:0:0:0}{} Runaway argument? ! Paragraph ended before \@@dofiltertailpart was complete. <to be read again> \par \postprefix ->\par :0]:0]:0]:0]:0] \@@filtertailpart ... \@@dofiltertailpart \@EA [#1 :0] <argument> ...ix {\@@filtertailpart [\postprefix ] }\let \uchar \normaluchar \secondoftwoarguments #1#2->#2 \donexttrackcommando #1->\dodopageprefix {#1} \donexttracklevel {#1} ... l.46 ...isterpage{index}{,}{3}{2::0:0:0:0:0:0:0}{} Runaway argument? ! Paragraph ended before \@@dofiltertailpart was complete. <to be read again> \par \postprefix ->\par :0]:0]:0]:0]:0]:0] \@@filtertailpart ... \@@dofiltertailpart \@EA [#1 :0] <argument> ...ix {\@@filtertailpart [\postprefix ] }\let \uchar \normaluchar \secondoftwoarguments #1#2->#2 \donexttrackcommando #1->\dodopageprefix {#1} \donexttracklevel {#1} ... l.46 ...isterpage{index}{,}{3}{2::0:0:0:0:0:0:0}{} ! Argument of \@@filterpagepart has an extra }. <inserted text> \par <to be read again> } \doregisterpagehowto ...?id #1\c!pagecommand }{#2} \dostopattributes <argument> ...erpage {\v!index }[2::0:0:0:0:0:0:0] \ifnum 1=2\/\fi \showlocation ...iacolor ]{#1\presetgoto }\else #1 \fi <argument> ...}[2::0:0:0:0:0:0:0]\ifnum 1=2\/\fi } }\gotonextinternal {\s!ind... ... l.46 ...isterpage{index}{,}{3}{2::0:0:0:0:0:0:0}{} Runaway argument? 0:0:0:0:0:0:0] ! Paragraph ended before \@@filterpagepart was complete. <to be read again> \par <to be read again> } \doregisterpagehowto ...?id #1\c!pagecommand }{#2} \dostopattributes <argument> ...erpage {\v!index }[2::0:0:0:0:0:0:0] \ifnum 1=2\/\fi \showlocation ...iacolor ]{#1\presetgoto }\else #1 \fi <argument> ...}[2::0:0:0:0:0:0:0]\ifnum 1=2\/\fi } }\gotonextinternal {\s!ind... ... l.46 ...isterpage{index}{,}{3}{2::0:0:0:0:0:0:0}{} and have this in the index: see This, :0]– After that, the .tuo file will be messed up, you have to delete it to make the document compile again. For the bug with ranges: \starttext \index{This} This \page \startregister[index]{This} and \page that \page again \stopregister[index]{This} \page \index{This} This \index{and} and \seeindex{That}{This} That. \page \placeindex \stoptext Will only have This 2-4 in the index, the other pages are ignored. All best, and thanks so much Hans Thomas