This is the mail archive of the docbook-tools-discuss@sourceware.cygnus.com mailing list for the docbook-tools project.


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

Re: images in Docbook with Red Hat 6.2


Hi, Eric:

    Sorry for my ignorance, but I am new to docbook ;-)

    What you use (&gif-eps;) is standard? I mean, can I use directly? Or
does it depend on some "macro" defined before? Sorry again, but I don't
know how to define "macros" in SGML :-( .

    Thanks in advance.
    diego.

Eric Bischoff wrote:

> Sam Roberts wrote:
> >
> >
> > (define (graphic-file filename)
> >     (let ((ext (file-extension filename)))
> >         (if (or tex-backend   ;; TeX can work this out itself
> >             (not filename)
> >             (not %graphic-default-extension%)
> >             (member ext %graphic-extensions%))
> >         filename
> >         (string-append filename "." %graphic-default-extension%))))
> >
>
> Such code trying to guess the graphic extension from within
> the stylesheet is a good idea. Anyway, it will always face
> the same problem : for publishing in HTML, for example, how
> to decide whether to add JPEG, PNG or GIF ? It's not easy.
>
> I'm currently using the following approach:
>
>         <graphic fileref="foo.&gif-eps;">
>
> stands for:
>         "use foo.gif when making HTML files, foo.eps when printing
> to TeX."
>
> You can do create on the same model other entities like
> &jpg-eps;. It's not perfect, but it's simple and works.
>
> --
>  Éric Bischoff   -   mailto:ebisch@cybercable.tm.fr
>  __________________________________________________
>                                            \^o~_.
>      .~.                           ______  /( __ )
>      /V\         Toys story         \__  \/  (  V
>    //   \\                            \__| (__=v
>   /(     )\                        |\___/     )
>     ^^-^^                           \_____(  )
>      Tux                        Konqui     \__=v
>  __________________________________________________

--
Diego Sevilla Ruiz -- http://www.ditec.um.es/~dsevilla/
Departamento de Ingeniería y Tecnología de Computadores
Facultad de Informática. Universidad de Murcia
Campus de Espinardo - 30080 Murcia (SPAIN)
Tel.: +34-968-367570
E-mail: dsevilla@ditec.um.es

$_="\\l/) (>".     "_'\n<";@@=        /.|\n/g;$_=
"\@".     "\007f".   "DDq".           "DD5".   "\204".
"\@".     "DT4CE".    "D54E".         "DD".    "\244".
"\021".   "dBDTC".     "\010DD".      "\200\$FD\024".
"GDAG".   "DAGDT".       "CqI";$c     =0;$p    =5;for$q
(/./g)    {$q=              ord$q;    for(a,   b){$z[$c]
=$@[$p+=($q&15)    -4];$q>>=4;$c+=33  ;$c>98   &&($c-=98);}};print@z;




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