2009-12-02 19:51:48 +00:00
|
|
|
|
<?xml version='1.0'?>
|
2004-08-06 21:06:27 +00:00
|
|
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
|
|
|
version="1.0">
|
|
|
|
|
|
2004-07-19 16:59:49 +00:00
|
|
|
|
<!-- import the main stylesheet -->
|
2004-08-06 21:06:27 +00:00
|
|
|
|
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"/>
|
|
|
|
|
|
2018-01-23 19:02:16 +00:00
|
|
|
|
<!-- page size -->
|
|
|
|
|
<!-- Create PA4 (210 × 280mm) pages: https://en.wikipedia.org/wiki/Paper_size#PA4_or_L4
|
|
|
|
|
This is the approximate intersection of A4 (210 × 297mm) and U.S.
|
|
|
|
|
Letter (216 × 279mm).
|
|
|
|
|
-->
|
|
|
|
|
<xsl:param name="paper.type">PA4</xsl:param>
|
|
|
|
|
<xsl:param name="page.width.portrait">210mm</xsl:param>
|
|
|
|
|
<xsl:param name="page.height.portrait">280mm</xsl:param>
|
|
|
|
|
|
2004-08-06 21:06:27 +00:00
|
|
|
|
<!-- create pdf bookmarks -->
|
2009-11-09 18:41:21 +00:00
|
|
|
|
<xsl:param name="fop1.extensions" select="1"/>
|
2004-08-06 21:06:27 +00:00
|
|
|
|
|
2006-09-08 07:45:22 +00:00
|
|
|
|
<!-- don't use the draft mode (no loading of image from the web) -->
|
|
|
|
|
<xsl:param name="draft.mode" select="no"/>
|
|
|
|
|
|
2004-08-06 21:06:27 +00:00
|
|
|
|
<!-- use graphics for admons (note, tip, ...) -->
|
|
|
|
|
<xsl:param name="admon.graphics" select="1"/>
|
2014-08-24 05:21:38 +00:00
|
|
|
|
<xsl:param name="admon.graphics.path">common_graphics/</xsl:param>
|
2014-07-24 01:28:32 +00:00
|
|
|
|
<xsl:param name="admon.graphics.extension" select="'.svg'"/>
|
2004-08-06 21:06:27 +00:00
|
|
|
|
|
|
|
|
|
<!-- use numbering for sections (not only for chapters) -->
|
|
|
|
|
<xsl:param name="section.autolabel" select="1"/>
|
|
|
|
|
<xsl:param name="section.label.includes.component.label" select="1"/>
|
|
|
|
|
|
2005-07-03 22:53:11 +00:00
|
|
|
|
<!-- include a single TOC (use book style TOC, removes the list of figures etc.) -->
|
|
|
|
|
<xsl:param name="generate.toc" select="'book toc'"/>
|
|
|
|
|
|
2004-08-06 21:06:27 +00:00
|
|
|
|
<!-- include page numbers in cross references -->
|
|
|
|
|
<!-- <xsl:param name="insert.xref.page.number" select="1"/> -->
|
|
|
|
|
|
|
|
|
|
<!-- don't show URL's, but only the text of it -->
|
|
|
|
|
<xsl:param name="ulink.show" select="0"/>
|
|
|
|
|
|
2005-07-03 22:53:11 +00:00
|
|
|
|
<!-- hyphenate URL's after the slash -->
|
2005-07-04 07:03:04 +00:00
|
|
|
|
<!-- (http://docbook.sourceforge.net/release/xsl/current/doc/fo/ulink.hyphenate.html) -->
|
2007-02-03 17:27:57 +00:00
|
|
|
|
<xsl:param name="ulink.hyphenate.chars" select="'/:'"></xsl:param>
|
|
|
|
|
<xsl:param name="ulink.hyphenate" select="'​'"></xsl:param>
|
2005-07-03 22:53:11 +00:00
|
|
|
|
|
|
|
|
|
<!-- don't allow section titles to be hyphenated -->
|
|
|
|
|
<xsl:attribute-set name="section.title.properties">
|
|
|
|
|
<xsl:attribute name="hyphenate">false</xsl:attribute>
|
|
|
|
|
</xsl:attribute-set>
|
|
|
|
|
|
2014-08-24 05:21:38 +00:00
|
|
|
|
<!-- put a page break after each section
|
2004-08-06 21:06:27 +00:00
|
|
|
|
<xsl:attribute-set name="section.level1.properties">
|
|
|
|
|
<xsl:attribute name="break-after">page</xsl:attribute>
|
2004-07-19 16:59:49 +00:00
|
|
|
|
</xsl:attribute-set>
|
2009-12-02 19:51:48 +00:00
|
|
|
|
-->
|
2004-07-19 16:59:49 +00:00
|
|
|
|
|
2004-08-06 21:06:27 +00:00
|
|
|
|
<!-- set link style to blue and underlined -->
|
|
|
|
|
<xsl:attribute-set name="xref.properties">
|
2004-07-19 16:59:49 +00:00
|
|
|
|
<xsl:attribute name="color">blue</xsl:attribute>
|
2004-08-06 21:06:27 +00:00
|
|
|
|
<xsl:attribute name="text-decoration">underline</xsl:attribute>
|
|
|
|
|
</xsl:attribute-set>
|
|
|
|
|
|
2007-02-03 17:27:57 +00:00
|
|
|
|
<!-- reduce the size of programlisting to make them fit the page -->
|
2016-09-22 22:43:37 +00:00
|
|
|
|
<!-- We might want to set the hyphenation character to "\":
|
|
|
|
|
http://www.sagehill.net/docbookxsl/FittingText.html
|
|
|
|
|
-->
|
2007-02-03 17:27:57 +00:00
|
|
|
|
<xsl:attribute-set name="monospace.verbatim.properties">
|
|
|
|
|
<xsl:attribute name="font-size">80%</xsl:attribute>
|
2016-09-22 22:43:37 +00:00
|
|
|
|
<xsl:attribute name="wrap-option">wrap</xsl:attribute>
|
2007-02-03 17:27:57 +00:00
|
|
|
|
</xsl:attribute-set>
|
|
|
|
|
|
2016-09-23 16:28:41 +00:00
|
|
|
|
<!-- Render AsciiDoc's labeled lists as blocks -->
|
|
|
|
|
<xsl:param name="variablelist.as.blocks" select="1"></xsl:param>
|
|
|
|
|
|
2016-09-23 22:17:28 +00:00
|
|
|
|
<!-- Increase the ordered list label width, otherwise we overflow
|
|
|
|
|
in some places.
|
|
|
|
|
-->
|
|
|
|
|
<xsl:param name="orderedlist.label.width">1.8em</xsl:param>
|
|
|
|
|
|
|
|
|
|
<!-- Right align ordered list labels. -->
|
|
|
|
|
<!-- Doesn't look right, disabled for now.
|
|
|
|
|
<xsl:attribute-set name="orderedlist.label.properties">
|
|
|
|
|
<xsl:attribute name="text-align">right</xsl:attribute>
|
|
|
|
|
</xsl:attribute-set>
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2004-07-19 16:59:49 +00:00
|
|
|
|
</xsl:stylesheet>
|