Am 07.06.2013 10:06, schrieb Procházka Lukáš Ing. - Pontex s. r. o.:
Hello,
On Fri, 07 Jun 2013 09:27:14 +0200, Hans Hagen
wrote: On 6/7/2013 9:07 AM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
The working code is:
---- \definelayer [Logo] [location={left,bottom}, x=\paperwidth, y=0mm, hoffset=-5mm, voffset=5mm, ]
\setlayer [Logo] {\framed[width=4cm,height=1cm]{LOGO}}
\setupbackgrounds[page][background=Logo]
\starttext \input knuth \stoptext ----
see end of pack-box.mkiv for relationship between corner and location; it has to do with matching reference points of content and position on layer
Thanks for the trial to hint me - I'm no smarter from that .mkiv source.
The layer is divided into a 2x2 matrix of squares, where 'x' is the center. This gets you a total of 3x3=9 different corners. o---o---o | | | o---x---o | | | o---o---o Now you choose one 'corner' (the reference point) for the placement. The placement is done in relation to this point. The chosen 'corner' c is our new 'center point' (only for placement) now. With 'location' you define, where (in relation to 'corner') the content is placed. Again you have nine different corners to choose from. An example to make this clear. 'corner={top,right}, location={bottom,right}' will place content in the area L (outside the original layer). Think about the 'corner' c as a magnetic grid point, where the content snaps to. The 'location' l defines, from which direction we approach the point c. x = layer center point c = corner 'top,right', d = location 'bottom right', L = location (area) o---o---o | | | ----o---c---o | | | L | ----x---o---d | | | --------- I hope I haven't mixed things up. Feel free to correct this and to wikify the final version. Peter
You just inspired me so the code bellow works, too, and "corner=" and "location=" are more meaningful in this version:
---- \definelayer [Logo] [width=\paperwidth, corner={right,top}, location={left,bottom}, hoffset=5mm, voffset=5mm, state=repeat, ] ----
Best regards,
Lukas