ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mojca Miklavec <mojca.miklavec.lists@gmail.com>
Subject: Re: presentations in ConTeXt
Date: Tue, 24 May 2005 19:33:39 +0200	[thread overview]
Message-ID: <6faad9f005052410333139b7f2@mail.gmail.com> (raw)
In-Reply-To: <9EA19B5C-0590-49C8-B397-0DDF02B0E53F@uni-bonn.de>

On 5/23/05, Thomas A. Schmitz <thomas.schmitz@uni-bonn.de> wrote:

> I am still at a loss how to achieve one thing in ConTeXt that was
> pretty easy in Keynote or (shudder) Powerpoint: When I wanted to
> highlight something on a map or a picture, I would just draw a red
> circle around it. What would be the proper way to do this in ConTeXt?
> Adding a layer with a red circle drawn in Metapost, then positioning
> it by trial and error? Or can anyone point to a better solution?

What kind of picture do you have? If you have .jpg/.png/..., you can
get (x,y) position of the pixel where the center of circle should be.

One possibility is to create a new metapost figure and draw the circle
on it using the measured coordinates:

(This circles the blue tulip on
http://contextgarden.net/images/6/65/Kochloewe_c.jpg.)

\setupcolors[state=start]
\starttext
\startuseMPgraphic{CircleBlueTulip}
	% center point
	pair size, c;
	% figure will be 10 cm wide
	scale := 10cm/400;
	
	% center of the blue tulip is on (219,333), image is 400*460
	size := (400,460) scaled scale;
	c := (222,460-330) scaled scale;
	% diameter of the circle should be 50 pixels
	d := 50scale;

	pickup pencircle scaled 2pt;

	externalfigure "Kochloewe_c.jpg" xyscaled size;
	draw fullcircle scaled d shifted c withcolor red;
\stopuseMPgraphic

\useMPgraphic{CircleBlueTulip}

\stoptext

I believe there exists a more straightforward way if you make
uniqueMPgraphic and specify coordinate fractions of the circle to be
drawn, but if you say:

\framed[background=SomeGraphicWithACircle]{\externalfigure[Kochloewe_c][width=10cm]},
the circle (if any) is drawn behind the figure and cannot be used as
such. Unless you specify the figure in a new layer and draw both
layers in the proper order.

In this case it would be fine to have a \framed[...foreground=...] command :)

> And lastly: I have never seen transitions working on OS X (both
> Apple's Preview and Adobe Reader 7.0). Can anybody confirm that they
> got this working on other systems?

They work in Windows XP (I'n not sure if they're also working using
ConTeXt commands). But they are so ugly that you don't want to use
them.

Mojca

  reply	other threads:[~2005-05-24 17:33 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 [this message]
2005-05-24 18:56   ` Vit Zyka
2005-05-24 20:54     ` Mojca Miklavec
2005-06-28 10:58       ` Patrick Gundlach
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=6faad9f005052410333139b7f2@mail.gmail.com \
    --to=mojca.miklavec.lists@gmail.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).