Am 12.01.2011 um 09:39 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:
Hello,
thanks to all for the answers, Peter's solution is closest to that I need. My code now is:
--- \setuppapersize[A1,landscape] \setuplayout[page] \setuppositioning [state=overlay, yoffset=-12pt % Why? ]
\starttext \startpositioning \position(0,0){\rotate[rotation=90]{\externalfigure[TvNK]}} \position(630mm,297mm){\framed[frame=off,offset=overlay,background=color,backgroundcolor=white] {\externalfigure[_R]}} \stoppositioning \stoptext ---
I'd still have two questions:
- Is it possible to determine the size of the PDF being inserted (in my case the "TvNK", which is A1)? I'd need to know this because depending on this, I'd need to \setuppapersize[<size-of-PDF-to-be-inserted>,landscape].
- Is it possible to "move" the origin for \positioning to the right bottom corner? It's not "fatal" to know it, as having the PDF size known, I can evaluate 630mm = width.of.A1 - width.of.A4 and 297 = height.of.A1 - height.of.A4; I'm just curious.
\define[2]\Replacement {\startTEXpage[background={foreground,replacement}]% \layeredtext [corner={right,bottom},location={left,top}] [background=color,backgroundcolor=white,offset=0pt] {\externalfigure[#2]} {\externalfigure[#1]} \stopTEXpage} \useexternalfigure[big] [hacker][scale=3000] \useexternalfigure[small][cow] \starttext \Replacement{big}{small} \stoptext \layeredtext is described in the details manuals. Wolfgang