ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: ntg-context <ntg-context@ntg.nl>
Subject: Re: Euro Symbol
Date: Tue, 11 Sep 2001 10:49:34 +0200	[thread overview]
Message-ID: <5.1.0.14.1.20010911103946.0303d270@server-1> (raw)
In-Reply-To: <200109101557.RAA05204@sol.cs.uni-dortmund.de>

At 05:57 PM 9/10/2001 +0200, Patrick Gundlach wrote:
>http://levana.de/en/type/euro/euro.tex

nice picture, but you need to fix the boundingbox:

setbounds currentpicture to
   (xpart bottombarleft,ypart o1) --
   (xpart c8, ypart o1) --
   (xpart c8,ypart ulcorner currentpicture) --
   (xpart bottombarleft,ypart ulcorner currentpicture)-- cycle ;

if show_labels:
   draw boundingbox currentpicture withcolor red ;
fi ;

the right bbline is wrong, since you need an extra point between c2 and c5 
which will replace the xpart c8.

it would make a nice example for the metafun manual [explore a couple of 
alternatives and so].

How about the following addition:

\startuniqueMPgraphic{euro}{height}
   \includeMPgraphic{euro1} ;
   currentpicture := currentpicture ysized \MPvar{height} ;
\stopuniqueMPgraphic

\definesymbol[euro][\uniqueMPgraphic{euro}{height=1.5ex}]

\symbol[euro] \tfd \symbol[euro]

that way you get the euro scaled proportionally to the running text

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


  parent reply	other threads:[~2001-09-11  8:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Your message of "Mon, 10 Sep 2001 13:13:15 +0200." <5.1.0.14.1.20010910131159.025aa780@server-1>
2001-09-10 15:57 ` Patrick Gundlach
2001-09-10 16:36   ` Hans Hagen
2001-09-10 20:19   ` Frans Goddijn
2001-09-11  8:49   ` Hans Hagen [this message]
2001-09-11 11:44 Patrick Gundlach
  -- strict thread matches above, loose matches on Subject: below --
2001-09-09 18:51 Patrick Gundlach
2001-09-10  7:33 ` Eckhart Guthöhrlein
2001-09-10 11:13 ` Hans Hagen
1998-08-31  9:58 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=5.1.0.14.1.20010911103946.0303d270@server-1 \
    --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).