Improve PDF documentation margins

Set body indent to 0 to make use of the horizontal space better (and
some reviewers thought it was also more readable).

Add some left and right margin to the warning boxes, otherwise they
drift too far off the page in combination with the above change.

Author: Noboru Saito <noborusai@gmail.com>
Reviewed-by: Hayato Kuroda (Fujitsu) <kuroda.hayato@fujitsu.com>
Reviewed-by: Florents Tselai <florents.tselai@gmail.com>
Reviewed-by: Tatsuo Ishii <ishii@postgresql.org>
Discussion: https://www.postgresql.org/message-id/flat/CAAM3qnLyMUD79XF+SqAVwWCwURCF3hyuFY9Ki9Csbqs-zMwwnw@mail.gmail.com
This commit is contained in:
Peter Eisentraut 2025-08-13 15:47:46 +02:00
parent 8081e54bc5
commit 37e06ba6e8

View File

@ -17,6 +17,8 @@
<xsl:param name="use.extensions" select="1"></xsl:param> <xsl:param name="use.extensions" select="1"></xsl:param>
<xsl:param name="variablelist.as.blocks" select="1"></xsl:param> <xsl:param name="variablelist.as.blocks" select="1"></xsl:param>
<xsl:param name="orderedlist.label.width">1.5em</xsl:param> <xsl:param name="orderedlist.label.width">1.5em</xsl:param>
<xsl:param name="body.start.indent">0</xsl:param>
<xsl:param name="body.end.indent">0</xsl:param>
<xsl:attribute-set name="monospace.verbatim.properties" <xsl:attribute-set name="monospace.verbatim.properties"
use-attribute-sets="verbatim.properties monospace.properties"> use-attribute-sets="verbatim.properties monospace.properties">
@ -27,6 +29,8 @@
<xsl:attribute name="border-style">solid</xsl:attribute> <xsl:attribute name="border-style">solid</xsl:attribute>
<xsl:attribute name="border-width">1pt</xsl:attribute> <xsl:attribute name="border-width">1pt</xsl:attribute>
<xsl:attribute name="border-color">black</xsl:attribute> <xsl:attribute name="border-color">black</xsl:attribute>
<xsl:attribute name="margin-left">0.25in</xsl:attribute>
<xsl:attribute name="margin-right">0.25in</xsl:attribute>
<xsl:attribute name="padding-start">12pt</xsl:attribute> <xsl:attribute name="padding-start">12pt</xsl:attribute>
<xsl:attribute name="padding-end">12pt</xsl:attribute> <xsl:attribute name="padding-end">12pt</xsl:attribute>
<xsl:attribute name="padding-top">6pt</xsl:attribute> <xsl:attribute name="padding-top">6pt</xsl:attribute>