ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* register confusion
@ 2010-05-07  6:49 Michael Saunders
  0 siblings, 0 replies; only message in thread
From: Michael Saunders @ 2010-05-07  6:49 UTC (permalink / raw)
  To: ntg-context

Finding simple \at[] statements inadequate for glossaries (where there
might be zero, one, or several page references per entry), I'm
experimenting with registers, but I'm not getting the expected
results:

\defineregister[glind][glinds]
\setupregister[glind][style=\it]
\setupinteraction[state=start]

\starttext
double\glind[double]{}
\page
single\glind[single]{}
\page
double\glind[double]{}
\page

single should read, '2':  (p.\placeglind[single])

double should read, '1, 3':  (pp.\placeglind[double])

zero should be blank:  (\placeglind[zero])
\stoptext

Note the problems:

1. \placeglind[label] doesn't point to the label, it points to any label.
2. Context forces a linebreak before and after the numbers.
3. The numbers aren't italic.

Also, it would be nice to set 'p.', 'pp.', or nothing automatically,
depending on whether there was one, several or zero instances of the
label in the text.

Is register not the mechanism to do this?  If not, I don't know what is.
___________________________________________________________________________________
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] only message in thread

only message in thread, other threads:[~2010-05-07  6:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-07  6:49 register confusion Michael Saunders

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