Re: [NTG-context] last chapter number

2010-01-18 Thread Hans Hagen
On 17-1-2010 13:36, Wolfgang Schuster wrote: Am 17.01.2010 um 13:06 schrieb Andreas Harder: Nonetheless the needed information is already present even more if one uses a table of contents … The table of contents needs two passes too but only Hans can say (or provide a command like

Re: [NTG-context] last chapter number

2010-01-18 Thread Andreas Harder
Am 18.01.2010 um 13:11 schrieb Hans Hagen: the beta now has \starttext \dorecurse {5} { \chapter{Test #1} first: \somestructureheadnumber[chapter][first]\par current: \somestructureheadnumber[chapter][current]\par last: \somestructureheadnumber[chapter][last]

Re: [NTG-context] last chapter number in Metapost

2010-01-18 Thread Andreas Harder
Am 18.01.2010 um 13:11 schrieb Hans Hagen: the beta now has \starttext \dorecurse {5} { \chapter{Test #1} first: \somestructureheadnumber[chapter][first]\par current: \somestructureheadnumber[chapter][current]\par last: \somestructureheadnumber[chapter][last]

Re: [NTG-context] last chapter number in Metapost

2010-01-18 Thread Hans Hagen
On 18-1-2010 16:47, Andreas Harder wrote: \startuseMPgraphic{test} current := \somestructureheadnumber[chapter][current] ; last:= \somestructureheadnumber[chapter][last]; % current := 2 ; % last:= 6 ; skip:= TextHeight * (current-1)/last ; StartPage ;

Re: [NTG-context] last chapter number

2010-01-17 Thread Wolfgang Schuster
Am 16.01.2010 um 23:08 schrieb Andreas Harder: can you try \convertedstructurecounter[chapter][type=last] Hello Wolfgang, I tried, but it only outputs nothing visible. Sorry, my fault. Section numbering use their own system to save and get the numbers. What you can do is to save the

Re: [NTG-context] last chapter number

2010-01-17 Thread Andreas Harder
Am 17.01.2010 um 09:13 schrieb Wolfgang Schuster: Am 16.01.2010 um 23:08 schrieb Andreas Harder: can you try \convertedstructurecounter[chapter][type=last] Hello Wolfgang, I tried, but it only outputs nothing visible. Sorry, my fault. Section numbering use their own system to save

Re: [NTG-context] last chapter number

2010-01-17 Thread Wolfgang Schuster
Am 17.01.2010 um 13:06 schrieb Andreas Harder: Nonetheless the needed information is already present even more if one uses a table of contents … The table of contents needs two passes too but only Hans can say (or provide a command like \convertedstructurecounter for section numbers) how you

Re: [NTG-context] last chapter number

2010-01-17 Thread Hans Hagen
On 17-1-2010 13:36, Wolfgang Schuster wrote: Am 17.01.2010 um 13:06 schrieb Andreas Harder: Nonetheless the needed information is already present even more if one uses a table of contents … The table of contents needs two passes too but only Hans can say (or provide a command like

[NTG-context] last chapter number

2010-01-16 Thread Andreas Harder
Hi all, is there already an equivalent to \lastpage for the last chapter number in a document. I tried something like \getmarking[chapternumber][last], but the output is still the current chapter number. Thanks in advance Andreas

Re: [NTG-context] last chapter number

2010-01-16 Thread Wolfgang Schuster
Am 16.01.2010 um 17:46 schrieb Andreas Harder: Hi all, is there already an equivalent to \lastpage for the last chapter number in a document. I tried something like \getmarking[chapternumber][last], but the output is still the current chapter number. can you try

Re: [NTG-context] last chapter number

2010-01-16 Thread Andreas Harder
Am 16.01.2010 um 20:52 schrieb Wolfgang Schuster: Am 16.01.2010 um 17:46 schrieb Andreas Harder: Hi all, is there already an equivalent to \lastpage for the last chapter number in a document. I tried something like \getmarking[chapternumber][last], but the output is still the