On Mon, 7 Jan 2002 16:30:11 +0000
"Bruce Horrocks" <[EMAIL PROTECTED]> 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

Reply via email to