ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: ntg-context@ntg.nl
Subject: Re: how to change chapter name at setupregister
Date: Mon, 15 Nov 1999 13:05:00 +0100	[thread overview]
Message-ID: <3.0.6.32.19991115130500.010f38e0@pop.wxs.nl> (raw)
In-Reply-To: <4125682A.003C8D72.00@smtp01.seinf.abb.se>

At 12:02 PM 11/15/99 +0100, grzegorz.sapijaszko@pl.abb.com wrote:
>
>
>Hi All,
>
>I have defined a new setupregister:
>
>\defineregister[miejcowosci]
>
>and I would known how can I change the chapter name created with this
>\completemiejscowosci. In \setupregister i don't see any option (probably I'm
>blind?) and in resulting pdf I have "Miejscowosci" as chapter name...

\setupheadtext [pl] [miejcowosci=WhateverItMeans]

should do the job. 

>BTW. Is there a way to hava another style for main \index items and another for
>subitems?

As you can probably suspect, there are some hidden undocumented new and untested features; they concent tagging and ranges: 

\index                {entry}
\index[key]           {entry}
\index[pageclass::]   {entry}
\index[pageclass::key]{entry}
\index                {textclass::entry}
\index[key]           {textclass::entry}
\index[pageclass::]   {textclass::entry}
\index[pageclass::key]{textclass::entry}
\startregister[index][key]{entry}
\stopregister[index][key]

like in: 

\setupregister[second]      [qq][pagestyle=bold,textstyle=bold]
\setupregister[first,second][nb][pagestyle=bold]
\setupregister[first]       [hm][textstyle=slamted,pagestyle=\ss]

\placeregister[symbol][n=1] \blank
\placeregister[first] [n=1] \blank
\placeregister[second][n=1] \page

test \symbol[-] {$-$}    \page
test \symbol[+&]{$\&$}   \page
test \symbol[&+]{&$+$}   \page
test \symbol[/] {$/$}    \page

\startregister[first][kees]{kees}

test \first {hans}       \page
test \second{hans}       \page
test \first {kees}       \page
test \second{hans}       \page
test \second{hans}       \page

\stopregister[first][kees]

test \second{ton}        \page
test \second[nb::]{ton}  \page
test \second{kees}       \page
test \second{qq::kees}   \page
test \second[hm::]{hans} \page

(if I remember right I implemented this for tobias, so maybe he has some examples)

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl
-----------------------------------------------------------------


  reply	other threads:[~1999-11-15 12:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-11-15 11:02 grzegorz.sapijaszko
1999-11-15 12:05 ` Hans Hagen [this message]
1999-11-15 13:29 grzegorz.sapijaszko

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=3.0.6.32.19991115130500.010f38e0@pop.wxs.nl \
    --to=pragma@wxs.nl \
    --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).