ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Jan Tosovsky" <j.tosovsky@email.cz>
To: "'mailing list for ConTeXt users'" <ntg-context@ntg.nl>
Subject: Re: Index entries - custom font size
Date: Sat, 23 Nov 2013 15:36:56 +0100	[thread overview]
Message-ID: <7184.88439820266$1385217426@news.gmane.org> (raw)
In-Reply-To: <003401cee302$356cb700$a0462500$@tosovsky@email.cz>

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
___________________________________________________________________________________


       reply	other threads:[~2013-11-23 14:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <003401cee302$356cb700$a0462500$@tosovsky@email.cz>
2013-11-23 14:36 ` Jan Tosovsky [this message]
2013-11-16 19:29 honyk

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='7184.88439820266$1385217426@news.gmane.org' \
    --to=j.tosovsky@email.cz \
    --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).