forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric BURGHARD <eburg...@free.fr>
Subject Re: table of contents in pdf
Date Wed, 17 Sep 2003 08:37:46 GMT
Le Mercredi 17 Septembre 2003 01:12, Juan Jose Pablos a écrit :
> Eric BURGHARD wrote:
> > Don't know if this is interresting for someone down here, anyway it is
> > valuable for me. this address two issues (from my point of view) of the
> > document2fo.xsl stylesheet:
> > - generate table of contents
> > - correct font size computation for section/subsection/subsubsection
>
> I just added to CVS, PDF looks nicer thanks to you!
>

no thanks you ;-p

> > Add this somewhere in your skin xslt/fo/document2fo.xsl after the
> > <xsl:import href="../../../common/xslt/fo/document2fo.xsl"/>
>
> Most skins just imported from commons, so I added there.
>
> >     <xsl:template match="body">
> >         <xsl:if test="count(//section) != 0">
>
> I added this instead:
>
>   <xsl:template match="body[count(//section) != 0]">
>
> >         <xsl:value-of select="14-number($level)"/>
> > A+
>
> Yes A+, Clever.
>
>
>
> I added a toc-max-depth variable and a couple of ifs to display same toc
> for html and pdf.
>

That's what i like in open source dev. just give the stuff and it will go its 
way (even a little thing like this patch).

If i had some time, i will try to add pdf links with the toc (i think this can 
done with a saxon docbook extension).

> Cheers,
> cheche

ciao.


Mime
View raw message