From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/6485 Path: main.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: Problem with mis-identified .png graphics files when generating DVI Date: Tue, 8 Jan 2002 10:08:21 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <20020108100821.0f0ccc97.taco@elvenkind.com> References: <5.1.0.14.1.20020107152506.05150f60@server-1> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035397013 11032 80.91.224.250 (23 Oct 2002 18:16:53 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:16:53 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: "Bruce Horrocks" In-Reply-To: Xref: main.gmane.org gmane.comp.tex.context:6485 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:6485 On Mon, 7 Jan 2002 16:30:11 +0000 "Bruce Horrocks" wrote: > Okay, so next question. Where do I start looking to make the appropriate > change? As I pointed out in my first post, PDF output identifies the > .png extension properly but DVI doesn't. However, looking through the > ConTeXt source, I can only find *one* reference to determining the type > and size of graphics files. This is in core-fig.tex. I must have missed > something because I don't see how this differs depending upon driver. > Any suggestions would be greatly appreciated. Have a look at the spec-XXX.tex files, these define the driver macros. Look for things like \definefileinsertion. Adding PNG may not work straight away. Two main problems to solve: - The size of the image has to be available to the macros. I am not sure whether pdftex accepts png images in DVI mode. Anyway, finding out the size is doable (using an external program if need be). - The other problem is the precise syntax that the DVI driver needs. Just saying 'it supports' doesn't help. TeX \specials are basically strings, and you need to know what precisely the viewer expects to find in this string. If both of these have been done, the macro for inclusion itself is fairly trivial. -- groeten, Taco