summaryrefslogtreecommitdiffstats
path: root/kdoctools/docbook/xsl/params/title.margin.left.xml
diff options
context:
space:
mode:
Diffstat (limited to 'kdoctools/docbook/xsl/params/title.margin.left.xml')
-rw-r--r--kdoctools/docbook/xsl/params/title.margin.left.xml45
1 files changed, 45 insertions, 0 deletions
diff --git a/kdoctools/docbook/xsl/params/title.margin.left.xml b/kdoctools/docbook/xsl/params/title.margin.left.xml
new file mode 100644
index 000000000..140d7f53d
--- /dev/null
+++ b/kdoctools/docbook/xsl/params/title.margin.left.xml
@@ -0,0 +1,45 @@
+<refentry id="title.margin.left">
+<refmeta>
+<refentrytitle>title.margin.left</refentrytitle>
+<refmiscinfo role="type"></refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>title.margin.left</refname>
+<refpurpose>Adjust the left margin for titles</refpurpose>
+</refnamediv>
+
+<refsynopsisdiv>
+<src:fragment id='title.margin.left.frag'>
+<xsl:param name="title.margin.left">
+ <xsl:choose>
+ <xsl:when test="$passivetex.extensions != 0">0pt</xsl:when>
+ <xsl:otherwise>-4pc</xsl:otherwise>
+ </xsl:choose>
+</xsl:param>
+</src:fragment>
+</refsynopsisdiv>
+
+<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
+body text is indented 4 picas relative to
+the titles.
+</para>
+<para>
+If you set the value to zero, be sure to still include
+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
+<parameter>passivetex.extensions</parameter>
+parameter is nonzero because PassiveTeX cannot handle
+the math expression with negative values
+used to calculate the indents.
+</para>
+
+</refsect1>
+</refentry>