ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Taco Hoekwater <taco@elvenkind.com>
Subject: Re: How to use .eps figure in ConTeXt?
Date: Mon, 23 May 2005 14:40:56 +0200	[thread overview]
Message-ID: <4291CF58.8080809@elvenkind.com> (raw)
In-Reply-To: <BAY12-F200ED88B252BDF6E79BC59A30C0@phx.gbl>


Hi,

texexec's  --pdf switch uses pdfetex to generate a pdf document directly,
and pdftex does not accept images in eps format, only .pdf, .jpg and .png
are supported.

The  error message is slightly misleading, because it actually means:

  "figures: xx.eps.pdf has zero dimensions"

If you want to use your images in pdf, either convert them from eps to
pdf before calling texexec, or use the texexec => dvips => ps2pdf
route to create the pdf document (using ghostscript instead of pdftex).

Side note: it is generally better to use a 'bare' \externalfigure[xx]
instead
of giving an explicit extension. That way, assuming you have xx.eps and
xx.pdf,
both dvi and pdf trajects would work without the need for source changes.

Greetings, Taco

龙 飞 wrote:
> Today I try to insert .eps file in to my presentation. I use 
> \externalfigure[xx.eps] to insert xx.eps. The figure shows correct in 
> the dvi file generated by "texexec --once --texutils xx.tex". However 
> this figure disappears in the pdf file generated by "texexec --pdf 
> xx.tex". The log says "figures: xx.eps has zero dimensions". What is the 
> problem? Is there anything wrong with the .eps file?
> Thanks
> 
> _________________________________________________________________
> 享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

  parent reply	other threads:[~2005-05-23 12:40 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-23 12:29 龙 飞
2005-05-23 12:36 ` Peter
2005-05-23 12:46   ` 龙 飞
2005-05-23 12:59     ` Hans Hagen
2005-05-23 13:39     ` Internationale Orgelweek Vlaardingen
2005-05-23 12:40 ` Taco Hoekwater [this message]
2005-05-23 13:18   ` 龙 飞
2005-05-23 14:06 Idris Samawi Hamid
2005-05-23 14:20 ` Hans Hagen
2005-05-23 17:49   ` Idris Samawi Hamid

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=4291CF58.8080809@elvenkind.com \
    --to=taco@elvenkind.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).