From: Willi Egger <context@boede.nl>
To: NTG-Context ConTeXt users <ntg-context@ntg.nl>
Subject: Re: adding font feature tnum in the TOC
Date: Tue, 29 Mar 2016 20:29:01 +0200 [thread overview]
Message-ID: <30790702-A444-434D-99D0-05F7723D5B02@boede.nl> (raw)
In-Reply-To: <493F145D-61DB-4F93-AA99-84365BFDE2B5@boede.nl>
Hello Wolfgang,
I used your solution. However I think instead of an “=“ it should be “+”.
I wikified this issue.
Kind regards
Willi
> On 29 mrt. 2016, at 17:48, Willi Egger <context@boede.nl> wrote:
>
> Wolfgang!
>
> Many thanks for this! - I get the result I wanted to.
>
> Kind regards
>
> Willi
>> On 29 mrt. 2016, at 17:33, Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:
>>
>>> Willi Egger 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
>>
>> ___________________________________________________________________________________
>> 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
>> ___________________________________________________________________________________
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2016-03-29 18:29 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
2016-03-29 15:48 ` Willi Egger
2016-03-29 18:29 ` Willi Egger [this message]
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=30790702-A444-434D-99D0-05F7723D5B02@boede.nl \
--to=context@boede.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).