ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Registers with distinguishable entries.
@ 2012-04-26 10:07 Robert Blackstone
  2012-04-26 10:18 ` S Barmeier
  2012-04-26 10:53 ` Philipp Gesang
  0 siblings, 2 replies; 7+ messages in thread
From: Robert Blackstone @ 2012-04-26 10:07 UTC (permalink / raw)
  To: ntg-context

[-- Attachment #1: Type: text/plain, Size: 1492 bytes --]

Dear list,

For a book in the area of musicology I would like to make one register with entries of different kinds, distinguishable by their appearance in the  register (or index or whatever).
The index entries will mostly be authors, including composers, musical terms and musical compositions. The titles of the compositions and the foreign words are set in italic characters throughout in the text of the book.
What I would like is to be able to distinguish all entries according to whether they are treated in the text, are shown in a musical example, or are mentioned only in a foot- or endnote.

In many books page numbers indicating illustrations are set in italics. Pagenumbers indicating foot- or endnotes often have a suffix "n".
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.
Can all this be done in ConTeXt, and if so, can anybody give me advice on how to do it?

I have tried making three different Registers, for text, for illustrations and for notes, but I cannot figure out how to combine them into one index.  But also, whatever I set in \setupregister, they all look exactly the same: textstyle regular, pagestyle slanted. Moreover, in \setupindex (or whatever other name for the register), [indicator=no] is ignored. 
Are these bugs or am I doing things the wrong way?

I add a (not so) minimal example.

Thanks in advance for any help.

Robert Blackstone


[-- Attachment #2: Registers_multiple-test3.tex --]
[-- Type: application/octet-stream, Size: 1481 bytes --]


\definefloat[Example][Examples]
\setupcaptions[location=top]
\setuplabeltext[en][Example=Ex. ] 

\defineregister[Note][Notes]
\setupregister[Note][Notes][n=2,pagestyle=small,textstyle=normal]


\defineregister[Text][Texts]
\setupregister[Text][Texts][n=2,textstyle=normal,pagestyle=normal]

\defineregister[Music][Musics]
\setupregister[Music][Musics][n=2,textstyle=normal,pagestyle=slanted]



\starttext

Blabla,  Praetorius\Text[Praetorius]{Praetorius, Michael}  bla bla \dots as shown in  (ex.2.63).

\placeExample[force][CH2-63]{Praetorius p.132}
{\externalfigure[CH2-63]}
\Music[Praetorius]{Praetorius, Michael}

\page

Praetorius\Text[Praetorius]{Praetorius, Michael}  bla bla \dots . Perhaps bla bla \dots bla bla  {\em Polyhymnia Caducatrix}\Text[Praetorius]{Praetorius, Michael+{\em Polyhymnia Cadeatrix \& Panegyria}}  bla bla \dots in  {\em Syntagma Musicum}\Text[Praetorius]{Praetorius, Michael+{\em Syntagma Musicum}}. Johann  Staden\Text[Staden]{Staden, Johann},  however, bla bla \dots
 
\page

Some text  Cavalieri\Text[Cavalieri]{Cavalieri, Emilio de}, or  Praetorius\Text[Praetorius]{Praetorius, Michael}], some more text.\footnote{Johann  Staden\Note[Staden]{Staden, Johann}, {\em Kurzer und einf{\" a}ltiger Bericht} , translated in F. Arnold\Note[Arnold]{Arnold, Franck Th.}, loc. cit. p.105.}	

 Another chunk of text.\footnote{In the original  Staden\Note[Staden]{Staden, Johann} did something else.}



\completeText
\completeNote
\completeMusic
\stoptext

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Registers with distinguishable entries.
  2012-04-26 10:07 Registers with distinguishable entries Robert Blackstone
@ 2012-04-26 10:18 ` S Barmeier
  2012-04-26 13:14   ` Alan BRASLAU
  2012-04-26 10:53 ` Philipp Gesang
  1 sibling, 1 reply; 7+ messages in thread
From: S Barmeier @ 2012-04-26 10:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Registers with distinguishable entries.
  2012-04-26 10:07 Registers with distinguishable entries Robert Blackstone
  2012-04-26 10:18 ` S Barmeier
@ 2012-04-26 10:53 ` Philipp Gesang
  1 sibling, 0 replies; 7+ messages in thread
From: Philipp Gesang @ 2012-04-26 10:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1630 bytes --]

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

[-- Attachment #1.2: Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Registers with distinguishable entries.
  2012-04-26 10:18 ` S Barmeier
@ 2012-04-26 13:14   ` Alan BRASLAU
  2012-04-27  8:58     ` S Barmeier
  0 siblings, 1 reply; 7+ messages in thread
From: Alan BRASLAU @ 2012-04-26 13:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, 26 Apr 2012 19:18:55 +0900
S Barmeier <severinbarmeier@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Registers with distinguishable entries.
  2012-04-26 13:14   ` Alan BRASLAU
@ 2012-04-27  8:58     ` S Barmeier
  0 siblings, 0 replies; 7+ messages in thread
From: S Barmeier @ 2012-04-27  8:58 UTC (permalink / raw)
  To: Alan BRASLAU; +Cc: mailing list for ConTeXt users

On 04/26/2012 10:14 PM, Alan BRASLAU wrote:
> On Thu, 26 Apr 2012 19:18:55 +0900
> S Barmeier <severinbarmeier@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Registers with distinguishable entries.
@ 2012-04-26 17:59 Robert Blackstone
  0 siblings, 0 replies; 7+ messages in thread
From: Robert Blackstone @ 2012-04-26 17:59 UTC (permalink / raw)
  To: ntg-context

On Thu, Apr 26, 2012  12:53:57 +0200,
Philipp Gesang <gesang@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Registers with distinguishable entries.
@ 2012-04-26 17:44 Robert Blackstone
  0 siblings, 0 replies; 7+ messages in thread
From: Robert Blackstone @ 2012-04-26 17:44 UTC (permalink / raw)
  To: ntg-context

On Thu, Apr 26, 2012 19:18:55 +0900
S Barmeier <severinbarmeier@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-04-27  8:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-26 10:07 Registers with distinguishable entries Robert Blackstone
2012-04-26 10:18 ` S Barmeier
2012-04-26 13:14   ` Alan BRASLAU
2012-04-27  8:58     ` S Barmeier
2012-04-26 10:53 ` Philipp Gesang
2012-04-26 17:44 Robert Blackstone
2012-04-26 17:59 Robert Blackstone

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).