You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Jeff Turner <je...@apache.org> on 2003/09/20 16:11:54 UTC

PDF section sizes (Re: cvs commit: xml-forrest/src/resources/skins/common/xslt/fo document2fo.xsl)

On Tue, Sep 16, 2003 at 11:12:13PM -0000, cheche@apache.org wrote:
> cheche      2003/09/16 16:12:13
> 
>   Modified:    .        status.xml
>                src/resources/skins/common/xslt/fo document2fo.xsl
>   Log:
>   Added creation of TOC support on PDF files.
>   Improved so it uses value from skinconfig.xml.
>   Improve algorithm to define font size for section/subsection/...
>   Submitted by: Eric Burghard eburghar@free.fr
>
>   Index: document2fo.xsl
>   ===================================================================
>   RCS file: /home/cvs/xml-forrest/src/resources/skins/common/xslt/fo/document2fo.xsl,v
>   retrieving revision 1.16
>   retrieving revision 1.17
>   diff -u -r1.16 -r1.17
>   --- document2fo.xsl	12 Sep 2003 10:25:55 -0000	1.16
>   +++ document2fo.xsl	16 Sep 2003 23:12:13 -0000	1.17
>   @@ -218,14 +223,8 @@
>        <xsl:param name="level">0</xsl:param>
>    
>        <xsl:variable name="size">
>   -      <xsl:choose>
>   -        <xsl:when test="number($level) = 1">
>   -          <xsl:value-of select="14"/>
>   -        </xsl:when>
>   -        <xsl:otherwise>
>   -          <xsl:value-of select="12"/>
>   -        </xsl:otherwise>
>   -      </xsl:choose>
>   +      <!-- 14pt for level 1 12pt for level 2 -->
>   +      <xsl:value-of select="14-number($level)"/>
>        </xsl:variable>
>        
>        <fo:block

This is not an improved algorithm.  This is what we had before, and it
resulted in unreadably small section titles for deeply nested sections,
such as those in site.pdf (aggregated pages).


--Jeff