]> granicus.if.org Git - docbook-dsssl/commitdiff
Fixed indent problems introduced with $body.start.indent.
authorBob Stayton <bobs@sagehill.net>
Tue, 8 Mar 2005 07:50:55 +0000 (07:50 +0000)
committerBob Stayton <bobs@sagehill.net>
Tue, 8 Mar 2005 07:50:55 +0000 (07:50 +0000)
FOP reverts back to using $title.margin.left.

xsl/params/blockquote.properties.xml
xsl/params/component.title.properties.xml
xsl/params/section.title.properties.xml
xsl/params/title.margin.left.xml

index 1803adb1889ef10788ad002052014ce851c0c9df..7a0f237ca8429cafab25f35c82166ce3bff90bdf 100644 (file)
@@ -7,8 +7,8 @@
 <refsynopsisdiv>
 <src:fragment id='blockquote.properties.frag'>
 <xsl:attribute-set name="blockquote.properties">
-<xsl:attribute name="start-indent">0.5in</xsl:attribute>
-<xsl:attribute name="end-indent">0.5in</xsl:attribute>
+<xsl:attribute name="margin-left">0.5in</xsl:attribute>
+<xsl:attribute name="margin-right">0.5in</xsl:attribute>
 <xsl:attribute name="space-after.minimum">0.5em</xsl:attribute>
 <xsl:attribute name="space-after.optimum">1em</xsl:attribute>
 <xsl:attribute name="space-after.maximum">2em</xsl:attribute>
index 5eb76c9e9313bbd07d80c65f01265f3d1477f445..c9dbe836aae126292ed4a93b4bfb6e74d5ed985e 100644 (file)
@@ -19,7 +19,8 @@
   <xsl:attribute name="space-before.maximum"><xsl:value-of
             select="concat($body.font.master, 'pt * 1.2')"/></xsl:attribute>
   <xsl:attribute name="hyphenate">false</xsl:attribute>
-  <xsl:attribute name="start-indent">0pt</xsl:attribute>
+  <xsl:attribute name="start-indent"><xsl:value-of 
+                 select="$title.margin.left"/></xsl:attribute>
 </xsl:attribute-set>
 </src:fragment>
 </refsynopsisdiv>
index b6150aaddcbe2484b7120e2d8148eef58fd978a2..a2c1f7e66da0ff3fa4db4bab06e37f4c84f99b13 100644 (file)
@@ -20,7 +20,8 @@
   <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
   <xsl:attribute name="space-before.optimum">1.0em</xsl:attribute>
   <xsl:attribute name="space-before.maximum">1.2em</xsl:attribute>
-  <xsl:attribute name="start-indent">0pt</xsl:attribute>
+  <xsl:attribute name="start-indent"><xsl:value-of 
+                 select="$title.margin.left"/></xsl:attribute>
 </xsl:attribute-set>
 </src:fragment>
 </refsynopsisdiv>
index a135b0a4ba986139a247bb81179ef6f57286eda3..dfd2990a861b6b97b98fd0b6d9c8fc9fb074b71e 100644 (file)
@@ -12,6 +12,7 @@
 <src:fragment id='title.margin.left.frag'>
 <xsl:param name="title.margin.left">
   <xsl:choose>
+    <xsl:when test="$fop.extensions != 0">-4pc</xsl:when>
     <xsl:when test="$passivetex.extensions != 0">0pt</xsl:when>
     <xsl:otherwise>0pt</xsl:otherwise>
   </xsl:choose>
 
 <refsect1><title>Description</title>
 
-<para>This parameter adjusts the left margin for titles,
-effectively leaving the titles at the left
-margin and indenting the body text.
-The default value is -4pc, which means the
+<para>This parameter provides
+one means of adjusting the left margin for titles.
+The left margin of the body region
+is calculated to include this space,
+and titles are outdented to the left by this amount,
+effectively leaving titles at the left margin
+and the body text indented.
+Currently this method is only used for FOP because
+it cannot properly use the <parameter>body.start.indent</parameter>
+parameter.
+the relative 
+</para>
+<para>
+The default value for FOP is -4pc, which means the
 body text is indented 4 picas relative to
 the titles.
+The default value for other processors is 0pt, and
+the body indent is provided by the <parameter>body.start.indent</parameter>
+parameter.
 </para>
 <para>
 If you set the value to zero, be sure to still include
@@ -34,7 +48,7 @@ a unit indicator such as <literal>0pt</literal>, or
 the FO processor will report errors.
 </para>
 <para>
-This parameter is set to 0pt if the
+This parameter must be set to 0pt if the
 <parameter>passivetex.extensions</parameter>
 parameter is nonzero because PassiveTeX cannot handle
 the math expression with negative values