ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: A question on drawing functions in MetaFun
Date: Fri, 12 Aug 2005 18:10:22 +0200	[thread overview]
Message-ID: <42FCC9EE.7020306@wxs.nl> (raw)
In-Reply-To: <7952DFDC-3E58-4212-8A20-901ECEF0D1F9@ktug.or.kr>

Jin-Hwan Cho wrote:

> On Aug 12, 2005, at 7:15 PM, Vit Zyka wrote:
>
>> \defineframed[Shaped][...=...]
>
>
> Thanks. However what I wanted to know was the definition of \Shaped
> which generates the second figure in p.145 of metafun-p.pdf (the oval
> shape in the second line went to under the first oval).

\startbuffer[def]
\defineframed[Shaped][background=Shape,frame=off,location=low]
\stopbuffer

\getbuffer[def]

We can now put this background shape behind the running text,
for instance with:

\startbuffer
.... some \inframed[background=Shape]{text} with a frame ...
.... some \Shaped{text} with a frame ...
\stopbuffer

\typebuffer

\startlines
\getbuffer
\stoplines

The \type {\Shaped} macro was defined as:

\typebuffer[def]

>>> this last line had no [def] so the wrong buffer was shown; it's indeed defined by \defineframed[Shapes]

Hans 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

  reply	other threads:[~2005-08-12 16:10 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-10 13:55 Jin-Hwan Cho
2005-08-10 23:26 ` Hans Hagen
2005-08-12  8:42   ` Jin-Hwan Cho
2005-08-12 10:15     ` Vit Zyka
2005-08-12 15:06       ` Jin-Hwan Cho
2005-08-12 16:10         ` Hans Hagen [this message]
2005-08-12 17:14           ` Jin-Hwan Cho
2005-08-12 22:00             ` Vit Zyka
2005-08-12 22:33               ` Hans Hagen
2005-08-15 11:56             ` 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=42FCC9EE.7020306@wxs.nl \
    --to=pragma@wxs.nl \
    --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).