On Tue, Nov 16, 2010 at 3:22 PM, Wolfgang Schuster < schuster.wolfgang@googlemail.com> wrote: > > 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 > Thanks, Worfgang! I just tried this. I don't see any errors, but I don't see any PDF either. Here's the log file: sorters > setting language 'en' (layertest.tex jobcontrol > resuming randomizer with 0.72399060029908 publications : loading formatting style from bxml-apa (C:/context/tex/texmf-context/tex/context/base/bxml-apa.mkiv) ConTeXt ver: 2010.07.30 11:35 MKIV fmt: 2010.11.9 int: english/english system : cont-new loaded (C:/context/tex/texmf-context/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (C:/context/tex/texmf-context/tex/context/base/cont-new.mkiv)) system : cont-fil loaded (C:/context/tex/texmf-context/tex/context/base/cont-fil.tex loading : ConTeXt File Synonyms ) system : cont-sys.rme loaded (C:/context/tex/texmf-context/tex/context/user/cont-sys.rme (C:/context/tex/texmf-context/tex/context/base/type-def.mkiv) (C:/context/tex/texmf-context/tex/context/base/type-lua.mkiv) (C:/context/tex/texmf-context/tex/context/base/type-siz.mkiv) (C:/context/tex/texmf-context/tex/context/base/type-otf.mkiv)) system : layertest.top loaded % % begin of optionfile % % % runtime options files (command line driven) % \unprotect % % feedback and basic job control % % handy for special styles % \startluacode % document = document or { } % document.arguments={ % } % document.files={ % "layertest.tex", % } % \stopluacode % % process info % \setupsystem[inputfile=layertest.tex] % \setupsystem[\c!n=1,\c!m=1] % % modes % % options (not that important) % \startsetups *runtime:options % \setupoutput[pdftex] % \stopsetups % % styles and modules % \startsetups *runtime:modules % \stopsetups % % done % \protect \endinput % % end of optionfile % (layertest.top) fonts : preloading latin modern fonts {C:/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{C:/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{C:/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} bodyfont : 12pt rm is loaded language : language en is active systems : begin file layertest.tex at line 12 systems : end file layertest.tex at line 24 system : cont-err loaded (C:/context/tex/texmf-context/tex/context/base/cont-err.tex systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead ) ) mkiv lua stats : used config file - C:/context/tex/texmf/web2c/texmfcnf.lua mkiv lua stats : used cache path - C:/context/tex/texmf-cache/luatex-cache/context/f53042fa2e1c106bc7e3383ec8c3a00c mkiv lua stats : input load time - 0.026 seconds mkiv lua stats : stored bytecode data - 231 modules, 54 tables, 285 chunks mkiv lua stats : node list callback tasks - 6 unique task lists, 4 instances (re)created, 316 calls mkiv lua stats : cleaned up reserved nodes - 33 nodes, 10 lists of 411 mkiv lua stats : node memory usage - 20 glue_spec mkiv lua stats : used backend - pdf (backend for directly generating pdf output) mkiv lua stats : loaded patterns - en::2 mkiv lua stats : callbacks - direct: 425, indirect: 4447, total: 4872 mkiv lua stats : result saved in file - layertest.pdf mkiv lua stats : loaded fonts - 33 files: stmary10.afm lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf lmroman12-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy9.tfm rm-lmr12.tfm rm-lmr7.tfm rm-lmr9.tfm mkiv lua stats : fonts load time - 0.262 seconds mkiv lua stats : luatex banner - this is luatex, version beta-0.63.0-2010090921 (web2c 2010) (rev 3873) mkiv lua stats : control sequences - 30982 of 165536 mkiv lua stats : current memory usage - 33 MB (ctx: 34 MB) mkiv lua stats : runtime - 0.679 seconds