summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2015-11-01 05:08:27 -0800
committerKeith Packard <keithp@keithp.com>2015-11-01 06:02:14 -0800
commit13d03ee8ba3a300ef2a3a380b60f08dbe37793b0 (patch)
tree0e2d6dbf60541dd9bcc5c095031e5a15632b43d6
parent553d9041b52cbb88662fcc5e6a277ce43bd151cd (diff)
doc: Make pdf titles less ridiculously large
Instead of having them grow at 20% per nesting level, use 10% instead. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--doc/am-fo.xsl45
1 files changed, 40 insertions, 5 deletions
diff --git a/doc/am-fo.xsl b/doc/am-fo.xsl
index 2166afd4..5743a24c 100644
--- a/doc/am-fo.xsl
+++ b/doc/am-fo.xsl
@@ -33,7 +33,7 @@
<xsl:param name="body.font.family" select="'Open Sans Light,sans-serif'"/>
<xsl:param name="title.font.family" select="'Open Sans Light,sans-serif'"/>
<xsl:param name="monospace.font.family" select="'DejaVu Sans Mono,monospace'"/>
-<xsl:param name="body.font.master">12</xsl:param>
+<xsl:param name="body.font.master">11</xsl:param>
<xsl:param name="body.font.size">
<xsl:value-of select="$body.font.master"/><xsl:text>pt</xsl:text>
</xsl:param>
@@ -112,14 +112,49 @@
<xsl:param name="table.cell.border.color">#0080ff</xsl:param>
<xsl:param name="table.cell.border.with.css" select="1"/>
+<xsl:attribute-set name="component.title.properties">
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="$body.font.master * 1.61051"/>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+</xsl:attribute-set>
+
+<xsl:attribute-set name="section.title.level1.properties">
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="$body.font.master * 1.4641"/>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+</xsl:attribute-set>
+
+<xsl:attribute-set name="section.title.level2.properties">
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="$body.font.master * 1.331"/>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+</xsl:attribute-set>
+
+<xsl:attribute-set name="section.title.level3.properties">
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="$body.font.master * 1.21"/>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+</xsl:attribute-set>
+
+<xsl:attribute-set name="section.title.level4.properties">
+ <xsl:attribute name="font-size">
+ <xsl:value-of select="$body.font.master * 1.1"/>
+ <xsl:text>pt</xsl:text>
+ </xsl:attribute>
+</xsl:attribute-set>
+
<xsl:attribute-set name="copyright.title.properties">
- <xsl:attribute name="font-size">12pt</xsl:attribute>
+ <xsl:attribute name="font-size">11pt</xsl:attribute>
<xsl:attribute name="font-weight">bold</xsl:attribute>
<xsl:attribute name="text-align">center</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="revhistory.title.properties">
- <xsl:attribute name="font-size">12pt</xsl:attribute>
+ <xsl:attribute name="font-size">11pt</xsl:attribute>
<xsl:attribute name="font-weight">bold</xsl:attribute>
<xsl:attribute name="text-align">center</xsl:attribute>
</xsl:attribute-set>
@@ -131,12 +166,12 @@
<xsl:attribute-set name="revhistory.table.cell.properties">
<xsl:attribute name="border">0.5pt solid #0080ff</xsl:attribute>
- <xsl:attribute name="font-size">12pt</xsl:attribute>
+ <xsl:attribute name="font-size">11pt</xsl:attribute>
<xsl:attribute name="padding">2pt</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="monospace.properties">
- <xsl:attribute name="font-size">9pt</xsl:attribute>
+ <xsl:attribute name="font-size">11pt</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="component.title.properties">