[NTG-context] formatting index entries

Robert Zydenbos context at zydenbos.net
Thu Aug 22 01:35:02 CEST 2019


Strange, in MkIV I get an error message which I do not understand, because by the look of it, your code (I called the file 'indexpablo.tex') seems in order – but in MkII (which I need) it works.

The MkIV error log:

This is LuaTeX, Version 1.07.0 (TeX Live 2018) 
 system commands enabled.
open source     > level 1, order 1, name '/usr/local/texlive/2018/texmf-dist/tex/context/base/mkiv/cont-yes.mkiv'
system          > 
system          > ConTeXt  ver: 2018.04.04 00:51 MKIV beta  fmt: 2018.5.13  int: english/english
system          > 
system          > 'cont-new.mkiv' loaded
open source     > level 2, order 2, name '/usr/local/texlive/2018/texmf-dist/tex/context/base/mkiv/cont-new.mkiv'
close source    > level 2, order 2, name '/usr/local/texlive/2018/texmf-dist/tex/context/base/mkiv/cont-new.mkiv'
system          > files > jobname 'indexpablo', input './indexpablo', result 'indexpablo'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
system          > synctex functionality is enabled, expect 5-10 pct runtime overhead!
open source     > level 2, order 3, name '/Users/rz/Documents/work/Kannada-manual-compile-klad/indexpablo.tex'
fonts           > preloading latin modern fonts (second stage)
fonts           > 'fallback modern-designsize rm 12pt' is loaded
structure       > sectioning > chapter @ level 2 : 0.1 -> \headtext {index}

tex error       > tex error on line 50 in file /Users/rz/Documents/work/Kannada-manual-compile-klad/indexpablo.tex: ! Missing } inserted

<inserted text> 
}
<to be read again> 
\endgroup 
l.50 \stopregisterentry
                     
\strc_registers_place_indeed ...\c!pagesegments }}
                                                  \relax 
\strc_registers_place ...c_registers_place_indeed 
                                                  \stopmixedcolumns \else \s...
\strc_registers_complete ...\currentregister ][#2]
                                                  \page [\v!yes ]\stopnameds...
...
l.5    \stoptext
              

> On 21. Aug 2019, at 17:10, Pablo Rodriguez <oinos at gmx.es> wrote:
> 
> On 8/21/19 10:59 AM, Robert Zydenbos wrote:
>> Dear list members,
>> 
>> In my book I am creating an index. I know that there are commands
>> for formatting index entries, like:
>> 
>> \index{sl::īga}
>> [...]
>> \index{īga+emphasized}
>> [...]
>> Any suggestions?
> 
> Hi Robert,
> 
> this worked in MkIV/XL (I don’t know what might happen in MkII):
> 
>    \starttext
>    \index[īga]{{\em īga}}
>    \index[īga+emphasized]{{\em īga+emphasized}}
>    \completeindex
>    \stoptext
> 
> Just in case it helps,
> 
> Pablo




More information about the ntg-context mailing list