Ignore:
Timestamp:
01/07/2005 05:14:15 AM (19 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.0, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
d8dc77a
Parents:
bad8b53
Message:

Update stylesheets and fix Python references

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3217 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

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

    rbad8b53 r3fe8b511  
    11<?xml version='1.0' encoding='ISO-8859-1'?>
    2 
    3 <!-- Version 0.9 - Manuel Canales Esparcia <macana@lfs-es.org> -->
    42
    53<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     
    75                version="1.0">
    86
    9         <!-- Force section1's onto a new page -->
    10   <xsl:attribute-set name="section.level1.properties">
    11         <xsl:attribute name="break-after">
    12         <xsl:choose>
    13                         <xsl:when test="not(position()=last())">
    14                 <xsl:text>page</xsl:text>
    15                 </xsl:when>
    16         <xsl:otherwise>
    17                 <xsl:text>auto</xsl:text>
    18         </xsl:otherwise>
    19       </xsl:choose>
    20     </xsl:attribute>
    21   </xsl:attribute-set>
    22 
    23                 <!-- Header -->
    24   <xsl:attribute-set name="header.content.properties">
    25     <xsl:attribute name="font-family">
    26       <xsl:value-of select="$body.fontset"/>
    27     </xsl:attribute>
    28     <xsl:attribute name="text-align">right</xsl:attribute>
    29   </xsl:attribute-set>
    30 
     7    <!-- Header -->
    318  <xsl:template name="header.content">
    32     <xsl:value-of select="/book/bookinfo/title"/>
    33     <xsl:text> - </xsl:text>
    34     <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>
    3521  </xsl:template>
    3622
    3723  <xsl:template name="header.table">
     24    <xsl:param name="sequence" select="''"/>
    3825    <xsl:param name="gentext-key" select="''"/>
    3926    <xsl:choose>
    40       <xsl:when test="$gentext-key = 'book'"/>
     27      <xsl:when test="$gentext-key = 'book' or $sequence = 'blank'"/>
    4128      <xsl:otherwise>
    42         <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>
    4332      </xsl:otherwise>
    4433    </xsl:choose>
    4534  </xsl:template>
    4635
    47                 <!-- Centered titles for book and part -->
     36    <!-- Centered titles for book and part -->
    4837  <xsl:template name="book.titlepage">
    4938    <fo:block space-before="2in">
     
    6150
    6251  <xsl:template name="part.titlepage">
    63     <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
     52    <fo:block>
    6453      <fo:block space-before="2.5in">
    6554        <xsl:call-template name="part.titlepage.before.recto"/>
     
    7463  </xsl:template>
    7564
    76         <!-- Margins -->
    77   <xsl:param name="page.margin.inner">0.75in</xsl:param>
    78   <xsl:param name="page.margin.outer">0.75in</xsl:param>
    79   <xsl:param name="title.margin.left">-1pc</xsl:param>
     65    <!-- Font size for chapter title. -->
     66  <xsl:template match="title" mode="chapter.titlepage.recto.auto.mode">
     67    <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"
     68            xsl:use-attribute-sets="chapter.titlepage.recto.style"
     69            font-size="21pt" font-weight="bold" text-align="left">
     70      <xsl:call-template name="component.title">
     71        <xsl:with-param name="node" select="ancestor-or-self::chapter[1]"/>
     72      </xsl:call-template>
     73    </fo:block>
     74  </xsl:template>
     75
     76    <!-- Margins -->
     77  <xsl:param name="page.margin.inner">0.5in</xsl:param>
     78  <xsl:param name="page.margin.outer">0.375in</xsl:param>
     79  <xsl:param name="title.margin.left">-0.7pc</xsl:param>
    8080  <xsl:attribute-set name="normal.para.spacing">
    81     <xsl:attribute name="space-before.optimum">0.8em</xsl:attribute>
    82     <xsl:attribute name="space-before.minimum">0.6em</xsl:attribute>
    83     <xsl:attribute name="space-before.maximum">1em</xsl:attribute>
     81    <xsl:attribute name="space-before.optimum">0.6em</xsl:attribute>
     82    <xsl:attribute name="space-before.minimum">0.4em</xsl:attribute>
     83    <xsl:attribute name="space-before.maximum">0.8em</xsl:attribute>
    8484  </xsl:attribute-set>
    8585  <xsl:attribute-set name="list.block.spacing">
    86     <xsl:attribute name="space-before.optimum">0.8em</xsl:attribute>
    87     <xsl:attribute name="space-before.minimum">0.6em</xsl:attribute>
    88     <xsl:attribute name="space-before.maximum">1em</xsl:attribute>
    89     <xsl:attribute name="space-after.optimum">0.8em</xsl:attribute>
    90     <xsl:attribute name="space-after.minimum">0.6em</xsl:attribute>
    91     <xsl:attribute name="space-after.maximum">1em</xsl:attribute>
     86    <xsl:attribute name="space-before.optimum">0.6em</xsl:attribute>
     87    <xsl:attribute name="space-before.minimum">0.4em</xsl:attribute>
     88    <xsl:attribute name="space-before.maximum">0.8em</xsl:attribute>
     89    <xsl:attribute name="space-after.optimum">0.6em</xsl:attribute>
     90    <xsl:attribute name="space-after.minimum">0.4em</xsl:attribute>
     91    <xsl:attribute name="space-after.maximum">0.8em</xsl:attribute>
    9292  </xsl:attribute-set>
    9393  <xsl:attribute-set name="list.item.spacing">
     
    9797  </xsl:attribute-set>
    9898  <xsl:attribute-set name="verbatim.properties">
    99     <xsl:attribute name="space-before.minimum">0.6em</xsl:attribute>
    100     <xsl:attribute name="space-before.optimum">0.8em</xsl:attribute>
    101     <xsl:attribute name="space-before.maximum">1em</xsl:attribute>
    102     <xsl:attribute name="space-after.minimum">0.6em</xsl:attribute>
    103     <xsl:attribute name="space-after.optimum">0.8em</xsl:attribute>
    104     <xsl:attribute name="space-after.maximum">1em</xsl:attribute>
     99    <xsl:attribute name="space-before.optimum">0.6em</xsl:attribute>
     100    <xsl:attribute name="space-before.minimum">0.4em</xsl:attribute>
     101    <xsl:attribute name="space-before.maximum">0.8em</xsl:attribute>
     102    <xsl:attribute name="space-after.optimum">0.6em</xsl:attribute>
     103    <xsl:attribute name="space-after.minimum">0.4em</xsl:attribute>
     104    <xsl:attribute name="space-after.maximum">0.8em</xsl:attribute>
    105105  </xsl:attribute-set>
    106106
    107         <!-- Others-->
     107    <!-- Others-->
    108108  <xsl:param name="header.rule" select="0"></xsl:param>
    109109  <xsl:param name="footer.rule" select="0"></xsl:param>
    110         <xsl:param name="marker.section.level" select="-1"></xsl:param>
     110  <xsl:param name="marker.section.level" select="-1"></xsl:param>
    111111
    112         <!-- Dropping a blank page -->
    113         <xsl:template name="book.titlepage.separator"/>
     112    <!-- Dropping a blank page -->
     113  <xsl:template name="book.titlepage.separator"/>
     114
    114115
    115116</xsl:stylesheet>
Note: See TracChangeset for help on using the changeset viewer.