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: simple graphics, Metafun vs. ConTeXt
Date: Sun, 25 Mar 2012 09:50:17 +0200	[thread overview]
Message-ID: <3A53A383-4394-4CF2-89C0-561291A0DDE4@googlemail.com> (raw)
In-Reply-To: <4F6E85C0.7000803@googlemail.com>


Am 25.03.2012 um 04:41 schrieb S Barmeier:

> On 03/23/2012 03:11 AM, Hans Hagen wrote:
>> On 22-3-2012 15:09, S Barmeier wrote:
>>> I have leaved through the ConTeXt and MetaFun manuals on the search for
>>> examples of graphics resembling the attached file which I created in
>>> TikZ.
>>> 
>>> I was wanting to switch to something more native to ConTeXt, but haven't
>>> quite found a way of realising it in ConTeXt or MetaFun.
>>> 
>>> Maybe someone would be so kind as to point me to the right section in
>>> the manual.
>>> 
>>> All I want is to define text boxes (of a fixed size) to fill them with a
>>> background colour and (centred, typeset) text. Do I need MetaFun for
>>> that, or should some table/framed text environment in ConTeXt be able to
>>> do that?
>> 
>> this can be done with \bTABLE .. \eTABLE
> 
> This works as expected, thank you Wolfgang and Hans. I am putting these
> tables in the margin, though, and neither stack=yes nor stack=continue
> prevent two of them from overlapping. Is there some casing for the table
> so that they won't overlap? Also, rather than the top, the bottom of the
> table is aligned with the line containing the \inmargin command... but
> maybe this will be fixed by a solution to the overlapping?


You can fix the alignment of the table with the \toplinebox command.

\starttext

\dorecurse{4}
  {\inmargin[stack=continue]{\toplinebox{\bTABLE[height=12mm,width=10mm]\bTR\bTD 1\eTD\bTD 2\eTD\eTR\bTR\bTD 3\eTD\bTD 4\eTD\eTR\eTABLE}}
   \input ward\par}

\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:[~2012-03-25  7:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-22 14:09 S Barmeier
2012-03-22 14:28 ` Wolfgang Schuster
2012-03-22 21:41 ` Hans Hagen
2012-03-25  2:41   ` S Barmeier
2012-03-25  7:50     ` Wolfgang Schuster [this message]

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=3A53A383-4394-4CF2-89C0-561291A0DDE4@googlemail.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).