From: "Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: frames in ConTeXt and metafun
Date: Thu, 12 Jul 2007 08:56:14 +0200 [thread overview]
Message-ID: <5FEB6878-A8F6-4FD6-BA44-98FE6D575CE7@uni-bonn.de> (raw)
This is a very small cosmetic problem, but it bugs me: I'm preparing
a background for a presentation, and I want a frame with a
transparent color to appear on every slide, so I define an overlay
and use metapost. I also want to frame some text elements, so I use a
\framed. The problem is that in the \framed, the lines of the frame
overlap at the edges, so with a transparent color, the corners are
slightly darker. The minimal example below shows the problem. Any
solution? Is it possible to have the frame around \framed drawn by
metapost?
Thanks!
Thomas
%%%%% MINIMAL EXAMPLE %%%%%%
\setupcolors[state=start]
\definecolor [MyFrameColor] [b=.55, t=.5, a=1]
\starttext
\startuseMPgraphic{fancyframe}
draw unitsquare
xyscaled(8cm,8cm)
withpen pencircle scaled 4pt
withcolor \MPcolor{MyFrameColor} ;
\stopuseMPgraphic
\useMPgraphic{fancyframe}
\framed
[rulethickness=4pt,framecolor=MyFrameColor,height=8cm,width=8cm]{\strut}
\stoptext
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2007-07-12 6:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-12 6:56 Thomas A. Schmitz [this message]
2007-07-12 8:04 ` Peter Rolf
2007-07-12 8:47 ` Thomas A. Schmitz
2007-07-12 18:51 ` Peter Münster
2007-07-13 9:28 Thomas A. Schmitz
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=5FEB6878-A8F6-4FD6-BA44-98FE6D575CE7@uni-bonn.de \
--to=thomas.schmitz@uni-bonn.de \
--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).