ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: registers: how can I place a command around the whole of the page numbers of an index term?
Date: Wed, 09 May 2018 20:01:10 +0200	[thread overview]
Message-ID: <5AF33766.7090605@gmail.com> (raw)
In-Reply-To: <cea1624bdce9e7cea571773e69e2bcc86d3814e1.camel@fastwebnet.it>


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

There is no option to apply a command to all page numbers but you can
add something after the register entry with the textcommand key.

Be aware this solution isn’t perfect because in the worst case
(narrow columns for the register or long entries) page numbers
can be split on multiple lines.

\setupregister
   [index]
   [n=1,
    alternative=A,
    textcommand=\groupedcommand{}{\hfill\quad}]

Wolfgang
> MF <mailto:massifr@fastwebnet.it>
> 9. Mai 2018 um 17:09
> Hello list,
> i'd like moving the page numbers in my index to the right, with a
> \wordright.
>
> \setupregister[index][n=1,alternative=A]
>
> \starttext
> \CONTEXT\index{\ConTeXt}
> \page
> \LATEX\index{\LaTeX}
> \page
> \CONTEXT\index{\ConTeXt}
> \page
> \placeindex
> \stoptext
>
> The index is at page 4. I want to move the numbers "1,3" and "2" to the
> right.
> The parameter pagecommand is for the single page number, i want to put
> a command (\wordright) around the whole block of page numbers.
> How can i do that?
>
> Greetings,
> Massi
>
>
> ___________________________________________________________________________________
> 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://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 3100 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2018-05-09 18:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-09 15:09 MF
2018-05-09 18:01 ` Wolfgang Schuster [this message]
2018-05-10 10:28 ` MF
2018-05-10 10:35   ` MF
2018-05-10 10:44     ` Wolfgang Schuster
2018-05-10 14:43       ` MF
2018-05-10 15:16         ` MF
2018-05-10 11:07     ` Hans Hagen

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=5AF33766.7090605@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --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).