]> git.stg.codes - stg.git/blob - doc/xslt/params/page.margin.inner.xml
Set output encoding to utf-8.
[stg.git] / doc / xslt / params / page.margin.inner.xml
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="page.margin.inner">
7 <refmeta>
8 <refentrytitle>page.margin.inner</refentrytitle>
9 <refmiscinfo class="other" otherclass="datatype">length</refmiscinfo>
10 </refmeta>
11 <refnamediv>
12 <refname>page.margin.inner</refname>
13 <refpurpose>The inner page margin</refpurpose>
14 </refnamediv>
15
16 <refsynopsisdiv>
17 <src:fragment xml:id="page.margin.inner.frag"><xsl:param name="page.margin.inner">
18   <xsl:choose>
19     <xsl:when test="$double.sided != 0">1.25in</xsl:when>
20     <xsl:otherwise>1in</xsl:otherwise>
21   </xsl:choose>
22 </xsl:param></src:fragment>
23 </refsynopsisdiv>
24
25 <refsection><info><title>Description</title></info>
26
27 <para>The inner page margin is the distance from bound edge of the
28 page to the first column of text. </para>
29
30 <para>The inner page margin is the distance from bound edge of the
31 page to the outer edge of the first column of text.</para>
32
33 <para>In left-to-right text direction,
34 this is the left margin of recto (front side) pages.
35 For single-sided output, it is the left margin
36 of all pages.</para>
37
38 <para>In right-to-left text direction,
39 this is the right margin of recto pages.
40 For single-sided output, this is the
41 right margin of all pages.</para>
42
43 <note>
44 <para>Current versions (at least as of version 4.13)
45 of the XEP XSL-FO processor do not
46 correctly handle these margin settings for documents
47 with right-to-left text direction.
48 The workaround in that situation is to reverse
49 the values for <parameter>page.margin.inner</parameter>
50 and <parameter>page.margin.outer</parameter>, until
51 this bug is fixed by RenderX.  It does not affect documents
52 with left-to-right text direction.</para>
53 </note>
54
55 </refsection>
56 </refentry>