[NTG-context] adding font feature tnum in the TOC

Wolfgang Schuster schuster.wolfgang at gmail.com
Tue Mar 29 17:33:40 CEST 2016


> Willi Egger <mailto:context at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20160329/fc1284b3/attachment-0001.html>


More information about the ntg-context mailing list