On Friday 22 February 2002 09:22, Arnold Christensen wrote:
>
> Yes, I have hacked the linuxdoc function, (see end of mail, it does not
> change .ps to .png for HTML though).

  That is easy. See the line I modified. You still have to provide the png 
figure, but that shouldn't be a problem.

> I very much like the walthrough, thanks.

  :-)

> Now I can add pictures in my docs, but I think that I need somehow to
> change the docbook style,
> you mentioned something about hacking a stylesheet(s) ??

  The stylesheets that dictate the transformation from docbook to other 
output formats are written in dsssl. They have several parameters that can be 
overrided, both for the print version and for the html version.

  There is a particular costumization of those values to resemble the old 
linuxdoc look. That comes with sgmltools-lite 3.0.x

> --------
> Arnold
>
> src/insets/figinsts.C
> int InsetFig::Linuxdoc(Buffer const *, ostream &os) const
> {
>
>       os << "<figure loc=\"here\">\n<eps file=\"" << fname << "\"";
>       os << ">\n";
>       os << "<img src=\"" << fname << "\">\n";

  Change this line to
        os << "<img src=\"" << RemoveExtension(fname) << ".png\">\n";

>       if (!subcaption.empty()){
>               os << "<caption>";
>               os << subcaption;
>               os <<"</caption>\n";
>       }
>       os << "</figure>\n";
>
>
>       return 0;
> }

-- 
Jos� Ab�lio

Reply via email to