ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Taco Hoekwater <taco@elvenkind.com>
Subject: Re: hanging on missing picture
Date: Sun, 13 Mar 2011 12:52:59 +0100	[thread overview]
Message-ID: <4D7CB01B.8080905@wxs.nl> (raw)
In-Reply-To: <9BC79AA8-23AD-4061-B643-80ADA996469B@elvenkind.com>

On 12-3-2011 2:39, Taco Hoekwater wrote:
>
>
> On 12 mrt. 2011, at 14:23, Hans van der Meer<H.vanderMeer@uva.nl>  wrote:
>
>> Requesting a non-existing picture does not produce a warning message, but makes ConTeXt hang. An abort is the only thing that helps. It would however be nice if a "missing file" warning is given. A minimal example that shows me the hang:
>
> That is not supposed to happen, I think. Normally, you would get a gray box in thr pdf to indicate that the figure was not found.

there should be a \normalexpanded in here:

\def\externalfigurereplacement#1#2#3%
   {\setupcolors
      [\c!state=\v!local]%
    \normalexpanded{\localframed
      [\??ef]
      [\c!width=\figurewidth,
       \c!height=\figureheight,
       \c!background=\v!color,
       \c!backgroundcolor=missingfigurecolor,
       \c!frame=\@@efframe]}% we need to expand this in order to prevent 
a loop
      {\tt\tfxx \nohyphens
         name:  \expanded{\verbatimstring{#1}}\\%
         file:  \expanded{\verbatimstring{#2}}\\%
         state: \expanded{\verbatimstring{#3}}}}


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________


  parent reply	other threads:[~2011-03-13 11:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-12 13:23 Hans van der Meer
2011-03-12 13:39 ` Taco Hoekwater
2011-03-12 14:11   ` Mojca Miklavec
2011-03-13 11:52   ` Hans Hagen [this message]
2011-03-12 14:07 ` Otared Kavian
2011-03-12 14:27   ` Hans van der Meer
2011-03-12 14:56     ` Mojca Miklavec
2011-03-12 15:16     ` Otared Kavian

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=4D7CB01B.8080905@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    --cc=taco@elvenkind.com \
    /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).