Q: How to include graphics in RTF page headers using jade 1.2.1 and db133

Subject: Q: How to include graphics in RTF page headers using jade 1.2.1 and db133
From: Richard Kunze <kunze@xxxxxxxx>
Date: Fri, 5 Feb 1999 16:14:40 +0100
I've been trying to modify the modular docbook print stylesheet (v 1.33) to
include a graphical logo in the page headers. I started by defining
page-center-header as

(define (first-page-center-header gi)
    (make external-graphic
      entity-system-id: "logo.eps"
      notation-system-id: "eps"
      scale: 1
      display?: #f)))

which works fine with jade's TeX backend. This doesn't work with the RTF
backend, however: The external graphic is represented in RTF as follows

{\field\flddirty {\*\fldinst INCLUDEPICTURE "logo.eps" }{\fldrslt }}

This works fine inside the page body, but Word (at least Word 97) seems to
ignore it within a page header. Furthermore, even if it did work the included
file still needs to be at hand for displaying, which is inconvenient (to put it
mildly :-) when sending RTF documents around. 

My next try was to check if the RTF backend is used and insert a snippet of RTF
code containing the picture if yes:

(define (first-page-center-header gi)
  (if rtf-backend
      (include-file "logo.rtffrag")
      (make external-graphic
        entity-system-id: "logo.eps"
        notation-system-id: "eps"
        scale: 1
        display?: #f)))

This has the added advantage of embedding the image in the RTF file itself (and
the disadvantage of including it on *every page* which makes for huge RTF
files), but unfortunaltely it doesn't work: The content of "logo.rtffrag" is
included alright, but the backend treats it as text, escaping the RTF special
characters (backslash, curly braces and some others). 

So finally my question: Is there a way to include the contents of a file
*verbatim*, without further processing by the backend, or does anyone know of
any other way to include graphics in page headers using the RTF backend?

Thanks in advance,

	Richard

--
Richard Kunze
mailto:kunze@xxxxxxxx                tel: +49-6103-5853-127 fax: -200
opus 5 interaktive medien gmbh/Frankfurter Str. 151, D-63303 Dreieich


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread