Re: [NTG-context] [Index] Indenting long primaries after secondaries
On 3/16/2014 4:34 PM, Jan Tosovsky wrote:
On 2014-03-16 Hans Hagen wrote:
On 3/7/2014 6:54 PM, Jan Tosovsky wrote:
On 2014-02-26 Jan Tosovsky wrote:
when a long primary is preceded with the secondary or tertiary index entry, the second line is not indented as usual, see the following example:
\setupregister[balance=no] \starttext \index{primary+secondary+tertiary} \index[primary long]{\dorecurse{5}{primary long }} \index[primary longer]{\dorecurse{5}{primary longer }} % Ok \input{tufte} \completeindex \stoptext
how is a \dorecurse supposed to get sorted ...
That \dorecurse is used in this MWE only to make it shorter. Indeed, this command confuses the letter grouping procedure so this is the reason why I specified the sorting key via the bracket syntax [].
I think there is no need to fix this grouping issue (not enough ROI), but if so, I would expect to resolve the \dorecurse command first and then apply the grouping/sorting etc.
My main wish is fixing that indentation (or offering any workaround).
we get this: p primary secondary tertiary 1 primary long primary long primary long primary long primary long 1 primary longer primary longer primary longer primary longer primary longer 1 getting this: p primary secondary tertiary 1 primary long primary long primary long primary long primary long 1 primary longer primary longer primary longer primary longer primary longer 1 is pretty hard because it would demand postprocessing entries but i wonder it looks better \defineprocessor[twolines][style=\aftergroup\hangafter\aftergroup\plustwo] \setupregister [balance=no] \starttext \index{primary+secondary+tertiary} \index{twolines->primary long primary long primary long primary long primary long} \index{twolines->primary longer primary longer primary longer primary longer primary longer} \input{tufte} \completeindex \stoptext assuming that we never change the implementation Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 2014-03-16 Hans Hagen wrote:
On 2014-02-26 Jan Tosovsky wrote:
when a long primary is preceded with the secondary or tertiary index entry, the second line is not indented as usual, see the following example:
\setupregister[balance=no] \starttext \index{primary+secondary+tertiary} \index[primary long]{\dorecurse{5}{primary long }} \index[primary longer]{\dorecurse{5}{primary longer }} % Ok \input{tufte} \completeindex \stoptext
My main wish is fixing that indentation (or offering any workaround).
we get this:
p primary secondary tertiary 1 primary long primary long primary long primary long primary long 1 primary longer primary longer primary longer primary longer primary longer 1
hmm, I was getting different output in ConTeXt-2014.03.07: p primary secondary tertiary 1 primary long primary long primary long primary long primary long 1 (!!! this was not indented) primary longer primary longer primary longer primary longer primary longer 1 (or see the screenshot) I've just updated ConTeXt to 2014.03.16 and now it works as expected! Thanks a lot! Jan
participants (2)
-
Hans Hagen
-
Jan Tosovsky