Ignore:
Timestamp:
08/12/2004 09:55:42 PM (20 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
6.0
Children:
78db8f55
Parents:
96e8f71
Message:

PDF output: Changed body font size to 12pt and master font size to 10pt.
Adapted the vertical blank space to the new font sizes.
Added code to split URLs.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/testing/BOOK@4033 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stylesheets/pdf/lfs-mixed.xsl

    r96e8f71 red5f52d  
    44                xmlns:fo="http://www.w3.org/1999/XSL/Format"
    55                version="1.0">
     6
     7    <!-- Split URLs -->
     8  <xsl:template name="hyphenate-url">
     9    <xsl:param name="url" select="''"/>
     10    <xsl:choose>
     11      <xsl:when test="ancestor::varlistentry">
     12        <xsl:choose>
     13          <xsl:when test="string-length($url) > 88">
     14            <xsl:value-of select="substring($url, 1, 50)"/>
     15            <xsl:param name="rest" select="substring($url, 51)"/>
     16            <xsl:value-of select="substring-before($rest, '/')"/>
     17            <xsl:text> /</xsl:text>
     18            <xsl:value-of select="substring-after($rest, '/')"/>
     19          </xsl:when>
     20          <xsl:otherwise>
     21            <xsl:value-of select="$url"/>
     22          </xsl:otherwise>
     23        </xsl:choose>
     24      </xsl:when>
     25      <xsl:otherwise>
     26        <xsl:value-of select="substring-before($url, '//')"/>
     27        <xsl:text>// </xsl:text>
     28        <xsl:call-template name="split-url">
     29          <xsl:with-param name="url2" select="substring-after($url, '//')"/>
     30        </xsl:call-template>
     31      </xsl:otherwise>
     32    </xsl:choose>
     33  </xsl:template>
     34
     35  <xsl:template name="split-url">
     36    <xsl:choose>
     37      <xsl:when test="contains($url2, '/')">
     38      <xsl:param name="url2" select="''"/>
     39      <xsl:value-of select="substring-before($url2, '/')"/>
     40      <xsl:text> /</xsl:text>
     41      <xsl:call-template name="split-url">
     42        <xsl:with-param name="url2" select="substring-after($url2, '/')"/>
     43      </xsl:call-template>
     44      </xsl:when>
     45      <xsl:otherwise>
     46        <xsl:value-of select="$url2"/>
     47      </xsl:otherwise>
     48    </xsl:choose>
     49  </xsl:template>
    650
    751    <!-- Shade screen -->
     
    4690    <!-- Admonitions text properties -->
    4791  <xsl:attribute-set name="admonition.properties">
    48     <xsl:attribute name="margin-right">12pt</xsl:attribute>
     92    <xsl:attribute name="margin-right">6pt</xsl:attribute>
    4993  </xsl:attribute-set>
    5094
Note: See TracChangeset for help on using the changeset viewer.