Re: [NTG-context] indexing puzzle

2012-05-26 Thread Alan Bowen
Michael— Thank you so much for your very helpful response. 1. \unskip works well. 2. What I currently have is admittedly an ad hoc system for encoding my indices. As you note, the system works for page numbers 99 where line numbers 99. When line numbers 99, I adapt the sort key differently:

Re: [NTG-context] indexing puzzle

2012-05-26 Thread Rogers, Michael K
Thanks, Alan. Actually, I now think MKIV works without any trickery. I was perhaps too eager to try a Lua solution. \Passage{Author+Text+Locus} seems to work fine in the beta today. Cheers, Michael On May 26, 2012, at 8:41 AM, Alan Bowen wrote: Michael— Thank you so much for your very

Re: [NTG-context] indexing puzzle

2012-05-26 Thread Alan Bowen
It does indeed! Excellent! A. On Sat, May 26, 2012 at 9:21 AM, Rogers, Michael K mrog...@emory.eduwrote: Thanks, Alan. Actually, I now think MKIV works without any trickery. I was perhaps too eager to try a Lua solution. \Passage{Author+Text+Locus} seems to work fine in the beta today.

Re: [NTG-context] indexing puzzle

2012-05-26 Thread Hans Hagen
On 26-5-2012 16:12, Alan Bowen wrote: Thanks, Alan. Actually, I now think MKIV works without any trickery. I was perhaps too eager to try a Lua solution. \Passage{Author+Text+Locus} seems to work fine in the beta today. If you dont' like the + you can do: \setregisterentry [Passage]

Re: [NTG-context] indexing puzzle

2012-05-24 Thread Alan Bowen
For anyone interested in producing classical indices locorum, I have devised a way that seems to work, although it is not that elegant. The first step is to modify the sort keys by counting the number of digits in the page number: thus, [AuthorText01] for pages 1–9, [AuthorText02] for pages

Re: [NTG-context] indexing puzzle

2012-05-24 Thread Rogers, Michael K
1. For \ab you might want \def\ab{\unskip} since the space is not the same as the width of a digit. 2. Does your solution work with line numbers greater than 99? I tried to implement your idea and I got the order 25.7, 25.117, 25.37. Probably more than 99 lines never occurs on a page, so

[NTG-context] indexing puzzle

2012-05-22 Thread Alan Bowen
I have been trying to index the passages cited in a book and would be grateful for some tactical advice. There are several works by a single author, and it is customary to cite each text by page and line number, as in 1253.12 (page 1253, line12), for example. I have a sort key for each work. But