ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
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 22:26:27 +0100	[thread overview]
Message-ID: <B84AA205-90EC-452E-B882-ED3D803D282C@gmail.com> (raw)
In-Reply-To: <AANLkTinr2HV4Cbbv8eG1RjDum3BydLuXEc_99A5H3uc+@mail.gmail.com>


Am 16.11.2010 um 22:12 schrieb Peter Davis:

> Thanks again!  Now I get output,  But text isn't getting composed inside these boxes.  It's just all output on one line.  I tried a couple of paragraphs, and just saw the the end of one and the beginning of the next one one line.
> 
> Sorry if there's some obvious remedy for this.  I'm still new to ConTeXt.

Here is a complete working and tested example:

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

\setupbackgrounds[page][background=textbox]

\def\starttextbox
   {\dosingleargument\dostarttextbox}

\def\dostarttextbox[#1]%
   {\def\stoptextbox{\setlayerframed[textbox][width=6cm,align=normal,frame=off,#1]{\getbuffer[textbox]}}%
    \startbuffer[textbox][starttextbox][stoptextbox]}

\starttext

\starttextbox[x=2cm,y=4cm]
The Earth, as a habitat for animal life, is in old age and
has a fatal illness. Several, in fact. It would be happening
whether humans had ever evolved or not. But our presence is
like the effect of an old-age patient who smokes many packs
of cigarettes per day – and we humans are the cigarettes.
\stoptextbox

\starttextbox[x=6cm,y=12cm,width=8cm]
Thus, I came to the conclusion that the designer of a new
system must not only be the implementer and first
large-scale user; the designer should also write the first
user manual.

The separation of any of these four components would have
hurt \TeX\ significantly. If I had not participated fully in
all these activities, literally hundreds of improvements
would never have been made, because I would never have
thought of them or perceived why they were important.

But a system cannot be successful if it is too strongly
influenced by a single person. Once the initial design is
complete and fairly robust, the real test begins as people
with many different viewpoints undertake their own
experiments. 
\stoptextbox

\page[empty]

\starttextbox[x=4cm,y=6cm,width=8cm,align={right,nothyphenated},frame=on]
The Earth, as a habitat for animal life, is in old age and
has a fatal illness. Several, in fact. It would be happening
whether humans had ever evolved or not. But our presence is
like the effect of an old-age patient who smokes many packs
of cigarettes per day – and we humans are the cigarettes.
\stoptextbox

\page[empty]

\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	other threads:[~2010-11-16 21:26 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
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 [this message]
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=B84AA205-90EC-452E-B882-ED3D803D282C@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).