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
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
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
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
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 -----------------------------------------------------------------
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?
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?
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 -----------------------------------------------------------------
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
participants (3)
-
Hans Hagen
-
Steffen Wolfrum
-
Thomas A. Schmitz