* not able to change paper sizes
@ 2016-02-01 18:38 Pablo Rodriguez
2016-02-03 13:57 ` Hans Hagen
0 siblings, 1 reply; 11+ messages in thread
From: Pablo Rodriguez @ 2016-02-01 18:38 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: not able to change paper sizes
2016-02-01 18:38 not able to change paper sizes Pablo Rodriguez
@ 2016-02-03 13:57 ` Hans Hagen
2016-02-04 16:19 ` Pablo Rodriguez
0 siblings, 1 reply; 11+ messages in thread
From: Hans Hagen @ 2016-02-03 13:57 UTC (permalink / raw)
To: ntg-context
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
-----------------------------------------------------------------
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: not able to change paper sizes
2016-02-03 13:57 ` Hans Hagen
@ 2016-02-04 16:19 ` Pablo Rodriguez
2016-02-04 16:39 ` Wolfgang Schuster
0 siblings, 1 reply; 11+ messages in thread
From: Pablo Rodriguez @ 2016-02-04 16:19 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: not able to change paper sizes
2016-02-04 16:19 ` Pablo Rodriguez
@ 2016-02-04 16:39 ` Wolfgang Schuster
2016-02-04 17:08 ` Pablo Rodriguez
0 siblings, 1 reply; 11+ messages in thread
From: Wolfgang Schuster @ 2016-02-04 16:39 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 664 bytes --]
> 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
[-- Attachment #1.2: Type: text/html, Size: 1723 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: not able to change paper sizes
2016-02-04 16:39 ` Wolfgang Schuster
@ 2016-02-04 17:08 ` Pablo Rodriguez
2016-02-04 18:03 ` Wolfgang Schuster
0 siblings, 1 reply; 11+ messages in thread
From: Pablo Rodriguez @ 2016-02-04 17:08 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: not able to change paper sizes
2016-02-04 17:08 ` Pablo Rodriguez
@ 2016-02-04 18:03 ` Wolfgang Schuster
2016-02-04 18:43 ` Pablo Rodriguez
0 siblings, 1 reply; 11+ messages in thread
From: Wolfgang Schuster @ 2016-02-04 18:03 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 324 bytes --]
> 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
[-- Attachment #1.2: Type: text/html, Size: 1304 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: not able to change paper sizes
2016-02-04 18:03 ` Wolfgang Schuster
@ 2016-02-04 18:43 ` Pablo Rodriguez
2016-02-04 18:54 ` Wolfgang Schuster
0 siblings, 1 reply; 11+ messages in thread
From: Pablo Rodriguez @ 2016-02-04 18:43 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: not able to change paper sizes
2016-02-04 18:43 ` Pablo Rodriguez
@ 2016-02-04 18:54 ` Wolfgang Schuster
2016-02-04 19:10 ` Pablo Rodriguez
0 siblings, 1 reply; 11+ messages in thread
From: Wolfgang Schuster @ 2016-02-04 18:54 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 796 bytes --]
> 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
[-- Attachment #1.2: Type: text/html, Size: 2418 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: not able to change paper sizes
2016-02-04 18:54 ` Wolfgang Schuster
@ 2016-02-04 19:10 ` Pablo Rodriguez
2016-02-04 19:36 ` Wolfgang Schuster
0 siblings, 1 reply; 11+ messages in thread
From: Pablo Rodriguez @ 2016-02-04 19:10 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: not able to change paper sizes
2016-02-04 19:10 ` Pablo Rodriguez
@ 2016-02-04 19:36 ` Wolfgang Schuster
2016-02-04 20:31 ` Pablo Rodriguez
0 siblings, 1 reply; 11+ messages in thread
From: Wolfgang Schuster @ 2016-02-04 19:36 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1149 bytes --]
> 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
[-- Attachment #1.2: Type: text/html, Size: 2377 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: not able to change paper sizes
2016-02-04 19:36 ` Wolfgang Schuster
@ 2016-02-04 20:31 ` Pablo Rodriguez
0 siblings, 0 replies; 11+ messages in thread
From: Pablo Rodriguez @ 2016-02-04 20:31 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2016-02-04 20:31 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-01 18:38 not able to change paper sizes Pablo Rodriguez
2016-02-03 13:57 ` Hans Hagen
2016-02-04 16:19 ` Pablo Rodriguez
2016-02-04 16:39 ` Wolfgang Schuster
2016-02-04 17:08 ` Pablo Rodriguez
2016-02-04 18:03 ` Wolfgang Schuster
2016-02-04 18:43 ` Pablo Rodriguez
2016-02-04 18:54 ` Wolfgang Schuster
2016-02-04 19:10 ` Pablo Rodriguez
2016-02-04 19:36 ` Wolfgang Schuster
2016-02-04 20:31 ` Pablo Rodriguez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).