Taco Hoekwater wrote:
Piotr Kopszak wrote:
That's superb! Certainly worth wikifying, maybe someone better versed in ConTeXt than me cared also to explain what's going on in here.
The first definition simply puts two on a page, using a counter to decide whether it is processing the top one or the bottom one, and using half of the page for each of them.
The second definition also has two per page, but it uses the height of the typeset text to scale the images instead of using a fixed value based on the page dimension. It pdftex's positioning extensions to do so (that is the source the \hpos and \MPy commands). It has to disregard the actual size of the placed graphic to prevent it from interfering, and that is the reason for \ht\scratchbox\strutheight line (consider it a vertical version of \llap).
thanks such samples + explanations are also nice for the practex journal or maps or tugboat or ... Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------