Re: [NTG-context] indexing query
I should add, perhaps, that I am using MKII, since adapting this project to MKIV is not feasible. A. On Fri, May 11, 2012 at 11:45 AM, Alan Bowen bowenala...@gmail.com wrote: I am trying to construct an index of passages and have run into a curious problem: The test file is: \defineregister[Passage][Passages] \setupregister[Passage][n=1,% balance=yes,% pagestyle=\tfx\em,% textstyle=\tfx,% criterium=all,% interaction={pagenumber},% ] \setupregister[Passage][indicator=no,distance=0.5em] \starttext See \Passage{Simplicius+{\em In de caelo}+483.15--19}483.15--19. \page See \Passage{Simplicius+{\em In de caelo}+477.3--4}477.3--4 \page \placeregister[Passage] \stoptext The result is an index that puts 483.15–19 *before* 477.3–4 as in Simplicius *In de caelo* 483.15–19 *1* 477.3–4 *2* rather than after. How can I fix this? Alan ___ 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 ___
Re: [NTG-context] indexing query
On 11-5-2012 18:35, Alan Bowen wrote: I should add, perhaps, that I am using MKII, since adapting this project to MKIV is not feasible. A. On Fri, May 11, 2012 at 11:45 AM, Alan Bowenbowenala...@gmail.com wrote: I am trying to construct an index of passages and have run into a curious problem: The test file is: \defineregister[Passage][Passages] \setupregister[Passage][n=1,% balance=yes,% pagestyle=\tfx\em,% textstyle=\tfx,% criterium=all,% interaction={pagenumber},% ] \setupregister[Passage][indicator=no,distance=0.5em] \starttext See \Passage{Simplicius+{\em In de caelo}+483.15--19}483.15--19. \page See \Passage{Simplicius+{\em In de caelo}+477.3--4}477.3--4 \page \placeregister[Passage] \stoptext The result is an index that puts 483.15–19 *before* 477.3–4 as in Simplicius *In de caelo* 483.15–19 *1* 477.3–4 *2* rather than after. How can I fix this? pass a sortkey ... \Passage[477.03–4]{...} or so - 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 - ___ 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 ___
[NTG-context] indexing query
Sorry: My effort escaped without a subject line. In placing the heads and subheads of indices, \index defaults to Headlocator Head subheadlocator I need to get the subhead without repeating the Head, as in Headlocator subheadlocator How can I do this? Is there some documentation on this that I can read? Alan ___ 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 ___
Re: [NTG-context] indexing query
Am 18.03.2012 um 17:38 schrieb Alan Bowen: Sorry: My effort escaped without a subject line. In placing the heads and subheads of indices, \index defaults to Headlocator Head subheadlocator I need to get the subhead without repeating the Head, as in Headlocator subheadlocator How can I do this? Example needed! Wolfgang ___ 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 ___
Re: [NTG-context] indexing query
To answer my own question, after experimentation: \index[key]{form::entry} with \setupregister[index][form][textstyle=\hskip1em] A. On Sun, Mar 18, 2012 at 12:38 PM, Alan Bowen bowenala...@gmail.com wrote: Sorry: My effort escaped without a subject line. In placing the heads and subheads of indices, \index defaults to Headlocator Head subheadlocator I need to get the subhead without repeating the Head, as in Headlocator subheadlocator How can I do this? Is there some documentation on this that I can read? Alan ___ 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 ___
Re: [NTG-context] indexing query
Sorry for the bother, Wolfgang. I think I have the answer now (see my message earlier by about 30 seconds). I had not realized that the textstyle key in \setupregister could take a command for positioning the head as well as its actual style. Alan On Sun, Mar 18, 2012 at 5:00 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 18.03.2012 um 17:38 schrieb Alan Bowen: Sorry: My effort escaped without a subject line. In placing the heads and subheads of indices, \index defaults to Headlocator Head subheadlocator I need to get the subhead without repeating the Head, as in Headlocator subheadlocator How can I do this? Example needed! Wolfgang ___ 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 ___ ___ 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 ___
Re: [NTG-context] indexing query
Am 18.03.2012 um 22:11 schrieb Alan Bowen: Sorry for the bother, Wolfgang. I think I have the answer now (see my message earlier by about 30 seconds). I had not realized that the textstyle key in \setupregister could take a command for positioning the head as well as its actual style. You textstyle key accepts commands because it has to accepts \ss, \bf etc. and you misuse this for something different. Wolfgang ___ 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 ___
Re: [NTG-context] indexing query
OK: That does not sound good, so back to basics then. Here is a test file. Perhaps the problem lies in how I am defining my keys. % with MKII the output is fine, but no contrastcolor % with MKIV subentry/subsubentry are not placed properly \setupinteraction[state=start,color=blue,contrastcolor=red] \setupcolors[state=start] \setupregister[index][n=3, balance=yes, pagestyle=italic, textstyle=normal, criterium=all, interaction={pagenumber}, ] \setupregister[index][indicator=no,distance=0.5em] \setupregister[index][pagecommand=\it] %needed with MKIV \starttext Throughout the millennia \index{humans}humans have \index[humans]{humans+development}developed and \index[humans+development]{humans+development+adaptation}adapted methods for storing facts and thoughts on a variety of different media. \page Throughout the millennia \index{humans}humans have \index[humans]{humans+development}developed and \index[humans+development]{humans+development+adaptation}adapted methods for storing facts and thoughts on a variety of different media. \blank[3*big] \placeindex \stoptext On Sun, Mar 18, 2012 at 5:17 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 18.03.2012 um 22:11 schrieb Alan Bowen: Sorry for the bother, Wolfgang. I think I have the answer now (see my message earlier by about 30 seconds). I had not realized that the textstyle key in \setupregister could take a command for positioning the head as well as its actual style. You textstyle key accepts commands because it has to accepts \ss, \bf etc. and you misuse this for something different. Wolfgang ___ 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 ___ ___ 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 ___