From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Placing boxes anywhere on the page
Date: Tue, 16 Nov 2010 21:22:56 +0100 [thread overview]
Message-ID: <8B3095C1-246E-46D0-B427-34BC5507423F@gmail.com> (raw)
In-Reply-To: <AANLkTike3yONVh_qksnG14Y63C-AOFLxL-x=kW8gAwKX@mail.gmail.com>
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
___________________________________________________________________________________
next prev parent reply other threads:[~2010-11-16 20:22 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-16 20:06 Peter Davis
2010-11-16 20:22 ` Wolfgang Schuster [this message]
2010-11-16 20:32 ` Peter Davis
2010-11-16 20:48 ` Wolfgang Schuster
2010-11-16 21:12 ` Peter Davis
2010-11-16 21:26 ` Wolfgang Schuster
2010-11-16 21:32 ` Peter Davis
2010-11-16 20:41 ` Peter Münster
2010-11-16 21:16 ` Peter Davis
2010-11-17 0:08 ` Peter Münster
2010-11-17 0:07 ` Hans Hagen
2010-11-17 0:59 ` Martin Schröder
2010-11-17 8:25 ` Hans Hagen
2010-11-17 9:21 ` Alan BRASLAU
2010-11-17 9:48 ` Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8B3095C1-246E-46D0-B427-34BC5507423F@gmail.com \
--to=schuster.wolfgang@googlemail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).