ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Index entries - custom font size
@ 2013-11-16 19:29 honyk
  0 siblings, 0 replies; 2+ messages in thread
From: honyk @ 2013-11-16 19:29 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

Hello Everyone,

there are lot of index entries in my document and with the standard body
font size they occupy too much space. I've tried to decrease the size by the
textstyle parameter. It works, but it is applied recursively to every nested
level: secondary items are smaller twice and tertiary items three times... 

\setupregister[index][command=\Word, textstyle=small]
\starttext
\index{primary}\index{primary+secondary}\index{primary+secondary+tertiary}Te
xt
\completeindex
\stoptext

How can I set the same value to all the levels?

Thanks, Jan


___________________________________________________________________________________
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] 2+ messages in thread

* Re: Index entries - custom font size
       [not found] <003401cee302$356cb700$a0462500$@tosovsky@email.cz>
@ 2013-11-23 14:36 ` Jan Tosovsky
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Tosovsky @ 2013-11-23 14:36 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

On 2013-11-16 Jan Tosovsky wrote:
> there are lot of index entries in my document and with the standard
> body font size they occupy too much space. I've tried to decrease 
> the size by the textstyle parameter. It works, but it is applied 
> recursively to every nested level: secondary items are smaller twice 
> and tertiary items three times...
> 
> \setupregister[index][command=\Word, textstyle=small]
> \starttext
> \index{primary}\index{primary+secondary}\index{primary+secondary+tertia
> ry}Text
> \completeindex
> \stoptext
> 

The following code switches the font size for all the index content. Even
for group titles (letters), but it is beneficial here. The index title is
split to keep the original size.

\startbackmatter
\chapter{Index}
\start
\switchtobodyfont[8pt]
\placeindex
\stop
\stopbackmatter

Jan

___________________________________________________________________________________
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] 2+ messages in thread

end of thread, other threads:[~2013-11-23 14:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-16 19:29 Index entries - custom font size honyk
     [not found] <003401cee302$356cb700$a0462500$@tosovsky@email.cz>
2013-11-23 14:36 ` Jan Tosovsky

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