Ignore:
Timestamp:
08/10/2004 09:28:38 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, 12.2, 12.2-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/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
a03b9453
Parents:
a112251
Message:

Renamed the print stylesheets to pdf.

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

File:
1 edited

Legend:

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

    ra112251 r6872957  
    55                version="1.0">
    66
    7     <!-- Force section1's onto a new page -->
    8   <xsl:attribute-set name="section.level1.properties">
    9     <xsl:attribute name="break-after">
    10       <xsl:choose>
    11         <xsl:when test="not(position()=last())">
    12           <xsl:text>page</xsl:text>
    13         </xsl:when>
    14         <xsl:otherwise>
    15           <xsl:text>auto</xsl:text>
    16         </xsl:otherwise>
    17       </xsl:choose>
    18     </xsl:attribute>
    19   </xsl:attribute-set>
    20 
    217    <!-- Header -->
    22   <xsl:attribute-set name="header.content.properties">
    23     <xsl:attribute name="font-family">
    24       <xsl:value-of select="$body.fontset"/>
    25     </xsl:attribute>
    26     <xsl:attribute name="text-align">right</xsl:attribute>
    27   </xsl:attribute-set>
    28 
    298  <xsl:template name="header.content">
    30     <xsl:value-of select="/book/bookinfo/title"/>
    31     <xsl:text> - </xsl:text>
    32     <xsl:value-of select="/book/bookinfo/subtitle"/>
     9    <xsl:param name="sequence" select="''"/>
     10    <fo:block>
     11      <xsl:attribute name="text-align">
     12        <xsl:choose>
     13          <xsl:when test="$sequence = 'first' or $sequence = 'odd'">right</xsl:when>
     14          <xsl:otherwise>left</xsl:otherwise>
     15        </xsl:choose>
     16      </xsl:attribute>
     17      <xsl:value-of select="/book/bookinfo/title"/>
     18      <xsl:text> - </xsl:text>
     19      <xsl:value-of select="/book/bookinfo/subtitle"/>
     20    </fo:block>
    3321  </xsl:template>
    3422
    3523  <xsl:template name="header.table">
     24    <xsl:param name="sequence" select="''"/>
    3625    <xsl:param name="gentext-key" select="''"/>
    3726    <xsl:choose>
    38       <xsl:when test="$gentext-key = 'book'"/>
     27      <xsl:when test="$gentext-key = 'book' or $sequence = 'blank'"/>
    3928      <xsl:otherwise>
    40         <xsl:call-template name="header.content"/>
     29        <xsl:call-template name="header.content">
     30          <xsl:with-param name="sequence" select="$sequence"/>
     31        </xsl:call-template>
    4132      </xsl:otherwise>
    4233    </xsl:choose>
     
    5950
    6051  <xsl:template name="part.titlepage">
    61     <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
     52    <fo:block>
    6253      <fo:block space-before="2.5in">
    6354        <xsl:call-template name="part.titlepage.before.recto"/>
     
    7364
    7465    <!-- Margins -->
    75   <xsl:param name="page.margin.inner">0.75in</xsl:param>
    76   <xsl:param name="page.margin.outer">0.75in</xsl:param>
     66  <xsl:param name="page.margin.inner">0.5in</xsl:param>
     67  <xsl:param name="page.margin.outer">0.375in</xsl:param>
    7768  <xsl:param name="title.margin.left">-1pc</xsl:param>
    7869  <xsl:attribute-set name="normal.para.spacing">
     
    111102  <xsl:template name="book.titlepage.separator"/>
    112103
    113     <!-- How render a variablelist -->
    114   <xsl:param name="variablelist.as.blocks" select="1"/>
    115104
    116105</xsl:stylesheet>
Note: See TracChangeset for help on using the changeset viewer.