Changeset a9e89d0 for stylesheets/pdf


Ignore:
Timestamp:
05/19/2004 08:16:58 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.0, 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:
8df9f63
Parents:
28501c7
Message:

HEAD: StyleSheets - unified the identation to use spaces.

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

Location:
stylesheets/pdf
Files:
2 edited

Legend:

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

    r28501c7 ra9e89d0  
    1313                version="1.0">
    1414
    15         <!--Only one column to fit the table layout-->
     15    <!--Only one column to fit the table layout-->
    1616  <xsl:param name="column.count.index" select="1"/>
    1717
     
    1919  <xsl:template match="index" mode="title.markup">
    2020    <xsl:text>Index of packages and important installed files</xsl:text>
    21         </xsl:template>
     21  </xsl:template>
    2222
    23         <!-- Divisions-->
     23    <!-- Divisions-->
    2424  <xsl:template match="indexterm" mode="index-div">
    2525    <xsl:param name="scope" select="."/>
     
    5252                  <xsl:value-of select="$divtitle"/>
    5353                </xsl:otherwise>
    54                 </xsl:choose>
     54              </xsl:choose>
    5555            </xsl:with-param>
    5656          </xsl:call-template>
    5757        </xsl:if>
    5858        <fo:table table-layout="fixed" width="100%">
    59                 <fo:table-column column-number="1" column-width="11em"/>
    60                 <fo:table-column column-number="2" column-width="19em"/>
    61                 <fo:table-column column-number="3"/>
     59          <fo:table-column column-number="1" column-width="11em"/>
     60          <fo:table-column column-number="2" column-width="19em"/>
     61          <fo:table-column column-number="3"/>
    6262          <fo:table-body>
    6363            <xsl:apply-templates select="key('letter', $key)[&scope;]
     
    6767              <xsl:with-param name="scope" select="$scope"/>
    6868            </xsl:apply-templates>
    69                 </fo:table-body>
     69          </fo:table-body>
    7070        </fo:table>
    7171      </fo:block>
     
    7373  </xsl:template>
    7474
    75         <!-- Dropping the separator from here -->
     75    <!-- Dropping the separator from here -->
    7676  <xsl:template match="indexterm" mode="reference">
    7777    <xsl:param name="scope" select="."/>
    78         <xsl:call-template name="reference">
     78      <xsl:call-template name="reference">
    7979        <xsl:with-param name="zones" select="normalize-space(@zone)"/>
    8080        <xsl:with-param name="scope" select="$scope"/>
     
    8282  </xsl:template>
    8383
    84         <!-- Changing the output tags and re-addind the separator-->
     84    <!-- Changing the output tags and re-addind the separator-->
    8585  <xsl:template match="indexterm" mode="index-primary">
    8686    <xsl:param name="scope" select="."/>
     
    8888    <xsl:variable name="refs" select="key('primary', $key)[&scope;]"/>
    8989    <fo:table-row>
    90         <fo:table-cell>
    91         <fo:block>
     90      <fo:table-cell>
     91        <fo:block>
    9292          <xsl:value-of select="primary"/>
    9393          <xsl:text>: </xsl:text>
    94                                 </fo:block>
     94        </fo:block>
    9595      </fo:table-cell>
    9696      <xsl:for-each select="$refs[not(see) and not(seealso)
     
    100100        </xsl:apply-templates>
    101101      </xsl:for-each>
    102                 </fo:table-row>
    103                 <xsl:if test="$refs/secondary">
     102    </fo:table-row>
     103    <xsl:if test="$refs/secondary">
    104104      <xsl:apply-templates select="$refs[secondary and count(.|key('secondary',
    105                                 concat($key, &sep;, &secondary;))[&scope;][1]) = 1]" mode="index-secondary">
    106                                 <xsl:with-param name="scope" select="$scope"/>
    107                                 <xsl:sort select="translate(&secondary;, &lowercase;, &uppercase;)"/>
    108                         </xsl:apply-templates>
    109                 </xsl:if>
     105              concat($key, &sep;, &secondary;))[&scope;][1]) = 1]" mode="index-secondary">
     106        <xsl:with-param name="scope" select="$scope"/>
     107        <xsl:sort select="translate(&secondary;, &lowercase;, &uppercase;)"/>
     108      </xsl:apply-templates>
     109    </xsl:if>
    110110  </xsl:template>
    111111
    112112  <xsl:template match="indexterm" mode="index-secondary">
    113113    <xsl:param name="scope" select="."/>
    114                 <xsl:variable name="key" select="concat(&primary;, &sep;, &secondary;)"/>
     114     <xsl:variable name="key" select="concat(&primary;, &sep;, &secondary;)"/>
    115115    <xsl:variable name="refs" select="key('secondary', $key)[&scope;]"/>
    116116    <fo:table-row>
    117         <fo:table-cell>
    118                     <fo:block start-indent="1pc">
     117      <fo:table-cell>
     118        <fo:block start-indent="1pc">
    119119          <xsl:value-of select="secondary"/>
    120120          <xsl:text>: </xsl:text>
    121121        </fo:block>
    122         </fo:table-cell>
     122      </fo:table-cell>
    123123      <xsl:for-each select="$refs[not(see) and not(seealso) and not(tertiary)]">
    124124        <xsl:apply-templates select="." mode="reference">
     
    126126        </xsl:apply-templates>
    127127      </xsl:for-each>
    128                 </fo:table-row>
     128    </fo:table-row>
    129129  </xsl:template>
    130130 
    131         <!-- Targets titles and bookmarks-->
     131    <!-- Targets titles and bookmarks-->
    132132  <xsl:template name="reference">
    133133    <xsl:param name="scope" select="."/>
     
    150150        </xsl:variable>
    151151        <fo:table-cell>
    152                 <fo:block>
     152          <fo:block>
    153153            <fo:basic-link internal-destination="{$id}">
    154154              <xsl:value-of select="$target/title"/>
     
    157157              </xsl:apply-templates>
    158158            </fo:basic-link>
    159                 </fo:block>
    160                                 </fo:table-cell>
     159          </fo:block>
     160        </fo:table-cell>
    161161        <fo:table-cell>
    162                 <fo:block>
     162          <fo:block>
    163163            <fo:basic-link internal-destination="{$id2}">
    164164              <xsl:text>description</xsl:text>
     
    167167              </xsl:apply-templates>
    168168            </fo:basic-link>
    169                 </fo:block>
    170                                 </fo:table-cell>
     169          </fo:block>
     170        </fo:table-cell>
    171171      </xsl:when>
    172172      <xsl:otherwise>
     
    179179        </xsl:variable>
    180180        <fo:table-cell>
    181                 <fo:block>
     181          <fo:block>
    182182            <fo:basic-link internal-destination="{$id}">
    183183              <xsl:value-of select="$target/title"/>
     
    186186              </xsl:apply-templates>
    187187            </fo:basic-link>
    188                 </fo:block>
    189                                 </fo:table-cell>
     188          </fo:block>
     189        </fo:table-cell>
    190190      </xsl:otherwise>
    191191    </xsl:choose>
  • stylesheets/pdf/lfs-pagesetup.xsl

    r28501c7 ra9e89d0  
    55                version="1.0">
    66
    7         <!-- Force section1's onto a new page -->
     7    <!-- Force section1's onto a new page -->
    88  <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>
     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>
    1414        <xsl:otherwise>
    15                 <xsl:text>auto</xsl:text>
     15          <xsl:text>auto</xsl:text>
    1616        </xsl:otherwise>
    1717      </xsl:choose>
     
    1919  </xsl:attribute-set>
    2020
    21                 <!-- Header -->
     21    <!-- Header -->
    2222  <xsl:attribute-set name="header.content.properties">
    2323    <xsl:attribute name="font-family">
     
    3838      <xsl:when test="$gentext-key = 'book'"/>
    3939      <xsl:otherwise>
    40         <xsl:call-template name="header.content"/>
     40        <xsl:call-template name="header.content"/>
    4141      </xsl:otherwise>
    4242    </xsl:choose>
    4343  </xsl:template>
    4444
    45                 <!-- Centered titles for book and part -->
     45    <!-- Centered titles for book and part -->
    4646  <xsl:template name="book.titlepage">
    4747    <fo:block space-before="2in">
     
    7272  </xsl:template>
    7373
    74         <!-- Margins -->
     74    <!-- Margins -->
    7575  <xsl:param name="page.margin.inner">0.75in</xsl:param>
    7676  <xsl:param name="page.margin.outer">0.75in</xsl:param>
     
    103103  </xsl:attribute-set>
    104104
    105         <!-- Others-->
     105    <!-- Others-->
    106106  <xsl:param name="header.rule" select="0"></xsl:param>
    107107  <xsl:param name="footer.rule" select="0"></xsl:param>
    108         <xsl:param name="marker.section.level" select="-1"></xsl:param>
     108  <xsl:param name="marker.section.level" select="-1"></xsl:param>
    109109
    110         <!-- Dropping a blank page -->
    111         <xsl:template name="book.titlepage.separator"/>
     110    <!-- Dropping a blank page -->
     111  <xsl:template name="book.titlepage.separator"/>
    112112
    113         <!-- How render a variablelist -->
    114         <xsl:param name="variablelist.as.blocks" select="1"/>
     113    <!-- How render a variablelist -->
     114  <xsl:param name="variablelist.as.blocks" select="1"/>
    115115
    116116</xsl:stylesheet>
Note: See TracChangeset for help on using the changeset viewer.