title.margin.left.xml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <refentry xmlns="http://docbook.org/ns/docbook"
  2. xmlns:xlink="http://www.w3.org/1999/xlink"
  3. xmlns:xi="http://www.w3.org/2001/XInclude"
  4. xmlns:src="http://nwalsh.com/xmlns/litprog/fragment"
  5. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  6. version="5.0" xml:id="title.margin.left">
  7. <refmeta>
  8. <refentrytitle>title.margin.left</refentrytitle>
  9. <refmiscinfo class="other" otherclass="datatype">length</refmiscinfo>
  10. </refmeta>
  11. <refnamediv>
  12. <refname>title.margin.left</refname>
  13. <refpurpose>Adjust the left margin for titles</refpurpose>
  14. </refnamediv>
  15. <refsynopsisdiv>
  16. <src:fragment xml:id="title.margin.left.frag">
  17. <xsl:param name="title.margin.left">
  18. <xsl:choose>
  19. <xsl:when test="$fop.extensions != 0">-4pc</xsl:when>
  20. <xsl:when test="$passivetex.extensions != 0">0pt</xsl:when>
  21. <xsl:otherwise>0pt</xsl:otherwise>
  22. </xsl:choose>
  23. </xsl:param>
  24. </src:fragment>
  25. </refsynopsisdiv>
  26. <refsection><info><title>Description</title></info>
  27. <para>This parameter provides
  28. the means of adjusting the left margin for titles
  29. when the XSL-FO processor being used is
  30. an old version of FOP (0.25 and earlier).
  31. It is only useful when the <parameter>fop.extensions</parameter>
  32. is nonzero.</para>
  33. <para>The left margin of the body region
  34. is calculated to include this space,
  35. and titles are outdented to the left outside
  36. the body region by this amount,
  37. effectively leaving titles at the intended left margin
  38. and the body text indented.
  39. Currently this method is only used for old FOP because
  40. it cannot properly use the <parameter>body.start.indent</parameter>
  41. parameter.
  42. </para>
  43. <para>
  44. The default value when the <parameter>fop.extensions</parameter>
  45. parameter is nonzero is -4pc, which means the
  46. body text is indented 4 picas relative to
  47. the titles.
  48. The default value when the <parameter>fop.extensions</parameter>
  49. parameter equals zero is 0pt, and
  50. the body indent should instead be specified
  51. using the <parameter>body.start.indent</parameter>
  52. parameter.
  53. </para>
  54. <para>
  55. If you set the value to zero, be sure to still include
  56. a unit indicator such as <literal>0pt</literal>, or
  57. the FO processor will report errors.
  58. </para>
  59. </refsection>
  60. </refentry>