From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/100766 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context 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 Message-ID: <5AF33766.7090605@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6615719223570926834==" X-Trace: blaine.gmane.org 1525888810 4810 195.159.176.226 (9 May 2018 18:00:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 9 May 2018 18:00:10 +0000 (UTC) User-Agent: Postbox 5.0.25 (Macintosh/20180328) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed May 09 20:00:06 2018 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fGTNm-0001A5-8X for gctc-ntg-context-518@m.gmane.org; Wed, 09 May 2018 20:00:06 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B73B024A7F; Wed, 9 May 2018 20:01:26 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BdC2apqvqNve; Wed, 9 May 2018 20:01:26 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 065CA24A80; Wed, 9 May 2018 20:01:26 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A1F2424A80 for ; Wed, 9 May 2018 20:01:25 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mKWixM6H9qLN for ; Wed, 9 May 2018 20:01:24 +0200 (CEST) Original-Received: from mail-wr0-f181.google.com (mail-wr0-f181.google.com [209.85.128.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 743B424A7F for ; Wed, 9 May 2018 20:01:14 +0200 (CEST) Original-Received: by mail-wr0-f181.google.com with SMTP id v5-v6so36419243wrf.9 for ; Wed, 09 May 2018 11:01:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=dvMvtfshhEHJPIFsSUMcQZXn9yBNr2KWYURqaPq4U4Q=; b=gp3SiAmS+SZSx4EK4xwjHbh7ADhGxwm8GnG1RYE8EOjQB+m3c8ZUUFDZAT2MF3CgLn trpSkWKzL7XTwx33maqJpA6GlxDb6L5mJ3jIWx71WojUqkBhzvM/jK2uAKUAu9HN8Cvv 1VqZZF6edUIuAJJGEoJkF+pnZiflzg0UiiFOxZNmM1DJbj51301zESpwm1uFKuBO2Tyz K1mVpisa+7qCzRELn4chbB4qHXjxB7rVyLlWFAz6CI53dLxLB0xAPwnQyAEW7RPG7lz9 ucAo3JB3CFys6NokFRWWiyNvxYx9KpcSCTr5VQSABg3aeyMBm6T3seD+x3Jls3+LC0Aa 2kKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=dvMvtfshhEHJPIFsSUMcQZXn9yBNr2KWYURqaPq4U4Q=; b=DoeRuWP2ZDy/vjKTHt2gH/p3M2LE+k4KcV2Kl5/vRiiidKAIxFHyLHen6gDIbCIUYV wutlOLND3qbO6sq0wo64eWk+1uatb4SVZ7q0qPItWQc05D7WPcfVsBMEKcwjFFSsk6FU SNjkysgutrvt6hHTTFJwCFe1NmKoIgEeD6I1OvthvkEn0AxdOkLXFh5xfx6yI9XEJAVo s2/+gqbYNjzC6VW+MK5l5eZsszBT59LeSvzWr7BO1WG5KkLnxKRoIymJxuFWuaEAXms1 CMcWrJrj4rPt3gg06LfI2yG/hXym239Bu0RbAfc6faGFgepAjoPmAwNQ+OTgOyM4UAz1 tDOA== X-Gm-Message-State: ALQs6tBCeCiOr4OvxBVRC8YKbIUwV6zLwJvHsbXesIEFpbjnz01jceup Jkd2CVdGvQF21f9H1MWQUnKMRKlL X-Google-Smtp-Source: AB8JxZpkzE5o0P2GVUUU/EZDekOVYTdV+eBA934VKBm3exemAY+FAyGvjMWLzHh8bF0ZRSufmUcRcQ== X-Received: by 2002:adf:83c6:: with SMTP id 64-v6mr39360749wre.270.1525888873693; Wed, 09 May 2018 11:01:13 -0700 (PDT) Original-Received: from [192.168.1.11] (x4dbee3e2.dyn.telefonica.de. [77.190.227.226]) by smtp.gmail.com with ESMTPSA id k30-v6sm52219811wrf.17.2018.05.09.11.01.11 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 May 2018 11:01:12 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:100766 Archived-At: This is a multi-part message in MIME format. --===============6615719223570926834== Content-Type: multipart/alternative; boundary="------------040409080808000104010206" This is a multi-part message in MIME format. --------------040409080808000104010206 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 > 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 > ___________________________________________________________________________________ --------------040409080808000104010206 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit 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
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
___________________________________________________________________________________

--------------040409080808000104010206-- --===============6615719223570926834== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============6615719223570926834==--