From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/3860 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: (newbie) PDF image does not get included properly Date: Fri, 26 Jan 2001 08:53:56 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20010126085356.01885a80@server-1> References: <20010125223527.A2171@wouter.verheijen.nl> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035394571 20762 80.91.224.250 (23 Oct 2002 17:36:11 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:36:11 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Wouter Verheijen In-Reply-To: <20010125223527.A2171@wouter.verheijen.nl> Xref: main.gmane.org gmane.comp.tex.context:3860 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:3860 At 10:35 PM 1/25/01 +0100, you wrote: >Hi, >I am still puzzled about converting images to PDF files, as needed by >context. Say I got a .JPG-image. >There are several programs to convert this, e.g. convert from >ImageMagick. >When I convert directly to a PDF it creates a whole page for one >image. So I convert to EPS. >Then, using texutil --figures --epstopdf, I create the PDF. >The PDF-image looks fine when I show it in xpdf or Acrobat Reader. > >But, when I include run context on a document containing this image >(using \useexternalfigure), it is a black image with some white >contours of the original figure, completely messed up. > >Am I doing something wrong? >Thanks for your help. If you have yourfig.pdf yourfig.png yourfig.jpg and say \externalfigure[yourfig] context will take the pdf. If not there, it will take the png, otherwise the jpg, otherwise search further and/or complain. You can force a format by saying: \externalfigure[yourfig.jpg] Conversion from png / jpg to pdf: texexec --fig=c --pdf yourfig.png will produce you a pdf alternative Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com -------------------------------------------------------------------------