* layer question
@ 2006-01-14 22:15 Henning Hraban Ramm
2006-01-15 12:43 ` layer placement question Henning Hraban Ramm
0 siblings, 1 reply; 9+ messages in thread
From: Henning Hraban Ramm @ 2006-01-14 22:15 UTC (permalink / raw)
Consider this example:
\definelayer[extras]
[width=\paperwidth,
height=\paperheight]
\setlayer [extras] [x=2cm, y=5cm] {something}
\setupbackgrounds[page][background=extras]
This is ok, the placement is relative to the upper left edge of the
paper.
But following the Details manual, I should be able to use
\placelayer[extras]
instead of the background stuff.
But then the placement is relative to the upper left edge of the text
area.
Is this intended?
Grüßlis vom Hraban!
---
http://www.fiee.net/texnique/
http://contextgarden.net
http://www.cacert.org (I'm an assurer)
^ permalink raw reply [flat|nested] 9+ messages in thread
* layer placement question
2006-01-14 22:15 layer question Henning Hraban Ramm
@ 2006-01-15 12:43 ` Henning Hraban Ramm
2006-01-15 18:36 ` Hans Hagen
0 siblings, 1 reply; 9+ messages in thread
From: Henning Hraban Ramm @ 2006-01-15 12:43 UTC (permalink / raw)
Another question, regarding layer placement:
\def\bleed{3mm}
\setvalue{LogoHeight}{20mm}
\setvalue{LogoWidth}{60mm}
\setvalue{LogoHOffset}{130mm}
\definelayer[logolayer]
[x=-\bleed, y=-\bleed,
width=\paperwidth, height=\paperheight]
\setlayerframed[logolayer]
[y=-\bleed, x=\dimexpr(\getvalue{LogoHOffset}+\bleed)]
[height=\dimexpr(\getvalue{LogoHeight}+\bleed),
width=\getvalue{LogoWidth},
frame=off, offset=0mm, align=low,
background=color, backgroundcolor=red]{my logo}
I would expect that the x/y coordinates in \setlayer(framed) relate
to the layer's origin (-3, -3) and thus my logo gets placed at (130,
-3).
But in fact it's placed at (133, -3), i.e. x starts at 0 instead of
-3. Why?
Grüßlis vom Hraban!
---
http://www.fiee.net/texnique/
http://contextgarden.net
http://www.cacert.org (I'm an assurer)
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: layer placement question
2006-01-15 12:43 ` layer placement question Henning Hraban Ramm
@ 2006-01-15 18:36 ` Hans Hagen
2006-01-15 20:36 ` Henning Hraban Ramm
0 siblings, 1 reply; 9+ messages in thread
From: Hans Hagen @ 2006-01-15 18:36 UTC (permalink / raw)
Henning Hraban Ramm wrote:
> Another question, regarding layer placement:
>
> \def\bleed{3mm}
> \setvalue{LogoHeight}{20mm}
> \setvalue{LogoWidth}{60mm}
> \setvalue{LogoHOffset}{130mm}
>
> \definelayer[logolayer]
> [x=-\bleed, y=-\bleed,
> width=\paperwidth, height=\paperheight]
>
> \setlayerframed[logolayer]
> [y=-\bleed, x=\dimexpr(\getvalue{LogoHOffset}+\bleed)]
> [height=\dimexpr(\getvalue{LogoHeight}+\bleed),
> width=\getvalue{LogoWidth},
> frame=off, offset=0mm, align=low,
> background=color, backgroundcolor=red]{my logo}
>
> I would expect that the x/y coordinates in \setlayer(framed) relate
> to the layer's origin (-3, -3) and thus my logo gets placed at (130,
> -3).
> But in fact it's placed at (133, -3), i.e. x starts at 0 instead of
> -3. Why?
x and y are unique for each \setlayer, use hoffset/voffset instead
Hans
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: layer placement question
2006-01-15 18:36 ` Hans Hagen
@ 2006-01-15 20:36 ` Henning Hraban Ramm
2006-01-15 22:39 ` Hans Hagen
0 siblings, 1 reply; 9+ messages in thread
From: Henning Hraban Ramm @ 2006-01-15 20:36 UTC (permalink / raw)
Am 2006-01-15 um 19:36 schrieb Hans Hagen:
>> I would expect that the x/y coordinates in \setlayer(framed)
>> relate to the layer's origin (-3, -3) and thus my logo gets
>> placed at (130, -3).
>> But in fact it's placed at (133, -3), i.e. x starts at 0 instead
>> of -3. Why?
> x and y are unique for each \setlayer, use hoffset/voffset instead
Thank you, I didn't understand that from the docs.
And in fact not even from your statement.
Seems like x/y always use the upper left corner of the paper,
while hoffset/voffset use the upper left corner of the layer.
But if I use \placelayer instead of backgrounds, x/y is relative to
the text area.
Is that intended? (See my mail "layer question".)
Grüßlis vom Hraban!
---
http://www.fiee.net/texnique/
http://contextgarden.net
http://www.cacert.org (I'm an assurer)
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: layer placement question
2006-01-15 20:36 ` Henning Hraban Ramm
@ 2006-01-15 22:39 ` Hans Hagen
0 siblings, 0 replies; 9+ messages in thread
From: Hans Hagen @ 2006-01-15 22:39 UTC (permalink / raw)
Henning Hraban Ramm wrote:
> Am 2006-01-15 um 19:36 schrieb Hans Hagen:
>
>>> I would expect that the x/y coordinates in \setlayer(framed)
>>> relate to the layer's origin (-3, -3) and thus my logo gets placed
>>> at (130, -3).
>>> But in fact it's placed at (133, -3), i.e. x starts at 0 instead
>>> of -3. Why?
>>
>> x and y are unique for each \setlayer, use hoffset/voffset instead
>
> Thank you, I didn't understand that from the docs.
> And in fact not even from your statement.
>
> Seems like x/y always use the upper left corner of the paper,
> while hoffset/voffset use the upper left corner of the layer.
no, it depends on the combination of align and corner (in core-box.tex
you can see presets being defined, so with preset=rightbottom, x/y start
from the rightbottom)
>
> But if I use \placelayer instead of backgrounds, x/y is relative to
> the text area.
> Is that intended? (See my mail "layer question".)
indeed, put it in a \ruledhbox and you will see
(there is \tightlayer and such in order to get different results)
Hans
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Layer Question
2006-09-28 16:30 ` Hans Hagen
@ 2006-09-28 16:45 ` Peter Rolf
0 siblings, 0 replies; 9+ messages in thread
From: Peter Rolf @ 2006-09-28 16:45 UTC (permalink / raw)
Hans Hagen wrote:
> Peter Rolf wrote:
>> Tobias Burnus wrote:
>>
>>> Hello,
>>>
>>> I would like to add a text to a poster, which I load as PDF.
>>>
>>> The following works nice, except that the layer of the PDF is above the
>>> layer "block" thus the text gets overdrawn.
>>>
>>> How can I change that order?
>>>
>>> Tobias
>>>
>>> \setuppapersize[A0,landscape][A0,landscape]
>>> \setupbodyfont[26pt]
>>> \setuplayout[backspace=0cm,width=fit,height=fit,margin=0cm,topspace=0cm,header=0cm,footer=0pt]
>>> \definelayer[block][width=85mm,height=54mm]
>>>
>>> \setupbackgrounds[page][background=block]
>>>
>> ...[background={text,block}]
>>
> {one,two,three,foreground,four,five}
>
> foreground is a predefined one, the current text
It seems I must make some new docs from the tex sources.
Thanks for the info.
Peter
>
>> Greetings, Peter
>>
>>
>>> \starttext
>>> \startstandardmakeup
>>> \combinepages[poster.pdf][nx=1,ny=1]
>>> \setlayer[block][x=10cm,y=10cm]{\copyright 2006}
>>> \stopstandardmakeup
>>> \stoptext
>>>
>>> _______________________________________________
>>> ntg-context mailing list
>>> ntg-context@ntg.nl
>>> http://www.ntg.nl/mailman/listinfo/ntg-context
>>>
>>>
>>>
>> _______________________________________________
>> ntg-context mailing list
>> ntg-context@ntg.nl
>> http://www.ntg.nl/mailman/listinfo/ntg-context
>>
>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Layer Question
2006-09-28 15:58 ` Peter Rolf
@ 2006-09-28 16:30 ` Hans Hagen
2006-09-28 16:45 ` Peter Rolf
0 siblings, 1 reply; 9+ messages in thread
From: Hans Hagen @ 2006-09-28 16:30 UTC (permalink / raw)
Peter Rolf wrote:
> Tobias Burnus wrote:
>
>> Hello,
>>
>> I would like to add a text to a poster, which I load as PDF.
>>
>> The following works nice, except that the layer of the PDF is above the
>> layer "block" thus the text gets overdrawn.
>>
>> How can I change that order?
>>
>> Tobias
>>
>> \setuppapersize[A0,landscape][A0,landscape]
>> \setupbodyfont[26pt]
>> \setuplayout[backspace=0cm,width=fit,height=fit,margin=0cm,topspace=0cm,header=0cm,footer=0pt]
>> \definelayer[block][width=85mm,height=54mm]
>>
>> \setupbackgrounds[page][background=block]
>>
> ...[background={text,block}]
>
{one,two,three,foreground,four,five}
foreground is a predefined one, the current text
> Greetings, Peter
>
>
>> \starttext
>> \startstandardmakeup
>> \combinepages[poster.pdf][nx=1,ny=1]
>> \setlayer[block][x=10cm,y=10cm]{\copyright 2006}
>> \stopstandardmakeup
>> \stoptext
>>
>> _______________________________________________
>> ntg-context mailing list
>> ntg-context@ntg.nl
>> http://www.ntg.nl/mailman/listinfo/ntg-context
>>
>>
>>
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
--
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Layer Question
2006-09-28 15:40 Layer Question Tobias Burnus
@ 2006-09-28 15:58 ` Peter Rolf
2006-09-28 16:30 ` Hans Hagen
0 siblings, 1 reply; 9+ messages in thread
From: Peter Rolf @ 2006-09-28 15:58 UTC (permalink / raw)
Tobias Burnus wrote:
> Hello,
>
> I would like to add a text to a poster, which I load as PDF.
>
> The following works nice, except that the layer of the PDF is above the
> layer "block" thus the text gets overdrawn.
>
> How can I change that order?
>
> Tobias
>
> \setuppapersize[A0,landscape][A0,landscape]
> \setupbodyfont[26pt]
> \setuplayout[backspace=0cm,width=fit,height=fit,margin=0cm,topspace=0cm,header=0cm,footer=0pt]
> \definelayer[block][width=85mm,height=54mm]
>
> \setupbackgrounds[page][background=block]
..[background={text,block}]
Greetings, Peter
>
> \starttext
> \startstandardmakeup
> \combinepages[poster.pdf][nx=1,ny=1]
> \setlayer[block][x=10cm,y=10cm]{\copyright 2006}
> \stopstandardmakeup
> \stoptext
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Layer Question
@ 2006-09-28 15:40 Tobias Burnus
2006-09-28 15:58 ` Peter Rolf
0 siblings, 1 reply; 9+ messages in thread
From: Tobias Burnus @ 2006-09-28 15:40 UTC (permalink / raw)
Hello,
I would like to add a text to a poster, which I load as PDF.
The following works nice, except that the layer of the PDF is above the
layer "block" thus the text gets overdrawn.
How can I change that order?
Tobias
\setuppapersize[A0,landscape][A0,landscape]
\setupbodyfont[26pt]
\setuplayout[backspace=0cm,width=fit,height=fit,margin=0cm,topspace=0cm,header=0cm,footer=0pt]
\definelayer[block][width=85mm,height=54mm]
\setupbackgrounds[page][background=block]
\starttext
\startstandardmakeup
\combinepages[poster.pdf][nx=1,ny=1]
\setlayer[block][x=10cm,y=10cm]{\copyright 2006}
\stopstandardmakeup
\stoptext
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2006-09-28 16:45 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-14 22:15 layer question Henning Hraban Ramm
2006-01-15 12:43 ` layer placement question Henning Hraban Ramm
2006-01-15 18:36 ` Hans Hagen
2006-01-15 20:36 ` Henning Hraban Ramm
2006-01-15 22:39 ` Hans Hagen
2006-09-28 15:40 Layer Question Tobias Burnus
2006-09-28 15:58 ` Peter Rolf
2006-09-28 16:30 ` Hans Hagen
2006-09-28 16:45 ` Peter Rolf
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).