Dear list, in this sample adapted from the documented code: \definepapersize[main] [A4] [A4] \definepapersize[extra][A4,landscape][A4,landscape] \starttext \setuppapersize[main] Page 1. \page Page 2. \page \setuppapersize[extra] Page 2 \page \setuppapersize[main] Page 3. \page Page 4. \page \adaptpapersize[extra] Page 5. \page Page 6. \page \startTEXpage[height=210mm, width=297mm] Page 6. \stopTEXpage \stoptext It isn’t possible to change the paper size. Only TEXpage does change the paper size. Could anyone confirm the bug? Many thanks for your help, Pablo -- http://www.ousia.tk
On 2/1/2016 7:38 PM, Pablo Rodriguez wrote:
Dear list,
in this sample adapted from the documented code:
\definepapersize[main] [A4] [A4] \definepapersize[extra][A4,landscape][A4,landscape]
\starttext \setuppapersize[main] Page 1. \page Page 2. \page \setuppapersize[extra] Page 2 \page \setuppapersize[main] Page 3. \page Page 4. \page \adaptpapersize[extra] Page 5. \page Page 6. \page \startTEXpage[height=210mm, width=297mm] Page 6. \stopTEXpage \stoptext
It isn’t possible to change the paper size. Only TEXpage does change the paper size.
Could anyone confirm the bug?
more a side effect (synchronizing all related settings can result in recursive calls) i'll add a poor mans sync but normally one will use \setuplayout (with or without arguments) because simply changing the papersize only has no use Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 02/03/2016 02:57 PM, Hans Hagen wrote:
On 2/1/2016 7:38 PM, Pablo Rodriguez wrote:
[...] It isn’t possible to change the paper size. Only TEXpage does change the paper size.
Could anyone confirm the bug?
more a side effect (synchronizing all related settings can result in recursive calls)
i'll add a poor mans sync but normally one will use
\setuplayout (with or without arguments) because simply changing the papersize only has no use
Hans, many thanks for your reply Pablo. I’m afraid that dimensions seem not to be adapted: \definepapersize[main] [A4] [A4] \definepapersize[extra][A4,landscape][A4,landscape] \definelayer[test][x=.5\paperwidth, y=.5\paperheight,state=repeat] \setlayer[test]{abcde} \setupbackgrounds[page][background={test}] \starttext \setuppapersize[main] Page 1. \page \setuppapersize[extra]\setuplayout Page 2 \page \stoptext Many thanks for your help, Pablo -- http://www.ousia.tk
Pablo Rodriguez mailto:oinos@gmx.es 4. Februar 2016 um 17:19
Hans,
many thanks for your reply Pablo.
I’m afraid that dimensions seem not to be adapted:
\definepapersize[main] [A4] [A4] \definepapersize[extra][A4,landscape][A4,landscape]
\definelayer[test][x=.5\paperwidth, y=.5\paperheight,state=repeat] \setlayer[test]{abcde}
\setupbackgrounds[page][background={test}] You have to reset the layer on each page.
\definelayer[test][x=.5\paperwidth, y=.5\paperheight] \startsetups[testlayer] \setlayer[test]{abcde} \stopsetups \setupbackgrounds[page][setups=testlayer,background=test] Wolfgang
On 02/04/2016 05:39 PM, Wolfgang Schuster wrote:
Pablo Rodriguez 4. Februar 2016 um 17:19
I’m afraid that dimensions seem not to be adapted: [...] \startsetups[testlayer] \setlayer[test]{abcde} \stopsetups
\setupbackgrounds[page][setups=testlayer,background=test]
Many thanks for your reply, Wolfgang. My problem now is that I get layouts from the first page in the second page: \definelayer[test1][x=.5\paperwidth, y=.5\paperheight, state=start] \definelayer[test2][x=.5\paperwidth, y=.5\paperheight, state=continue] \startsetups[testlayer] \setlayer[test1]{page1} \setlayer[test2]{page2} \stopsetups \setupbackgrounds[page][setups=testlayer,background={test1, test2}] \starttext \setuppapersize[A4] Page 1. \page \setuppapersize[A4, landscape]\setuplayout Page 2 \page \stoptext How can I avoid this? Many thanks for your help, Pablo -- http://www.ousia.tk
Pablo Rodriguez mailto:oinos@gmx.es 4. Februar 2016 um 18:08
Many thanks for your reply, Wolfgang.
My problem now is that I get layouts from the first page in the second page: Do you want layer “test1” to appear on the second page, if not don’t put it in the setups environment.
Wolfgang
On 02/04/2016 07:03 PM, Wolfgang Schuster wrote:
Pablo Rodriguez mailto:oinos@gmx.es 4. Februar 2016 um 18:08
Many thanks for your reply, Wolfgang.
My problem now is that I get layouts from the first page in the second page: Do you want layer “test1” to appear on the second page, if not don’t put it in the setups environment.
But I get two test2 on page 2: \definelayer[test1][x=.5\paperwidth, y=.5\paperheight, state=start] \setlayer[test1]{page1} \definelayer[test2][x=.5\paperwidth, y=.5\paperheight, state=continue] \startsetups[testlayer] \setlayer[test2]{page2} \stopsetups \setupbackgrounds[page][setups=testlayer,background={test1, test2}] \starttext \setuppapersize[A4] Page 1. \page \setuppapersize[A4, landscape]\setuplayout Page 2 \page \stoptext Many thanks for your help, Pablo -- http://www.ousia.tk
Pablo Rodriguez mailto:oinos@gmx.es 4. Februar 2016 um 19:43
But I get two test2 on page 2:
\definelayer[test1][x=.5\paperwidth, y=.5\paperheight, state=start] \setlayer[test1]{page1} Set the layer content after \starttext or load a font before you set it, otherwise context uses a monospace font as fallback. \definelayer[test2][x=.5\paperwidth, y=.5\paperheight, state=continue] Remove "state=continue". \startsetups[testlayer] \setlayer[test2]{page2} \stopsetups You have to include a check for the first page, possible are
\startsetups[testlayer] \ifnum\rawcountervalue[userpage]=1\else \setlayer[test2]{page2} \fi \stopsetups or \startsetups[testlayer] \doifnot{\rawcountervalue[userpage]}{1}{\setlayer[test2]{page2}} \stopsetups Wolfgang
On 02/04/2016 07:54 PM, Wolfgang Schuster wrote:
Pablo Rodriguez 4. Februar 2016 um 19:43
But I get two test2 on page 2:
\definelayer[test1][x=.5\paperwidth, y=.5\paperheight, state=start] \setlayer[test1]{page1} Set the layer content after \starttext or load a font before you set it, otherwise context uses a monospace font as fallback.
Many thanks for the tip. But I really use foregroundstyle with \setlayerframed.
\definelayer[test2][x=.5\paperwidth, y=.5\paperheight, state=continue] Remove "state=continue". \startsetups[testlayer] \setlayer[test2]{page2} \stopsetups You have to include a check for the first page, possible are
\startsetups[testlayer] \doifnot{\rawcountervalue[userpage]}{1}{\setlayer[test2]{page2}} \stopsetups
Many thanks for the conditional. Now it works perfectly fine. Pablo -- http://www.ousia.tk
Pablo Rodriguez mailto:oinos@gmx.es 4. Februar 2016 um 20:10 On 02/04/2016 07:54 PM, Wolfgang Schuster wrote:
Pablo Rodriguez 4. Februar 2016 um 19:43
But I get two test2 on page 2:
\definelayer[test1][x=.5\paperwidth, y=.5\paperheight, state=start] \setlayer[test1]{page1} Set the layer content after \starttext or load a font before you set it, otherwise context uses a monospace font as fallback.
Many thanks for the tip. But I really use foregroundstyle with \setlayerframed. This doesn’t matter.
Compare %%%% begin example \definelayer[test] \setupbackgrounds[page][background=test] \setlayerframed[test][x=3cm,y=3cm][foregroundstyle=sans]{Layer} \starttext \page[empty] \stoptext %%%% end example with %%%% begin example \definelayer[test] \setupbackgrounds[page][background=test] \setupbodyfont[modern] \setlayerframed[test][x=3cm,y=3cm][foregroundstyle=sans]{Layer} \starttext \page[empty] \stoptext %%%% end example The foregroundstyle setting has no effect in the first example because no font was loaded at this point. Wolfgang
On 02/04/2016 08:36 PM, Wolfgang Schuster wrote:
Pablo Rodriguez 4. Februar 2016 um 20:10 On 02/04/2016 07:54 PM, Wolfgang Schuster wrote:
Set the layer content after \starttext or load a font before you set it, otherwise context uses a monospace font as fallback.
Many thanks for the tip. But I really use foregroundstyle with \setlayerframed. This doesn’t matter. [...] The foregroundstyle setting has no effect in the first example because no font was loaded at this point.
You are right, Wolfgang. The actual document has a \setupbodyfont defined. Many thanks for your help again, Pablo -- http://www.ousia.tk
participants (3)
-
Hans Hagen
-
Pablo Rodriguez
-
Wolfgang Schuster