Registers with distinguishable entries.
Dear list, For a book in the area of musicology I would like to make one register with entries of different kinds, distinguishable by their appearance in the register (or index or whatever). The index entries will mostly be authors, including composers, musical terms and musical compositions. The titles of the compositions and the foreign words are set in italic characters throughout in the text of the book. What I would like is to be able to distinguish all entries according to whether they are treated in the text, are shown in a musical example, or are mentioned only in a foot- or endnote. In many books page numbers indicating illustrations are set in italics. Pagenumbers indicating foot- or endnotes often have a suffix "n". Furthermore, when an indexed item is discussed on a number of consecutive pages, usually a range is given in the index, like 144-53, or 143 ff. Can all this be done in ConTeXt, and if so, can anybody give me advice on how to do it? I have tried making three different Registers, for text, for illustrations and for notes, but I cannot figure out how to combine them into one index. But also, whatever I set in \setupregister, they all look exactly the same: textstyle regular, pagestyle slanted. Moreover, in \setupindex (or whatever other name for the register), [indicator=no] is ignored. Are these bugs or am I doing things the wrong way? I add a (not so) minimal example. Thanks in advance for any help. Robert Blackstone
Leaving out the plural in \setupregister gives you the setup you set up. \defineregister[Note][Notes] \setupregister[Note][n=2,pagestyle=small,textstyle=normal] \defineregister[Text][Texts] \setupregister[Text][n=2,textstyle=normal,pagestyle=normal] \defineregister[Music][Musics] \setupregister[Music][n=2,textstyle=normal,pagestyle=slanted] As for the other questions, +1. Those are questions I was going to ask myself. Best wishes, Severin
Hi Robert, On 2012-04-26 12:07, Robert Blackstone wrote:
In many books page numbers indicating illustrations are set in italics. Pagenumbers indicating foot- or endnotes often have a suffix "n".
This I’d like to have in Context, too.
Furthermore, when an indexed item is discussed on a number of consecutive pages, usually a range is given in the index, like 144-53, or 143 ff.
You want the “compress” switch in placeregister, or indicate ranges with \{start,stop}register: ········································································ \defineregister [demo] [demoes] \starttext \demo{Demoitem} foo \page[yes] \demo{Demoitem} foo \page[yes] %%% Here’s the range; should work without “compress” \startregister[demo][demorange]{Demorange} \demo{Demoitem} foo \page[yes] \demo{Otheritem} bar \page[yes] \demo{Otheritem} bar \page[yes] \stopregister[demo][demorange]%% <= you’ll need to explicitly terminate the ranges so they can overlap \demo{Otheritem} bar \page[yes] \demo{Demoitem} foo \page[yes] \demo{Demoitem} foo \page[yes] %%%% Here’s the relevant bit: \placeregister [demo] [compress=yes] \stoptext ········································································ Btw. have you read the small print: http://wiki.contextgarden.net/Registers#Tricks ? Regards Philipp -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments
participants (4)
-
Alan BRASLAU
-
Philipp Gesang
-
Robert Blackstone
-
S Barmeier