Changeset ed5f52d


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

Location:
stylesheets
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • stylesheets/lfs-pdf.xsl

    r96e8f71 red5f52d  
    2626
    2727    <!-- Font size -->
    28   <xsl:param name="body.font.master">6</xsl:param>
    29   <xsl:param name="body.font.size">8pt</xsl:param>
     28  <xsl:param name="body.font.master">10</xsl:param>
     29  <xsl:param name="body.font.size">12pt</xsl:param>
    3030
    3131    <!-- TOC stuff -->
  • 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
  • stylesheets/pdf/lfs-pagesetup.xsl

    r96e8f71 red5f52d  
    6666  <xsl:param name="page.margin.inner">0.5in</xsl:param>
    6767  <xsl:param name="page.margin.outer">0.375in</xsl:param>
    68   <xsl:param name="title.margin.left">-1pc</xsl:param>
     68  <xsl:param name="title.margin.left">-0.7pc</xsl:param>
    6969  <xsl:attribute-set name="normal.para.spacing">
    70     <xsl:attribute name="space-before.optimum">0.8em</xsl:attribute>
    71     <xsl:attribute name="space-before.minimum">0.6em</xsl:attribute>
    72     <xsl:attribute name="space-before.maximum">1em</xsl:attribute>
     70    <xsl:attribute name="space-before.optimum">0.6em</xsl:attribute>
     71    <xsl:attribute name="space-before.minimum">0.4em</xsl:attribute>
     72    <xsl:attribute name="space-before.maximum">0.8em</xsl:attribute>
    7373  </xsl:attribute-set>
    7474  <xsl:attribute-set name="list.block.spacing">
    75     <xsl:attribute name="space-before.optimum">0.8em</xsl:attribute>
    76     <xsl:attribute name="space-before.minimum">0.6em</xsl:attribute>
    77     <xsl:attribute name="space-before.maximum">1em</xsl:attribute>
    78     <xsl:attribute name="space-after.optimum">0.8em</xsl:attribute>
    79     <xsl:attribute name="space-after.minimum">0.6em</xsl:attribute>
    80     <xsl:attribute name="space-after.maximum">1em</xsl:attribute>
     75    <xsl:attribute name="space-before.optimum">0.6em</xsl:attribute>
     76    <xsl:attribute name="space-before.minimum">0.4em</xsl:attribute>
     77    <xsl:attribute name="space-before.maximum">0.8em</xsl:attribute>
     78    <xsl:attribute name="space-after.optimum">0.6em</xsl:attribute>
     79    <xsl:attribute name="space-after.minimum">0.4em</xsl:attribute>
     80    <xsl:attribute name="space-after.maximum">0.8em</xsl:attribute>
    8181  </xsl:attribute-set>
    8282  <xsl:attribute-set name="list.item.spacing">
     
    8686  </xsl:attribute-set>
    8787  <xsl:attribute-set name="verbatim.properties">
    88     <xsl:attribute name="space-before.minimum">0.6em</xsl:attribute>
    89     <xsl:attribute name="space-before.optimum">0.8em</xsl:attribute>
    90     <xsl:attribute name="space-before.maximum">1em</xsl:attribute>
    91     <xsl:attribute name="space-after.minimum">0.6em</xsl:attribute>
    92     <xsl:attribute name="space-after.optimum">0.8em</xsl:attribute>
    93     <xsl:attribute name="space-after.maximum">1em</xsl:attribute>
     88    <xsl:attribute name="space-before.optimum">0.6em</xsl:attribute>
     89    <xsl:attribute name="space-before.minimum">0.4em</xsl:attribute>
     90    <xsl:attribute name="space-before.maximum">0.8em</xsl:attribute>
     91    <xsl:attribute name="space-after.optimum">0.6em</xsl:attribute>
     92    <xsl:attribute name="space-after.minimum">0.4em</xsl:attribute>
     93    <xsl:attribute name="space-after.maximum">0.8em</xsl:attribute>
    9494  </xsl:attribute-set>
    9595
Note: See TracChangeset for help on using the changeset viewer.