Re: [NTG-context] Registers with distinguishable entries.

2012-04-27 Thread S Barmeier
On 04/26/2012 10:14 PM, Alan BRASLAU wrote:
 On Thu, 26 Apr 2012 19:18:55 +0900
 S Barmeier severinbarme...@googlemail.com wrote:
 
 \defineregister[Music][Musics]
 
 Musics?
 
 Alan

Hey, that wasn't me... It was like that when I got it =)
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Registers with distinguishable entries.

2012-04-26 Thread S Barmeier
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
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Registers with distinguishable entries.

2012-04-26 Thread Philipp Gesang
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


pgpdyp5QGeuVi.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Registers with distinguishable entries.

2012-04-26 Thread Alan BRASLAU
On Thu, 26 Apr 2012 19:18:55 +0900
S Barmeier severinbarme...@googlemail.com wrote:

 \defineregister[Music][Musics]

Musics?

Alan
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Registers with distinguishable entries.

2012-04-26 Thread Robert Blackstone
On Thu, Apr 26, 2012 19:18:55 +0900
S Barmeier severinbarme...@googlemail.com
wrote


 Leaving out the plural in \setupregister gives you the setup you set up.

Thank you, Severin. I always wondered what the plural form of the name
between the second pair of square brackets in the \setup command was
for (I still do).
But anyway, this solved one problem.

Kind regards,
Robert
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Registers with distinguishable entries.

2012-04-26 Thread Robert Blackstone
On Thu, Apr 26, 2012  12:53:57 +0200,
Philipp Gesang ges...@stud.uni-heidelberg.de wrote

 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 ?


Thank you, Philipp,

This works perfectly.
I had seen the small print in that page but had obviously not read it
carefully enough.

So two of my problems are solved, the main wish, to be able to make an
index with distinguishable entries, is still unfulfilled, not only for
me but for at least two others.
Let's someone on the list can shine some light on that one too.

Kind regards,
Robert
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___