Hello Hans,

On 10/01/2010 11:20 PM, Hans Hagen wrote:
On 1-10-2010 12:02, Jano Kula wrote:
Hi,

any way to change register entry and subentry separator from "+" to
something else? Preferably to kanji character, so I'm sure it will not
appear in the text. Entries and subentries are autoflushed, so it can be
really anything.

Other way around: I substitute "+" with " PLUS " in index terms before
writing into the index, but which command is reading the sorted index
entries to change it back to "+" when typesetting the sorted index on
pages?

\setregisterentry[index]
[entries:1=...,
entries:2=...,
entries:3=...,
keys:1=...,
keys:2=...,
keys:3=...,
...

Thank you, it took me a while, to find out if this was the answer to the first or second question ;) Partly, because there is a bug somewhere, I think.

If the entry with [keys:1=blue, keys:2=red] is supposed to be sorted by "blue" on the first level, and by "red" on the second, it doesn't work as expected. Instead of keys, the entries are written into the *.tuc file.

Can you, please, have a look at the minimal example?

Thanks,

Jano



\starttext
\placeregister[index]

\blank[3*big]

\page

% works
\setregisterentry[index][entries=aaa,keys=bbb] page 2

\page

% works
\setregisterentry[index][entries:1=aaa,entries:2=bbb] page 3

\page

% doesn't work
% in *.tuc file the entries are written on both positions
%     { "aaa", "aaa" },
%     { "bbb", "bbb" },
\setregisterentry[index][entries:1=aaa,entries:2=bbb,keys:1=ccc,keys:2=ddd] page 4

\stoptext

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to