Am 16.11.2010 um 21:06 schrieb Peter Davis:

> 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.

Use layers (untested):

\definelayer[textbox][width=\paperwidth,height=\paperheight]

\setupbackgrounds[page][background=textbox]

\def\starttextbox
  {\dosingleargument\dostarttextbox}

\def\dostarttextbox[#1]%
  {\def\stoptextbox{\setlayerframed[textbox][#1]{\getbuffer[textbox]}}%
   \startbuffer[textbox][starttextbox][stoptextbox]}

\starttext

\starttextbox[x=2cm,y=4cm,width=8cm,frame=off]
some text ...

more text ...
\stoptextbox

\starttextbox[x=6cm,y=12cm,width=8cm,frame=off]
another example ...
\stoptextbox

\stoptext

Wolfgang

___________________________________________________________________________________
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