writing mode.
<refsynopsisdiv>
<src:fragment xml:id="admon.style.frag"><xsl:param name="admon.style">
- <xsl:text>margin-left: 0.5in; margin-right: 0.5in;</xsl:text>
+ <xsl:value-of select="concat('margin-', $direction.align.start,
+ ': 0.5in; margin-', $direction.align.end, ': 0.5in;"/>
</xsl:param></src:fragment>
</refsynopsisdiv>
<refmiscinfo class="other" otherclass="datatype">list</refmiscinfo>
<refmiscinfo class="other" otherclass="list-type">open</refmiscinfo>
<refmiscinfo class="other" otherclass="value">left</refmiscinfo>
+ <refmiscinfo class="other" otherclass="value">start</refmiscinfo>
<refmiscinfo class="other" otherclass="value">right</refmiscinfo>
+ <refmiscinfo class="other" otherclass="value">end</refmiscinfo>
<refmiscinfo class="other" otherclass="value">center</refmiscinfo>
<refmiscinfo class="other" otherclass="value">justify</refmiscinfo>
</refmeta>
<refsection><info><title>Description</title></info>
<para>The default text alignment is used for most body text.
+Allowed values are
+<literal>left</literal>,
+<literal>right</literal>,
+<literal>start</literal>,
+<literal>end</literal>,
+<literal>center</literal>,
+<literal>justify</literal>.
+The default value is <literal>justify</literal>.
</para>
</refsection>
<refsynopsisdiv>
<src:fragment xml:id="article.appendix.title.properties.frag">
<xsl:attribute-set name="article.appendix.title.properties" use-attribute-sets="section.title.properties section.title.level1.properties">
- <xsl:attribute name="margin-left">
+ <xsl:attribute name="margin-{$direction.align.start}">
<xsl:value-of select="$title.margin.left"/>
</xsl:attribute>
</xsl:attribute-set>
<refsynopsisdiv>
<src:fragment xml:id="blockquote.properties.frag">
<xsl:attribute-set name="blockquote.properties">
-<xsl:attribute name="margin-left">0.5in</xsl:attribute>
-<xsl:attribute name="margin-right">0.5in</xsl:attribute>
+<xsl:attribute name="margin-{$direction.align.start}">0.5in</xsl:attribute>
+<xsl:attribute name="margin-{$direction.align.end}">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>
<refsection><info><title>Description</title></info>
<para>This parameter provides
-one means of indenting the body text relative to
-the left page margin.
+the means of indenting the body text relative to
+section titles.
+For left-to-right text direction, it indents the left side.
+For right-to-left text direction, it indents the right side.
It is used in place of the
<parameter>title.margin.left</parameter> for
-all XSL-FO processors except FOP.
+all XSL-FO processors except FOP 0.25.
It enables support for side floats to appear
in the indented margin area.
</para>
<xsl:attribute name="text-align">
<xsl:choose>
<xsl:when test="((parent::article | parent::articleinfo | parent::info/parent::article) and not(ancestor::book) and not(self::bibliography)) or (parent::slides | parent::slidesinfo)">center</xsl:when>
- <xsl:otherwise>left</xsl:otherwise>
+ <xsl:otherwise>start</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="start-indent"><xsl:value-of select="$title.margin.left"/></xsl:attribute>
<xsl:attribute name="font-family">
<xsl:value-of select="$slide.font.family"/>
</xsl:attribute>
- <xsl:attribute name="margin-left">1in</xsl:attribute>
- <xsl:attribute name="margin-right">1in</xsl:attribute>
+ <xsl:attribute name="margin-{$direction.align.start}">1in</xsl:attribute>
+ <xsl:attribute name="margin-{$direction.align.end}">1in</xsl:attribute>
<xsl:attribute name="font-size">
<xsl:value-of select="$body.font.size"/>
</xsl:attribute>
<para>The parameter value must be three numbers, separated
by white space. The first number represents the relative
-width of the left footer for
-single-sided output, or the inside footer for
+width of the inside footer for
double-sided output. The second number is the relative
width of the center footer. The third number is the
-relative width of the right footer for
-single-sided output, or the outside footer for
+relative width of the outside footer for
double-sided output.
</para>
+<para>For single-sided output, the first number is the
+relative width of left footer for left-to-right
+text direction, or the right footer for right-to-left
+text direction.
+The third number is the
+relative width of right footer for left-to-right
+text direction, or the left footer for right-to-left
+text direction.</para>
<para>The numbers are used to specify the column widths
for the table that makes up the footer area.
<para>The parameter value must be three numbers, separated
by white space. The first number represents the relative
-width of the left header for
-single-sided output, or the inside header for
+width of the inside header for
double-sided output. The second number is the relative
width of the center header. The third number is the
-relative width of the right header for
-single-sided output, or the outside header for
+relative width of the outside header for
double-sided output.
</para>
+<para>For single-sided output, the first number is the
+relative width of left header for left-to-right
+text direction, or the right header for right-to-left
+text direction.
+The third number is the
+relative width of right header for left-to-right
+text direction, or the left header for right-to-left
+text direction.</para>
<para>The numbers are used to specify the column widths
for the table that makes up the header area.
<refsynopsisdiv>
<src:fragment xml:id="index.div.title.properties.frag">
<xsl:attribute-set name="index.div.title.properties">
- <xsl:attribute name="margin-left">0pt</xsl:attribute>
+ <xsl:attribute name="margin-{$direction.align.start}">0pt</xsl:attribute>
<xsl:attribute name="font-size">14.4pt</xsl:attribute>
<xsl:attribute name="font-family"><xsl:value-of select="$title.fontset"/></xsl:attribute>
<xsl:attribute name="font-weight">bold</xsl:attribute>
<xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
<xsl:attribute name="space-before.optimum">1em</xsl:attribute>
<xsl:attribute name="space-before.maximum">1.2em</xsl:attribute>
- <xsl:attribute name="margin-left">0.25in</xsl:attribute>
- <xsl:attribute name="margin-right">0.25in</xsl:attribute>
+ <xsl:attribute name="margin-{$direction.align.start}">0.25in</xsl:attribute>
+ <xsl:attribute name="margin-{$direction.align.end}">0.25in</xsl:attribute>
</xsl:attribute-set>
</src:fragment>
</refsynopsisdiv>
<refsection><info><title>Description</title></info>
-<para>The inner page margin is the distance from binding edge of the
-page to the first column of text. In the left-to-right, top-to-bottom writing
-direction, this is the left margin of recto pages.</para>
-<para>The inner and outer margins are usually the same unless the output
-is double-sided.
-</para>
+<para>The inner page margin is the distance from bound edge of the
+page to the first column of text. </para>
+
+<para>The inner page margin is the distance from bound edge of the
+page to the outer edge of the first column of text.</para>
+
+<para>In left-to-right text direction,
+this is the left margin of recto (front side) pages.
+For single-sided output, it is the left margin
+of all pages.</para>
+
+<para>In right-to-left text direction,
+this is the right margin of recto pages.
+For single-sided output, this is the
+right margin of all pages.</para>
</refsection>
</refentry>
<refsection><info><title>Description</title></info>
-<para>The outer page margin is the distance from non-binding edge of the
-page to the last column of text. In the left-to-right, top-to-bottom writing
-direction, this is the right margin of recto pages.</para>
-<para>The inner and outer margins are usually the same unless the output
-is double-sided.
-</para>
+<para>The outer page margin is the distance from non-bound edge of the
+page to the outer edge of the last column of text.</para>
+
+<para>In left-to-right text direction,
+this is the right margin of recto (front side) pages.
+For single-sided output, it is the right margin
+of all pages.</para>
+
+<para>In right-to-left text direction,
+this is the left margin of recto pages.
+For single-sided output, this is the
+left margin of all pages.</para>
</refsection>
</refentry>
<parameter>body.start.indent</parameter>
to a non-zero value in order to indent body text,
this attribute set can be used to outdent pgwide
-figures to the left margin.
+figures to the start margin.
</para>
<para>If a document uses a multi-column page layout,
</xsl:attribute>
<xsl:attribute name="font-selection-strategy">character-by-character</xsl:attribute>
<xsl:attribute name="line-height-shift-adjustment">disregard-shifts</xsl:attribute>
+ <xsl:attribute name="writing-mode">
+ <xsl:value-of select="$direction.mode"/>
+ </xsl:attribute>
</xsl:attribute-set>
</src:fragment>
</refsynopsisdiv>
<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="text-align">left</xsl:attribute>
+ <xsl:attribute name="text-align">start</xsl:attribute>
<xsl:attribute name="start-indent"><xsl:value-of select="$title.margin.left"/></xsl:attribute>
</xsl:attribute-set>
</src:fragment>
<src:fragment xml:id="side.float.properties.frag">
<xsl:attribute-set name="side.float.properties">
<xsl:attribute name="width">2in</xsl:attribute>
- <xsl:attribute name="padding-left">4pt</xsl:attribute>
- <xsl:attribute name="padding-right">4pt</xsl:attribute>
+ <xsl:attribute name="padding-start">4pt</xsl:attribute>
+ <xsl:attribute name="padding-end">4pt</xsl:attribute>
<xsl:attribute name="padding-top">2pt</xsl:attribute>
<xsl:attribute name="padding-bottom">2pt</xsl:attribute>
- <xsl:attribute name="margin-left">0pt</xsl:attribute>
- <xsl:attribute name="margin-right">0pt</xsl:attribute>
- <xsl:attribute name="text-align">left</xsl:attribute>
+ <xsl:attribute name="margin-{$direction.align.start}">0pt</xsl:attribute>
+ <xsl:attribute name="margin-{$direction.align.end}">0pt</xsl:attribute>
+ <xsl:attribute name="text-align">start</xsl:attribute>
</xsl:attribute-set>
</src:fragment>
</refsynopsisdiv>
<para>If you do only <literal>left</literal> or
<literal>start</literal> side floats, you may want to set the
-<literal>padding-left</literal> attribute to zero.
+<literal>padding-start</literal> attribute to zero.
If you do only <literal>right</literal> or
<literal>end</literal> side floats, you may want to set the
-<literal>padding-right</literal> attribute to zero.
+<literal>padding-end</literal> attribute to zero.
</para>
</refsection>
that may be the next page rather than the current page.
</para>
</listitem>
+
<listitem>
<para>If <parameter>sidebar.float.type</parameter> is
-<quote><literal>left</literal></quote> or
-<quote><literal>start</literal></quote>, then
-a left side float is used.
+<quote><literal>left</literal></quote>,
+then a left side float is used.
</para>
</listitem>
+
+<listitem>
+<para>If <parameter>sidebar.float.type</parameter> is
+<quote><literal>start</literal></quote>,
+then when the text direction is left-to-right a left side float is used.
+When the text direction is right-to-left, a right side float is used.
+</para>
+</listitem>
+
<listitem>
<para>If <parameter>sidebar.float.type</parameter> is
-<quote><literal>right</literal></quote> or
-<quote><literal>end</literal></quote>, then
-a right side float is used.
+<quote><literal>right</literal></quote>,
+then a right side float is used.
</para>
</listitem>
+
+<listitem>
+<para>If <parameter>sidebar.float.type</parameter> is
+<quote><literal>end</literal></quote>,
+then when the text direction is left-to-right a right side float is used.
+When the text direction is right-to-left, a left side float is used.
+</para>
+</listitem>
+
<listitem>
<para>If your XSL-FO processor supports floats positioned on the
<quote><literal>inside</literal></quote> or
<xsl:attribute name="border-width">1pt</xsl:attribute>
<xsl:attribute name="border-color">black</xsl:attribute>
<xsl:attribute name="background-color">#DDDDDD</xsl:attribute>
- <xsl:attribute name="padding-left">12pt</xsl:attribute>
- <xsl:attribute name="padding-right">12pt</xsl:attribute>
+ <xsl:attribute name="padding-start">12pt</xsl:attribute>
+ <xsl:attribute name="padding-end">12pt</xsl:attribute>
<xsl:attribute name="padding-top">6pt</xsl:attribute>
<xsl:attribute name="padding-bottom">6pt</xsl:attribute>
- <xsl:attribute name="margin-left">0pt</xsl:attribute>
- <xsl:attribute name="margin-right">0pt</xsl:attribute>
+ <xsl:attribute name="margin-{$direction.align.start}">0pt</xsl:attribute>
+ <xsl:attribute name="margin-{$direction.align.end}">0pt</xsl:attribute>
<!--
<xsl:attribute name="margin-top">6pt</xsl:attribute>
<xsl:attribute name="margin-bottom">6pt</xsl:attribute>
<refsynopsisdiv>
<src:fragment xml:id="table.cell.padding.frag">
<xsl:attribute-set name="table.cell.padding">
- <xsl:attribute name="padding-left">2pt</xsl:attribute>
- <xsl:attribute name="padding-right">2pt</xsl:attribute>
+ <xsl:attribute name="padding-start">2pt</xsl:attribute>
+ <xsl:attribute name="padding-end">2pt</xsl:attribute>
<xsl:attribute name="padding-top">2pt</xsl:attribute>
<xsl:attribute name="padding-bottom">2pt</xsl:attribute>
</xsl:attribute-set>
<refsection><info><title>Description</title></info>
<para>This parameter provides
-one means of adjusting the left margin for titles.
-The left margin of the body region
+the means of adjusting the left margin for titles
+when the XSL-FO processor being used is
+an old version of FOP (0.25 and earlier).
+It is only useful when the <parameter>fop.extensions</parameter>
+is nonzero.</para>
+
+<para>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 titles are outdented to the left outside
+the body region by this amount,
+effectively leaving titles at the intended left margin
and the body text indented.
-Currently this method is only used for FOP because
+Currently this method is only used for old 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
+The default value when the <parameter>fop.extensions</parameter>
+parameter is nonzero 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>
+The default value when the <parameter>fop.extensions</parameter>
+parameter equals zero is 0pt, and
+the body indent should instead be specified
+using the <parameter>body.start.indent</parameter>
parameter.
</para>
<para>
a unit indicator such as <literal>0pt</literal>, or
the FO processor will report errors.
</para>
-<para>
-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
-used to calculate the indents.
-</para>
</refsection>
</refentry>
But the param can also be
set on the command line to override that gentext value.
</para>
-<para>
-Accepted values are:
+<para>Accepted values are:
<variablelist>
<varlistentry>
<term>lr-tb</term>
<term>tb-rl</term>
<listitem>
<para>Top-to-bottom text flow in each vertical line, lines stack right to left.
- Not supported in HTML output.</para>
+ Supported by only a few XSL-FO processors. Not supported in HTML output.</para>
</listitem>
</varlistentry>
<varlistentry>