From: "Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: index questions - again
Date: Tue, 13 Mar 2007 21:03:51 +0100 [thread overview]
Message-ID: <7C32DBEF-9F8E-44F8-81A1-71B655E58D23@uni-bonn.de> (raw)
In-Reply-To: <45F6E24F.6080005@wxs.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?
<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
next prev parent reply other threads:[~2007-03-13 20:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-12 8:42 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 [this message]
2007-03-14 9:05 ` Hans Hagen
2007-03-14 16:32 ` Thomas A. Schmitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7C32DBEF-9F8E-44F8-81A1-71B655E58D23@uni-bonn.de \
--to=thomas.schmitz@uni-bonn.de \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).