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

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
___________________________________________________________________________________

Reply via email to