ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Nicola <nvitacolonna@gmail.com>
To: ntg-context@ntg.nl
Subject: Re: "externalfigure" vs. "draw externalfigure" in metafun
Date: Sat, 17 Sep 2011 11:20:51 +0200	[thread overview]
Message-ID: <nvitacolonna-F3664D.11205117092011@news.gmane.org> (raw)
In-Reply-To: <nvitacolonna-9462E1.11114817092011@news.gmane.org>

In article <nvitacolonna-9462E1.11114817092011@news.gmane.org>,
 Nicola <nvitacolonna@gmail.com> wrote:
 
> Does the following workaround work for you?
> 
> def mydraw text t =
>    def f = begingroup t endgroup enddef;
>    if picture f : draw f ; fi
> enddef;
> mydraw externalfigure "abc.png" xyscaled (5cm,8cm);

This may be better:

def mydraw text t =  _mydraw begingroup t endgroup enddef;
def _mydraw primary f = if picture f : draw f ; fi enddef;
mydraw externalfigure "abc.png" xyscaled (5cm,8cm);

Nicola

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2011-09-17  9:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-16 14:00 Mojca Miklavec
2011-09-16 14:13 ` Andreas Schneider
2011-09-17  9:11 ` Nicola
2011-09-17  9:20   ` Nicola [this message]
2011-09-17  9:32   ` Mojca Miklavec
2011-09-17  9:50     ` Hans Hagen
2011-09-17 12:22     ` Nicola

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=nvitacolonna-F3664D.11205117092011@news.gmane.org \
    --to=nvitacolonna@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).