On 16-11-2010 9:41, Peter Münster wrote:
On Tue, Nov 16 2010, Peter Davis wrote:

Is there a way to place a box at some specified x and y position on the
page, and then typeset one or more paragraphs of text into the box?  I guess
I'm thinking of something like LaTeX's minipage, but with the ability to
specify absolute coordinates, rather than just position relative to the
current baseline.

Layers or overlays are certainly the right method. But there is also the
\position macro:

\setupframed[foregroundstyle=\bfc]
\setuppositioning[state=overlay, unit=cm, xoffset=0.5\textwidth,
   yoffset=0.5\textheight]
\starttext
\startpositioning
   \position(0,0){\framed{0,0}}
   \position(-5,-5){\framed{-5,-5}}
   \position(-5,5){\framed{-5,5}}
   \position(5,-5){\framed{5,-5}}
   \position(5,5){\framed{5,5}}
\stoppositioning
\input tufte
\input tufte
\input tufte
\input tufte
\input tufte
\stoptext

So that is still used? (If so, I should look into optimizing and cleanup as it's real old code).

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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