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: adding font feature tnum in the TOC
Date: Tue, 29 Mar 2016 17:33:40 +0200	[thread overview]
Message-ID: <56FAA054.4040003@gmail.com> (raw)
In-Reply-To: <C713097C-781A-4BC4-A70D-A86E5CEFAF09@boede.nl>


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

> Willi Egger <mailto:context@boede.nl>
> 29. März 2016 um 15:11
> Hi,
>
> hm, I am a little puzzled…
>
> If I am correct then one should be able to enable the font feature 
> tnum for the page-numbers with “pagecommand=“.
>
> I have
>
> \setuphead
> [section]
> [aftersection=\page, textstyle=\bfd, numberstyle=\bfd, align=middle, 
> after={\godown[-1\lineheight]}, number=no]
>
> \setuplist[section][pagecommand={\addfeature[tnum]#1\subtractfeature[tnum]}]
>
> However if I do this then I get the pagenumber prefixed with ‘section’ 
> e.g.
>
> bbb bar buch bühne section3
>
> What am I doing in the wrong way?
\setuplist[chapter][pagestyle={\feature[=][tabularnumbers]}]

\definefontfeature[default][default][onum=yes]

\setupbodyfont[pagella]

\starttext

\setcounter[userpage][100]

\completecontent

\dorecurse{20}{\expanded{\chapter{Chapter \recurselevel}}}

\stoptext


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

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2016-03-29 15:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-29 13:11 Willi Egger
2016-03-29 15:33 ` Wolfgang Schuster [this message]
2016-03-29 15:48   ` Willi Egger
2016-03-29 18:29     ` Willi Egger
2016-03-29 18:36       ` Wolfgang Schuster
2016-03-29 18:38         ` Willi Egger
2016-03-29 18:52           ` Wolfgang Schuster
2016-03-30  6:26           ` Hans Hagen
2016-03-30  6:31             ` Willi Egger
2016-03-29 18:59         ` Willi Egger

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=56FAA054.4040003@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).