Re: [NTG-context] page ranges in \markpage

2018-07-22 Thread Pablo Rodriguez
On 07/20/2018 12:19 AM, Hans Hagen wrote: > [...] > or even better > > local function getpagearray(str,max) > local list = { } > local function add(i) > list[i] = true > end > if max then > utilities.parsers.stepper(str,max,add) > else >

Re: [NTG-context] page ranges in \markpage

2018-07-19 Thread Hans Hagen
On 7/19/2018 9:56 PM, Pablo Rodriguez wrote: On 07/18/2018 09:08 PM, Wolfgang Schuster wrote: [...] Afterwards you can use a loop where you add the markpage commands at the begin and end of the range, below is a simple example but it’s easy to write a better loop with Lua. \setuplayout[page]

Re: [NTG-context] page ranges in \markpage

2018-07-19 Thread Pablo Rodriguez
On 07/18/2018 09:08 PM, Wolfgang Schuster wrote: > > [...] > Afterwards you can use a loop where you add the markpage commands at > the begin and end of the range, below is a simple example but it’s easy > to write a better loop with Lua. > > \setuplayout[page] > \setupinteraction[state=start] >

Re: [NTG-context] page ranges in \markpage

2018-07-18 Thread Pablo Rodriguez
On 07/18/2018 09:08 PM, Wolfgang Schuster wrote: >> Sorry, but how do I apply that with to imposed pages with \insertpages? >> >> I know that \filterpages is there, but I need to have the complete >> document to print only some of the pages. > > You can get the number of pages of the included

Re: [NTG-context] page ranges in \markpage

2018-07-18 Thread Wolfgang Schuster
Pablo Rodriguez 18. Juli 2018 um 18:19 Hans, would it be possible that \markpage could have page ranges as in the following sample? \setuplayout [backspace=0pt, topspace=0pt, width=middle, height=middle, location=middle, header=0pt, footer=0pt]

Re: [NTG-context] page ranges in \markpage

2018-07-18 Thread Pablo Rodriguez
On 07/18/2018 07:40 PM, Wolfgang Schuster wrote: > >> Pablo Rodriguez 18. Juli 2018 um 18:19 >> Hans, >> >> would it be possible that \markpage could have page ranges as in the >> following sample? >> >> \setuplayout >> [backspace=0pt, >> topspace=0pt, >> width=middle, >> height=middle, >>

Re: [NTG-context] page ranges in \markpage

2018-07-18 Thread Wolfgang Schuster
Pablo Rodriguez 18. Juli 2018 um 18:19 Hans, would it be possible that \markpage could have page ranges as in the following sample? \setuplayout [backspace=0pt, topspace=0pt, width=middle, height=middle, location=middle, header=0pt, footer=0pt] \setuplayout[page]