Procházka Lukáš Ing. - Pontex s. r. o. <l...@pontex.cz> writes:

> Would it be possible to provide a small example of such processing an
> arbitrary file?

Yes.


> I can send a sample A2 or A1 PDF, and also a replacing A4, if necessary.

Not necessary, context can produce such files for you.

Example, using positioning macros, that shows also a problem with
vertical offset:

--8<---------------cut here---------------start------------->8---
% Produce A2-example:
\startbuffer[a2]
\setuppapersize[A2]
\setuplayout[page]
\setupbackgrounds[page][background=color, backgroundcolor=blue]
\starttext
\input tufte
\stoptext
\stopbuffer
\savebuffer[a2][a2-page.tex]
\executesystemcommand{context a2-page}

% Produce A4-example:
\startbuffer[a4]
\setuppapersize[A4]
\setuplayout[page]
\starttext
\input tufte
\stoptext
\stopbuffer
\savebuffer[a4][a4-page.tex]
\executesystemcommand{context a4-page}

% Do the job:
\setuppapersize[A2]
\setuplayout[page]
\setuppositioning[state=overlay,
  yoffset=-12pt%%%%%%%%%%%%%%%%%%%%%%% Why is this offset needed???
]
\starttext
\startpositioning
  \position(0,0){\externalfigure[a2-page]}
  \position(0,0){\framed[frame=off, offset=overlay, background=color,
      backgroundcolor=white]{\externalfigure[a4-page]}}
\stoppositioning
\stoptext
--8<---------------cut here---------------end--------------->8---

-- 
Peter Münster

Contact information: http://pmrb.free.fr/contact/
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to