forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Turner <je...@apache.org>
Subject PDF section sizes (Re: cvs commit: xml-forrest/src/resources/skins/common/xslt/fo document2fo.xsl)
Date Sat, 20 Sep 2003 14:11:54 GMT
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

Mime
View raw message