Re: [NTG-context] Manipulating the pagenumber in the TOC
Willi Egger schrieb am 21.04.2019 um 19:28: Hi all, "when manipulating in one area you will have to manipulate also in other aeras” I must confess. I asked some time ago about manipulating the pagenumber. Wolfgang provide me the following approach: \cldcontext{“\letterpercent.0f”,(\pagenumber+1)/2} This works indeed fine. However now I am confronted with the fact, that in the TOC the manipulated pagenumbers should be taken into account. \def\dwarsliggernumber#1% {\number\numexpr(#1+1)/2\relax} \defineconversion [dwarsligger] [\dwarsliggernumber] \setuppapersize[A5,landscape] \setupuserpagenumber[numberconversion=dwarsligger] \setuppagenumbering[location=none] \setupheadertexts [\doifoddpageelse{}{\prefixedpagenumber}] \setupfootertexts [\doifoddpageelse{\prefixedpagenumber}{}] \usemodule [visual] \starttext \completecontent \dorecurse{10} {\chapter{\fakewords{5}{10}} \fakelines{50}{100}} \stoptext Wolfgang ___ 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 ___
[NTG-context] Manipulating the pagenumber in the TOC
Hi all, "when manipulating in one area you will have to manipulate also in other aeras” I must confess. I asked some time ago about manipulating the pagenumber. Wolfgang provide me the following approach: \cldcontext{“\letterpercent.0f”,(\pagenumber+1)/2} This works indeed fine. However now I am confronted with the fact, that in the TOC the manipulated pagenumbers should be taken into account. Wolfgang’s approach does not help and ends in an error: TOC-pagenumber-test.tex Description: Binary data \define[1]\SectionTOCPagenumber{ \cldcontext{“\letterpercent.0f”,(\pagenumber+1)/2}} \setuplist [section] [pagecommand=\SectionTOCPagenumber] My question is: is there a way to manipulate the pagenumber in the TOC such, that it reflects the pagenumbers in the document? Kind regards Willi___ 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 ___