Thomas A. Schmitz wrote:
> On Mar 12, 2007, at 9:42 AM, Thomas A. Schmitz wrote:
>
>
>> Hi,
>>
>> I'm sorry, this is the third time I'm asking this question, but I
>> haven't been able to solve this, and the book is going to the
>> publisher next month, so it's kind of urgent (I will sulk in Epen if
>> this doesn't work :-)
>>
>> 1. I need to define a special type of register that will typeset page
>> ranges in bold. I have a subindex that does that for single entries:
>>
>> \setupregister[index][imp][pagestyle=bold]
>>
>> which I invoke like
>>
>> \index[imp::]{modernity}
>>
>> and it works. How can I have the same thing for ranges?
>>
>
> OK, I tried a hack, and I just wanted to ask if there's anything
> wrong with it: as dirty workaround, I added a fourth key to
> dostartregister:
>
>
> \def\startregister
> {\doquadrupleempty\dostartregister}
>
> \def\dostartregister[#1][#2][#3][#4]#5%
> {\chardef\registerpagestatus\plustwo
> \def\currentregister{#1}%
> \setgvalue{\??id#1\??id#2}{\dodostopregister[#1][#3]{#5}}%
> \dodoregister[#3]{#4}{#5}}
>
> and after a quick test, this seems to do what I want. The endash
> between numbers is not bold, but I could live with that. Any comments
> from the developers?
>
>
looks harmless to me so we can patch that
can you also provide the appropriate cont-en.xml entry
-----------------------------------------------------------------
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
-----------------------------------------------------------------
_______________________________________________
ntg-context mailing list
[email protected]
http://www.ntg.nl/mailman/listinfo/ntg-context