* index questions - again
@ 2007-03-12 8:42 Thomas A. Schmitz
2007-03-12 8:56 ` Steffen Wolfrum
2007-03-12 11:48 ` Thomas A. Schmitz
0 siblings, 2 replies; 8+ messages in thread
From: Thomas A. Schmitz @ 2007-03-12 8:42 UTC (permalink / raw)
To: mailing list for ConTeXt users
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?
2. Another index question: I have several seeindex entries. They
work, but the publisher doesn't want a linebreak, and they want "see"
in italics. SO instead of
lisible
see readerly
they want
lisible *see* readerly
Can this be configured, or can I hack core-reg.tex (and how?).
Best, and thanks
Thomas
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: index questions - again
2007-03-12 8:42 index questions - again Thomas A. Schmitz
@ 2007-03-12 8:56 ` Steffen Wolfrum
2007-03-12 10:04 ` Thomas A. Schmitz
2007-03-12 11:48 ` Thomas A. Schmitz
1 sibling, 1 reply; 8+ messages in thread
From: Steffen Wolfrum @ 2007-03-12 8:56 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi Thomas,
as Hans is probably too busy to write the perfect patch right now
maybe meanwhile a hack will do ?
On Thu, 26 Oct 2006 10:32:29 +0200, Hans Hagen wrote:
> \placeregister[index][file=testtest]
>
> so, you can copy test.tuo to testtest.tuo and then edit testtest.tuo
> to suit your needs
Best,
Steffen
On Mon, 12 Mar 2007 09:42:10 +0100, 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?
>
> 2. Another index question: I have several seeindex entries. They
> work, but the publisher doesn't want a linebreak, and they want "see"
> in italics. SO instead of
>
> lisible
> see readerly
>
> they want
>
> lisible *see* readerly
>
> Can this be configured, or can I hack core-reg.tex (and how?).
>
> Best, and thanks
>
> Thomas
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: index questions - again
2007-03-12 8:56 ` Steffen Wolfrum
@ 2007-03-12 10:04 ` Thomas A. Schmitz
0 siblings, 0 replies; 8+ messages in thread
From: Thomas A. Schmitz @ 2007-03-12 10:04 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Mar 12, 2007, at 9:56 AM, Steffen Wolfrum wrote:
> Hi Thomas,
>
> as Hans is probably too busy to write the perfect patch right now
> maybe meanwhile a hack will do ?
>
> On Thu, 26 Oct 2006 10:32:29 +0200, Hans Hagen wrote:
>> \placeregister[index][file=testtest]
>>
>> so, you can copy test.tuo to testtest.tuo and then edit testtest.tuo
>> to suit your needs
>
>
> Best,
> Steffen
Thanks Steffen, I just tried it, and it works indeed! Not an elegant
solution, for sure (my tuo file has ~3,600 lines, so editing it is a
bit painful), but would do as a last ditch attempt.
Thanks
Thomas
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: index questions - again
2007-03-12 8:42 index questions - again Thomas A. Schmitz
2007-03-12 8:56 ` Steffen Wolfrum
@ 2007-03-12 11:48 ` Thomas A. Schmitz
2007-03-13 17:41 ` Hans Hagen
1 sibling, 1 reply; 8+ messages in thread
From: Thomas A. Schmitz @ 2007-03-12 11:48 UTC (permalink / raw)
To: mailing list for ConTeXt users
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?
>
> 2. Another index question: I have several seeindex entries. They
> work, but the publisher doesn't want a linebreak, and they want "see"
> in italics. SO instead of
>
> lisible
> see readerly
>
> they want
>
> lisible *see* readerly
>
> Can this be configured, or can I hack core-reg.tex (and how?).
>
Any chances to know more about this?
Best
Thomas
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: index questions - again
2007-03-12 11:48 ` Thomas A. Schmitz
@ 2007-03-13 17:41 ` Hans Hagen
2007-03-13 20:03 ` Thomas A. Schmitz
0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2007-03-13 17:41 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: index questions - again
2007-03-13 17:41 ` Hans Hagen
@ 2007-03-13 20:03 ` Thomas A. Schmitz
2007-03-14 9:05 ` Hans Hagen
0 siblings, 1 reply; 8+ messages in thread
From: Thomas A. Schmitz @ 2007-03-13 20:03 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Mar 13, 2007, at 6:41 PM, Hans Hagen wrote:
>> 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
>
Hmm, I'm not quite sure I'm doing the right thing. I thought I could
have 4 arguments in []:
\startregister[name of register][key for range][type of register]
[sort key]{register entry}
but the [sort key] doesn't seem to work. The hack is OK for me now,
but it may not be good for the distribution.
> can you also provide the appropriate cont-en.xml entry
Would like to, but comparing "register" to "startregister," I don't
see anything that has to be changed?
<cd:command name="register" generated="yes" file="core-reg.tex">
<cd:sequence>
<cd:variable value="register"/>
</cd:sequence>
<cd:arguments>
<cd:keywords optional="yes">
<cd:constant type="cd:text"/>
</cd:keywords>
<cd:index list="yes"/>
</cd:arguments>
</cd:command>
<cd:command name="startregister" generated="yes" file="core-reg.tex">
<cd:sequence>
<cd:string value="start"/>
<cd:variable value="register"/>
</cd:sequence>
<cd:arguments>
<cd:keywords optional="yes">
<cd:constant type="cd:text"/>
</cd:keywords>
<cd:index list="yes"/>
</cd:arguments>
</cd:command>
Best
Thomas
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: index questions - again
2007-03-13 20:03 ` Thomas A. Schmitz
@ 2007-03-14 9:05 ` Hans Hagen
2007-03-14 16:32 ` Thomas A. Schmitz
0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2007-03-14 9:05 UTC (permalink / raw)
To: mailing list for ConTeXt users
Thomas A. Schmitz wrote:
> On Mar 13, 2007, at 6:41 PM, Hans Hagen wrote:
>
>
>>> 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
>>
>>
>
> Hmm, I'm not quite sure I'm doing the right thing. I thought I could
> have 4 arguments in []:
>
> \startregister[name of register][key for range][type of register]
> [sort key]{register entry}
>
> but the [sort key] doesn't seem to work. The hack is OK for me now,
> but it may not be good for the distribution.
>
>
\def\dostartregister[#1][#2][#3][#4]#5% % 3 args: #3 is sortkey
{\chardef\registerpagestatus\plustwo % 4 args: #3 is type, #4 is
sortkey
\def\currentregister{#1}%
\iffourarguments
\setgvalue{\??id#1\??id#2}{\dodostopregister[#1][#4]{#5}}%
\dodoregister[#4]{#3}{#5}%
\else
\setgvalue{\??id#1\??id#2}{\dodostopregister[#1][#3]{#5}}%
\dodoregister[#3]{}{#5}%
\fi}
>
>> can you also provide the appropriate cont-en.xml entry
>>
>
>
> Would like to, but comparing "register" to "startregister," I don't
> see anything that has to be changed?
>
>
> <cd:command name="register" generated="yes" file="core-reg.tex">
> <cd:sequence>
> <cd:variable value="register"/>
> </cd:sequence>
> <cd:arguments>
> <cd:keywords optional="yes">
> <cd:constant type="cd:text"/>
> </cd:keywords>
> <cd:index list="yes"/>
> </cd:arguments>
> </cd:command>
>
> <cd:command name="startregister" generated="yes" file="core-reg.tex">
> <cd:sequence>
> <cd:string value="start"/>
> <cd:variable value="register"/>
> </cd:sequence>
> <cd:arguments>
> <cd:keywords optional="yes">
> <cd:constant type="cd:text"/>
> </cd:keywords>
> <cd:index list="yes"/>
> </cd:arguments>
> </cd:command>
>
> Best
>
> Thomas
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
--
-----------------------------------------------------------------
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
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: index questions - again
2007-03-14 9:05 ` Hans Hagen
@ 2007-03-14 16:32 ` Thomas A. Schmitz
0 siblings, 0 replies; 8+ messages in thread
From: Thomas A. Schmitz @ 2007-03-14 16:32 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Mar 14, 2007, at 10:05 AM, Hans Hagen wrote:
> \def\dostartregister[#1][#2][#3][#4]#5% % 3 args: #3 is sortkey
> {\chardef\registerpagestatus\plustwo % 4 args: #3 is type, #4 is
> sortkey
> \def\currentregister{#1}%
> \iffourarguments
> \setgvalue{\??id#1\??id#2}{\dodostopregister[#1][#4]{#5}}%
> \dodoregister[#4]{#3}{#5}%
> \else
> \setgvalue{\??id#1\??id#2}{\dodostopregister[#1][#3]{#5}}%
> \dodoregister[#3]{}{#5}%
> \fi}
>
Thanks so much, this seems to be doing exactly what I want! Now my
index is almost perfect...
Thanks
Thomas
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2007-03-14 16:32 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-12 8:42 index questions - again Thomas A. Schmitz
2007-03-12 8:56 ` Steffen Wolfrum
2007-03-12 10:04 ` Thomas A. Schmitz
2007-03-12 11:48 ` Thomas A. Schmitz
2007-03-13 17:41 ` Hans Hagen
2007-03-13 20:03 ` Thomas A. Schmitz
2007-03-14 9:05 ` Hans Hagen
2007-03-14 16:32 ` Thomas A. Schmitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).