Переглянути джерело

Fixed Dependencies appendix look.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/new-xsl@8021 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Manuel Canales Esparcia 18 роки тому
батько
коміт
5fb2a43e9a
1 змінених файлів з 21 додано та 2 видалено
  1. 21 2
      pdf/lfs-mixed.xsl

+ 21 - 2
pdf/lfs-mixed.xsl

@@ -172,13 +172,32 @@
   </xsl:template>
 
     <!-- segmentedlist:
-           Making it an actual FO list to can indent items. -->
+           Making it an actual FO list to can indent items.
+           Adjust vertical space. -->
     <!-- The original template is in {docbook-xsl}/fo/list.xsl -->
   <xsl:template match="segmentedlist">
     <fo:list-block provisional-distance-between-starts="12em"
                    provisional-label-separation="1em"
-                   xsl:use-attribute-sets="list.block.spacing"
                    keep-together.within-column="always">
+      <xsl:choose>
+        <xsl:when test="ancestor::appendix[@id='appendixc']">
+          <xsl:attribute name="space-before.optimum">0.2em</xsl:attribute>
+          <xsl:attribute name="space-before.minimum">0em</xsl:attribute>
+          <xsl:attribute name="space-before.maximum">0.4em</xsl:attribute>
+          <xsl:attribute name="space-after.optimum">0.2em</xsl:attribute>
+          <xsl:attribute name="space-after.minimum">0em</xsl:attribute>
+          <xsl:attribute name="space-after.maximum">0.4em</xsl:attribute>
+          <xsl:attribute name="keep-with-previous.within-column">always</xsl:attribute>
+        </xsl:when>
+          <xsl:attribute name="space-before.optimum">0.6em</xsl:attribute>
+          <xsl:attribute name="space-before.minimum">0.4em</xsl:attribute>
+          <xsl:attribute name="space-before.maximum">0.8em</xsl:attribute>
+          <xsl:attribute name="space-after.optimum">0.6em</xsl:attribute>
+          <xsl:attribute name="space-after.minimum">0.4em</xsl:attribute>
+          <xsl:attribute name="space-after.maximum">0.8em</xsl:attribute>
+        <xsl:otherwise>
+        </xsl:otherwise>
+      </xsl:choose>
       <xsl:apply-templates select="seglistitem/seg"/>
     </fo:list-block>
   </xsl:template>