[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: DOCBOOK-APPS: Re: DOCBOOK: Efficiently including images in DocBook
>>>>> "Nik" == Nik Clayton <nik@nothing-going-on.demon.co.uk> writes: Nik> When I'm using the TeX backend to product postscript then I Nik> want it to use EPS. When I'm using the TeX backend to Nik> produce PDF then I want it to use the PNG. I do it like this (actually I use EPDF format with PDF, but the principle is the same): Start the DSSSL driver something like this: <!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [ <!ENTITY % output.print.pdf "IGNORE"> <!ENTITY % output.print.eps "IGNORE"> <!ENTITY % html "IGNORE"> <![%html;[ <!ENTITY % print "IGNORE"> <!ENTITY docbook.dsl SYSTEM "/usr/lib/sgml/docbook/html/docbook.dsl" CDATA dsssl> ]]> <!ENTITY % print "INCLUDE"> <![%print;[ <!ENTITY docbook.dsl SYSTEM "/usr/lib/sgml/docbook/print/docbook.dsl" CDATA dsssl> ]]> ]> <style-sheet> then further down: (define %graphic-extensions% ;; List of graphic filename extensions '("eps" "pdf" "gif" "png")) <![%output.print.pdf;[ (define %graphic-default-extension% "pdf") ;;; just change this to png ]]> <![%output.print.eps;[ (define %graphic-default-extension% "eps") ]]> <![%print;[ ;; customize the print stylesheet here then invoke jade with -i output.print.eps or -i output.print.pdf or -i html or whatever other options you like. -- Colin Paul Adams Preston Lancashire
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC