Re: [NTG-context] Sort register (index) by Bible book
Taco == Taco Hoekwater t...@elvenkind.com writes: Taco You could pre-assign a zero-padded number to each book Taco (Genesis=001, Exodus=002), and use that number inside the Taco square brackets. Right, but that would be extremely annoying to type in all the time :-) I'm looking for a more automated solution, but given that even you don't know one, it seems I have to write some sorting mechanism myself. Or perhaps use the trick above as the input is XML, and the verses are clearly marked, so I could generate ConTeXt with the proper sort codes. Who does the index sorting, is that texexec? -- Cheers, Berend de Boer ___ 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] Sort register (index) by Bible book
ber...@pobox.com wrote: Taco == Taco Hoekwater t...@elvenkind.com writes: Taco You could pre-assign a zero-padded number to each book Taco (Genesis=001, Exodus=002), and use that number inside the Taco square brackets. Right, but that would be extremely annoying to type in all the time :-) I'm looking for a more automated solution, but given that even you don't know one, it seems I have to write some sorting mechanism myself. Or perhaps use the trick above as the input is XML, and the verses are clearly marked, so I could generate ConTeXt with the proper sort codes. Who does the index sorting, is that texexec? in mkii yes, and in mkiv it's done in lua if you go for xml, an duse mkiv, then you can write your own sorting code as you can access the tree Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 ___
Re: [NTG-context] Sort register (index) by Bible book
ber...@pobox.com wrote: Taco == Taco Hoekwater t...@elvenkind.com writes: Taco You could pre-assign a zero-padded number to each book Taco (Genesis=001, Exodus=002), and use that number inside the Taco square brackets. Right, but that would be extremely annoying to type in all the time :-) \def\Genesis#1{\index[001 #1]{Genesis #1}} etc. Takes only 66 macros and it even saves you typing :) I'm looking for a more automated solution, but given that even you don't know one, it seems I have to write some sorting mechanism myself. Or perhaps use the trick above as the input is XML, and the verses are clearly marked, so I could generate ConTeXt with the proper sort codes. Who does the index sorting, is that texexec? ___ 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] Sort register (index) by Bible book
On 17/11/2009 07:48, Taco Hoekwater wrote: Using \index[Samuel 1 1:1]{1 Samuel 1:1} Should change the sort order. Untested, though. He probably wants to get Genesis before Exodus (etc.) instead. So would it be possible to tell the index mechanism to sort certain items in an arbitrary order? (I don't know what \sort and \loadsorts do?) Jelle ___ 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] Sort register (index) by Bible book
Jelle Huisman wrote: On 17/11/2009 07:48, Taco Hoekwater wrote: Using \index[Samuel 1 1:1]{1 Samuel 1:1} Should change the sort order. Untested, though. He probably wants to get Genesis before Exodus (etc.) instead. So would it be possible to tell the index mechanism to sort certain items in an arbitrary order? (I don't know what \sort and \loadsorts do?) You could pre-assign a zero-padded number to each book (Genesis=001, Exodus=002), and use that number inside the square brackets. Best wishes, Taco ___ 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] Sort register (index) by Bible book
Hi All, I'm typesetting a book that has a register of Bible verses. I like to order them by Bible book as per the order the books are customarily listed. The index is created like \index{1 Samuel 1:1} and retrieved with \placeindex, so that's all standard. Are there any tools to sort this index? How can I make this part of the regular build? Or is this something you do once, at the end, by hand? -- Thanks for any pointers, Berend de Boer ___ 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] Sort register (index) by Bible book
ber...@pobox.com wrote: Hi All, I'm typesetting a book that has a register of Bible verses. I like to order them by Bible book as per the order the books are customarily listed. The index is created like \index{1 Samuel 1:1} and retrieved with \placeindex, so that's all standard. Using \index[Samuel 1 1:1]{1 Samuel 1:1} Should change the sort order. Untested, though. Best wishes, Taco ___ 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 ___