This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Best Linux toolchain for SGML->PDF



--ET435nAiv4vKWmQH
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Oct 27, 2001 at 07:29:29PM -0400, Tammy Fox wrote:

> > I've also encountered various TeX-related problems, such as pdfTeX not
> > accepting png images with some weird error message (and I haven't found=
 a
> > way to make pdf images, so I'm running "imageless"), "font substitution=
s"
> > that I have no clue about, and formatting reference pages into TeX mess=
es
> > up the linking completely.
> >=20
>=20
> Try used EPS images. I convert my PNGs into EPSs, convert SGML to
> TeX, TeX to DVI, DVI to PS, and finally using ghostscript to convert
> PS to PDF.

On the subject of getting images to work for PDF and for PS from the
same source:

For DocBook SGML and the jade/openjade toolchain, see the solution I
am using for the Selfdocbook:

   <mediaobject>
    <imageobject>
     <imagedata fileref=3D"simple" format=3D"eps" align=3D"center">
    </imageobject>
    <imageobject>
     <imagedata fileref=3D"simple.png" format=3D"png" align=3D"center">
    </imageobject>
   </mediaobject>

The trick is to miss off the extension for 'format=3D"eps"', and use
this DSSSL:

;; TeX backend can go to PS (where EPS is needed)
;; or to PDF (where PNG is needed).  So, just
;; omit the file extension altogether and let
;; tex/pdfjadetex sort it out on its own.
(define (graphic-file filename)
 (let ((ext (file-extension filename)))
  (if (or (equal? 'backend 'tex) ;; Leave off the extension for TeX
          (not filename)
          (not %graphic-default-extension%)
          (member ext %graphic-extensions%))
      filename
      (string-append filename "." %graphic-default-extension%))))

For DocBook XML with PassiveTeX, I am using this although I don't
think it's strictly to the DTD:

   <mediaobject>
    <imageobject>
     <imagedata fileref=3D"simple.pdf" format=3D"pdf" align=3D"center"/>
    </imageobject>
    <imageobject>
     <imagedata fileref=3D"simple.png" format=3D"png" align=3D"center"/>
    </imageobject>
   </mediaobject>

I use fig2dev to create formats from .fig source.

Tim.
*/

--ET435nAiv4vKWmQH
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD4DBQE73CN9yaXy9qA00+cRAmzxAJ40dbahZaeXnPZP0tk7CqIpfBWiYwCXeJV7
jYnQtK43cuhfKclBeIzqzA==
=I8mm
-----END PGP SIGNATURE-----

--ET435nAiv4vKWmQH--


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]