On Sun, Feb 07 2010, Wolfgang Schuster wrote: >> \def\doPlaceAtPos[#1]#2#3{% >> \getparameters[PAA][dx=0pt, dy=0pt, #1]% >> \setbox\scratchbox\hbox{#3}% >> \setlayer[myBG][% >> x=\the\dimexpr\MPx{#2} - 0.5\wd\scratchbox\relax, >> y=\the\dimexpr\paperheight-\MPy{#2}-\ht\scratchbox\relax, >> dx=\PAAdx, dy=\PAAdy]{#3}} > > \def\doPlaceAtPos[#1]#2% > {\dowithnextbox > {\setlayer > [myBG] > [x=\the\dimexpr\MPx{#2}-\nextboxwd/2\relax, > y=\the\dimexpr\paperheight-\MPy{#2}-\nextboxht\relax, > #1] > {\flushnextbox}} > \normalhbox}
Thank you for this \dowithnextbox command! (I keep \getparameters... because I want to use it for other parameters outside of \setlayer) Cheers, Peter -- 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 ___________________________________________________________________________________