Changeset 3523830


Ignore:
Timestamp:
08/20/2005 08:58:43 PM (19 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.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:
b74eff5a
Parents:
b26564ea
Message:

Removed blank pages on PDF output.

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

Location:
stylesheets
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • stylesheets/blfs-pdf.xsl

    rb26564ea r3523830  
    55                version="1.0">
    66
    7         <!-- We use FO and FOP as the processor -->
     7    <!-- We use FO and FOP as the processor -->
    88  <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.68.1/fo/docbook.xsl"/>
    99  <xsl:param name="fop.extensions" select="1"/>
    1010  <xsl:param name="draft.mode" select="'no'"/>
    1111
    12         <!-- Including our others customized templates -->
     12    <!-- Including our others customized templates -->
    1313  <xsl:include href="pdf/lfs-admon.xsl"/>
    1414  <xsl:include href="pdf/lfs-index.xsl"/>
     
    2121  <xsl:param name="local.l10n.xml" select="document('blfs-l10n.xml')"/>
    2222
    23         <!-- Probably want to make the paper size configurable -->
     23    <!-- Probably want to make the paper size configurable -->
    2424  <xsl:param name="paper.type" select="'letter'"/>
    2525
    2626    <!-- Printing Style -->
    27   <xsl:param name="double.sided" select="1"/>
     27  <xsl:param name="double.sided" select="0"/>
    2828  <xsl:param name="hyphenate">false</xsl:param>
    2929  <xsl:param name="alignment">justify</xsl:param>
    3030
    31         <!-- Font size -->
     31    <!-- Font size -->
    3232  <xsl:param name="body.font.master">9</xsl:param>
    3333  <xsl:param name="body.font.size">12pt</xsl:param>
    3434
    35         <!-- TOC generation -->
     35    <!-- TOC generation -->
    3636  <xsl:param name="generate.toc">
    3737    book      toc
  • stylesheets/pdf/lfs-mixed.xsl

    rb26564ea r3523830  
    66
    77
    8     <!-- This is a hack and isn't correct semantically. Theoretically, the beginpage 
    9       tags should be placed in the XML source only to render the PDF output and 
     8    <!-- This is a hack and isn't correct semantically. Theoretically, the beginpage
     9      tags should be placed in the XML source only to render the PDF output and
    1010      should be removed after it. But there is no a better way and we need this.-->
    1111  <xsl:template match="beginpage">
     
    139139  <xsl:param name="variablelist.max.termlength">32</xsl:param>
    140140
    141     <!-- Adding space before segmentedlist -->
     141    <!-- Making the same look that in the XHTML output. -->
    142142  <xsl:template match="segmentedlist">
    143143    <!--<xsl:variable name="presentation">
     
    162162      </xsl:when>
    163163      <xsl:otherwise>-->
    164         <fo:block space-before.minimum="0.4em" space-before.optimum="0.6em"
    165                 space-before.maximum="0.8em">
    166           <xsl:apply-templates/>
    167         </fo:block>
     164        <fo:list-block provisional-distance-between-starts="11em"
     165              provisional-label-separation="1em"
     166              xsl:use-attribute-sets="list.block.spacing">
     167          <xsl:apply-templates/>
     168        </fo:list-block>
    168169      <!--</xsl:otherwise>
    169170    </xsl:choose>-->
     171  </xsl:template>
     172
     173  <xsl:template match="seglistitem">
     174    <xsl:apply-templates/>
     175  </xsl:template>
     176
     177  <xsl:template match="seg">
     178    <xsl:variable name="segnum" select="count(preceding-sibling::seg)+1"/>
     179    <xsl:variable name="seglist" select="ancestor::segmentedlist"/>
     180    <xsl:variable name="segtitles" select="$seglist/segtitle"/>
     181    <!-- Note: segtitle is only going to be the right thing in a well formed
     182      SegmentedList.  If there are too many Segs or too few SegTitles,
     183      you'll get something odd...maybe an error -->
     184    <fo:list-item xsl:use-attribute-sets="list.item.spacing">
     185      <fo:list-item-label end-indent="label-end()" text-align="start">
     186        <fo:block>
     187          <fo:inline font-weight="bold">
     188            <xsl:apply-templates select="$segtitles[$segnum=position()]"
     189                    mode="segtitle-in-seg"/>
     190            <xsl:text>: </xsl:text>
     191          </fo:inline>
     192        </fo:block>
     193      </fo:list-item-label>
     194      <fo:list-item-body start-indent="body-start()">
     195        <fo:block text-align="left">
     196          <xsl:apply-templates/>
     197        </fo:block>
     198      </fo:list-item-body>
     199    </fo:list-item>
    170200  </xsl:template>
    171201
Note: See TracChangeset for help on using the changeset viewer.