Changeset de749cf1 for stylesheets


Ignore:
Timestamp:
08/18/2004 04:54:30 PM (20 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
116e067
Parents:
665e07b
Message:

Ported from testing the last changes in PDF stylesheets

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

Location:
stylesheets
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • stylesheets/lfs-pdf.xsl

    r665e07b rde749cf1  
    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

    r665e07b rde749cf1  
    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

    r665e07b rde749cf1  
    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.