From: "Patrick Gundlach" <patrick@gundla.ch>
Subject: Re: presentations in ConTeXt
Date: 28 Jun 2005 12:58:14 +0200 [thread overview]
Message-ID: <m2ekam3fzt.fsf@levana.de> (raw)
In-Reply-To: <6faad9f005052413547f1e774f@mail.gmail.com> (Mojca Miklavec's message of "Tue, 24 May 2005 22:54:46 +0200")
Some time ago, Mojca Miklavec <mojca.miklavec.lists@gmail.com> wrote:
> Uau! Thanks a lot for a very nice hint. So you can make something like that:
>
--------------------------------------------------
\setupcolors[state=start]
\starttext
\setupMPvariables[CircleSomething][dimension={(100,100)},center={(50,50)},r=10]
\startuseMPgraphic{CircleSomething}
pair dimension, center;
% TODO: this also has to be passed as parameter!!!
% now it stands for: width=10cm
scale := 10cm/(xpart \MPvar{dimension});
picture bboxpicture;
dimension := \MPvar{dimension} scaled scale;
center := \MPvar{center} scaled scale;
r := \MPvar{r}*scale;
pickup pencircle scaled 2pt;
% proper bounding box
fill unitsquare xyscaled dimension;
bboxpicture := currentpicture;
currentpicture := nullpicture;
draw fullcircle scaled (2*r) shifted center withcolor red;
setbounds currentpicture to boundingbox bboxpicture;
\stopuseMPgraphic
\defineoverlay[CircleBlueTulip][\uniqueMPgraphic{CircleSomething}{dimension={(400,460)},center={(222,460-330)},r=25}]
\defineoverlay[CircleRedTulip][\useMPgraphic{CircleSomething}{dimension={(400,460)},center={(148,460-330)},r=25}]
\framed[background={foreground,CircleBlueTulip},offset=0pt,strut=no]{\externalfigure[Kochloewe_c][width=10cm]}
\framed[background={foreground,CircleRedTulip},offset=0pt,strut=no]{\externalfigure[Kochloewe_c][width=10cm]}
\stoptext
--------------------------------------------------
So, do you get any real output (besides the image)? I cannot see any
circles in the pdf.
ConTeXt ver: 2005.06.07 fmt: 2005.6.7 int: english mes: english
Patrick
--
ConTeXt wiki and more: http://contextgarden.net
next prev parent reply other threads:[~2005-06-28 10:58 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-23 17:52 Thomas A. Schmitz
2005-05-24 17:33 ` Mojca Miklavec
2005-05-24 18:56 ` Vit Zyka
2005-05-24 20:54 ` Mojca Miklavec
2005-06-28 10:58 ` Patrick Gundlach [this message]
2005-06-28 14:37 ` Mojca Miklavec
2005-06-28 15:13 ` Patrick Gundlach
2005-06-28 15:26 ` Hans Hagen
2005-06-28 15:43 ` Willi Egger
2005-06-28 17:25 ` Mojca Miklavec
2005-06-29 12:12 ` garden art (was: presentations in ConTeXt) Henning Hraban Ramm
2005-06-28 15:47 ` Re: presentations in ConTeXt Willi Egger
2005-07-14 9:30 ` Thomas A. Schmitz
2005-07-15 19:46 ` Mojca Miklavec
2005-07-17 19:54 ` Thomas A. Schmitz
2005-07-17 21:10 ` Hans Hagen
2005-07-19 15:18 ` Thomas A. Schmitz
2005-07-19 16:18 ` ConTeXt to XML? Elena Fraboschi
2005-07-19 19:57 ` Brooks Moses
2005-07-19 20:40 ` Hans Hagen
2005-07-19 23:26 ` Brooks Moses
2005-07-20 7:02 ` Help with interaction luigi.scarso
2005-07-20 11:56 ` luigi.scarso
2005-07-20 9:25 ` ConTeXt to XML? Hans Hagen
2005-07-19 20:57 ` Hans Hagen
2005-07-19 21:02 ` Hans Hagen
2005-07-19 18:23 ` Re: presentations in ConTeXt Hans Hagen
2005-07-19 20:10 ` 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=m2ekam3fzt.fsf@levana.de \
--to=patrick@gundla.ch \
--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).