Re: [NTG-context] How to display the pages of a particular section in another PDF?

2022-12-05 Thread Hans Hagen via ntg-context
application, so what I can add is a simple helper that returns the first and last page of a section \dostepwiserecurse {\firstsectionpage[crap][chapter:3]} {\lastsectionpage[crap][chapter:3]} {1} { \startpagemakeup \externalfigure[crap.pdf][page=#1] \stoppagemakeup

Re: [NTG-context] How to display the pages of a particular section in another PDF?

2022-12-05 Thread Hans Hagen via ntg-context
ore inpiut and discussion for that \starttexdefinition DoWithSection #1#2 \startpagemakeup \externalfigure[#1.pdf][page=#2] \stoppagemakeup \stoptexdefinition \starttexdefinition LoadSectionsA #1#2 \ctxlua{document.loadsection("#1","#2")} \doifnot{\cldcontext{do

Re: [NTG-context] startTEXpage on A4

2022-10-09 Thread Hans Hagen via ntg-context
ppapersize [label] [A4] \setuplayout [page] \setuppaper [nx=3, ny=10, dx=1mm, dy=1mm] \setuplayout [horoffset=50mm, veroffset=10mm] \setuparranging [XY] \setupbackgrounds [page] [frame=on] \starttext \dorecurse{56} {\startpagemakeup \midalign

Re: [NTG-context] upload

2021-10-22 Thread Hans Hagen via ntg-context
=90] {\externalfigure[A3page.pdf][page=1,width=\textheight]}\page \rotate[rotation=270]{\externalfigure[A3page.pdf][page=2,width=\textheight]}\page \stoptext so, you need to wrap it, like \startpagemakeup \rotate[rotation=90] {\externalfigure[A3page.pdf][page=1,width=\textheight

Re: [NTG-context] TEXpage breaks \setupinteractionscreen in LMTX

2021-02-09 Thread Hans Hagen
is \startpagemakeup \stoppagemakeup Sorry, Hans, the original sample was different, but I removed the offset option in order to make it smaller: \setupinteractionscreen[option=max] \starttext \startTEXpage[offset=1em] \ConTeXt \stopTEXpage \stoptext I hope it is clearer now

Re: [NTG-context] TEXpage breaks \setupinteractionscreen in LMTX

2021-02-09 Thread Pablo Rodriguez
On 2/8/21 11:01 PM, Hans Hagen wrote: >> [...] >> LMTX doesn’t include full page. MkIV compiles it fine. >> >> If I remove the TEXpage, LMTX includes the full page mode. > LMTX is more accurate as \null has zero dimensions an dit's a fitting page > > what

Re: [NTG-context] How to make page break & headers in XY arrangements?

2020-03-30 Thread Hans Hagen
[location=middle] \setuparranging [XY] \showframe \setupbodyfont [8pt] \def\somecontent#1{\startpagemakeup #1 \stoppagemakeup} \starttext \installpagebreakmethod{mojca} {\page \scratchcounterone \numexpr\rootlayouttargetparameter{nx}*\rootlayouttargetparameter{ny}\relax

Re: [NTG-context] How to make page break & headers in XY arrangements?

2020-03-30 Thread Hans Hagen
[location=middle] \setuparranging [XY] \showframe \setupbodyfont [8pt] \def\somecontent#1{\startpagemakeup #1 \stoppagemakeup} \starttext % I want to mark the page with label numbers \setupheadertexts[1][1][1][1]% \dorecurse{50}{\somecontent{Label ONE}} % I want an actual page break here

[NTG-context] How to make page break & headers in XY arrangements?

2020-03-30 Thread Mojca Miklavec
\setupbodyfont [8pt] \def\somecontent#1{\startpagemakeup #1 \stoppagemakeup} \starttext % I want to mark the page with label numbers \setupheadertexts[1][1][1][1]% \dorecurse{50}{\somecontent{Label ONE}} % I want an actual page break here \page \setupheadertexts[2][2][2][2]% \dorecurse{70

Re: [NTG-context] hiding page number in postponed makeup page

2017-09-23 Thread Henning Hraban Ramm
Am 2017-09-21 um 22:20 schrieb Hans Hagen <pra...@wxs.nl>: > postponed flushing happens inside the output routine and therefore has some > limitations (other solutions would also have such limitations) > > anyway, i do some extra checking now .. this was my test > \star

Re: [NTG-context] hiding page number in postponed makeup page

2017-09-21 Thread Hans Hagen
would also have such limitations) anyway, i do some extra checking now .. this was my test \starttext \startbuffer[makeup] \startpagemakeup[pagestate=start,page=no] \color[red]{ \vfill \dorecurse{3}{ \samplefile{klein} \vfill

Re: [NTG-context] \start pagefigure not working as expected

2017-05-25 Thread cryo shock
Your suggestion works fine for me. I tried \filterpages too, as it is mentioned on the wiki as well, but the pages then got scaled to the \setuplayout definitions. I didn't think about using it within the \startpagemakeup environment though. So thanks Pablo. P.S.: I'd still love to know why

Re: [NTG-context] \start pagefigure not working as expected

2017-05-25 Thread Pablo Rodriguez
; capable of doing the job, I'd be glad to use CTX instead. > > On the wiki I found a code snippet that sounds promising, as I don't > want headers, page numbers etc. on the two merged pages: Hi Sebastian, how about the following code (I don’t remember when, how or where I found it)? \sta

Re: [NTG-context] generate multiple files from one source

2017-02-19 Thread Pablo Rodriguez
Rodriguez > <ntg-context-boun...@ntg.nl za uživatele oi...@gmx.es> napsal(a): > > Dear list, > > I have the following sample: > > \setuppapersize[A8, landscape] > \starttext > \dorecurse{10}{ > \startpagemakeup[align=cent

Re: [NTG-context] generate multiple files from one source

2017-02-19 Thread Jaroslav Hajtmar
\dorecurse{10}{ \startpagemakeup[align=center] This is invoice number \recurselevel. Customer name from CSV file. Other data from the same CSV file. \stoppagemakeup} \stoptext How can I get new PDF documents with a one invo

Re: [NTG-context] generate multiple files from one source

2017-02-19 Thread Hans Hagen
On 2/18/2017 11:27 PM, Pablo Rodriguez wrote: Dear list, I have the following sample: \setuppapersize[A8, landscape] \starttext \dorecurse{10}{ \startpagemakeup[align=center] This is invoice number \recurselevel. Customer name from CSV file. Other data from

Re: [NTG-context] generate multiple files from one source

2017-02-18 Thread Henning Hraban Ramm
Am 2017-02-18 um 23:27 schrieb Pablo Rodriguez <oi...@gmx.es>: > Dear list, > > I have the following sample: > >\setuppapersize[A8, landscape] >\starttext >\dorecurse{10}{ >\startpagemakeup[align=center] >This is invoice number \recurseleve

[NTG-context] generate multiple files from one source

2017-02-18 Thread Pablo Rodriguez
Dear list, I have the following sample: \setuppapersize[A8, landscape] \starttext \dorecurse{10}{ \startpagemakeup[align=center] This is invoice number \recurselevel. Customer name from CSV file. Other data from the same CSV file. \stoppagemakeup} \stoptext

[NTG-context] "marking=one" with marks on more than the first page

2016-10-07 Thread Pablo Rodriguez
Hans, the following sample puts the cut marks on each page: \showframe \setuppapersize[A5][A4] \setuplayout [marking=one, location=middle] \starttext \ctxlua{for i=1,10 do tex.print("\\startpagemakeup\\filterpages[setup-en.pdf][" .. i .. &q

[NTG-context] not understanding basic imposition

2016-10-06 Thread Pablo Rodriguez
, footer=0pt] \starttext \startpagemakeup \filterpages[setup-en.pdf][1][width=0cm] \stoppagemakeup \filterpages[setup-en.pdf][1][width=0cm] \stoptext Could anyone explain me why this happens and how to get the result from first page (no reduction) without the makeup? Many

Re: [NTG-context] Pagemakeup? Was Re: Layers + simplefonts: Using different font in layers?

2011-12-12 Thread Wolfgang Schuster
there once I get the first thing working. \definelayer[cover] \starttext \startpagemakeup[style={\switchtobodyfont[ss,24pt]}] \setlayer[cover][x=3cm,y=4cm]{Place} \setlayer[cover][x=8cm,y=12cm]{your} \setlayer[cover][x=5cm,y=17cm]{text!} \placelayer[cover] \stoppagemakeup \input knuth \stoptext

Re: [NTG-context] Help on centering text inside the standard makeup

2011-11-11 Thread Andreas Harder
\stoptext % Hi, there is also a page makeup \startpagemakeup[align=center] {\bfc This should be the long title} \stoppagemakeup Regards Andreas ___ If your question is of interest to others

Re: [NTG-context] Help on centering text inside the standard makeup

2011-11-11 Thread Marco Pessotto
be the long title \stopstandardmakeup \input tufte \stoptext % Hi, there is also a page makeup \startpagemakeup[align=center] {\bfc This should be the long title} \stoppagemakeup Regards Andreas That did the trick! I've updated the wiki at http://wiki.contextgarden.net