- Enable FOP extensions, which eliminate most of the warnings and turn on
some advanced features, like PDF bookmarks. - Allow breaking lines of verbatim elements at spaces. Such a break is denoted with a special arrow symbol. This technique is commonly used in technical books to present long source lines. - Use other monospace font, that has an appropriate arrow symbol for this. - Add some padding to verbatim environments.
This commit is contained in:
parent
d6eaaa9699
commit
617b5b57d2
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/projects/db5/; revision=42285
1 changed files with 10 additions and 3 deletions
|
@ -18,6 +18,9 @@
|
|||
FO-SPECIFIC PARAMETER SETTINGS
|
||||
-->
|
||||
|
||||
<!-- We use FOP -->
|
||||
<xsl:param name="fop1.extensions" select="1"/>
|
||||
|
||||
<!-- Paper settings -->
|
||||
<xsl:param name="paper.type">B5</xsl:param>
|
||||
<xsl:param name="double.sided" select="1"/>
|
||||
|
@ -76,11 +79,12 @@
|
|||
|
||||
<!-- Hyphenation -->
|
||||
<xsl:param name="hyphenate">true</xsl:param>
|
||||
<xsl:param name="hyphenate.verbatim" select="0"/>
|
||||
<xsl:param name="hyphenate.verbatim" select="1"/>
|
||||
<xsl:param name="hyphenate.verbatim.characters"> </xsl:param>
|
||||
|
||||
<!-- Base Fonts -->
|
||||
<xsl:param name="body.font.master">9.5</xsl:param>
|
||||
<xsl:param name="monospace.font.family">DejaVu Sans Mono</xsl:param>
|
||||
|
||||
<!-- Property sets -->
|
||||
<xsl:attribute-set name="chapter.title.properties">
|
||||
|
@ -139,14 +143,17 @@
|
|||
<xsl:attribute name="space-before">12pt</xsl:attribute>
|
||||
<xsl:attribute name="space-after">0</xsl:attribute>
|
||||
<xsl:attribute name="hyphenate">false</xsl:attribute>
|
||||
<xsl:attribute name="wrap-option">no-wrap</xsl:attribute>
|
||||
<xsl:attribute name="white-space-collapse">false</xsl:attribute>
|
||||
<xsl:attribute name="white-space-treatment">preserve</xsl:attribute>
|
||||
<xsl:attribute name="linefeed-treatment">preserve</xsl:attribute>
|
||||
<xsl:attribute name="text-align">start</xsl:attribute>
|
||||
<xsl:attribute name="background-color">rgb(192,192,192)</xsl:attribute>
|
||||
<xsl:attribute name="wrap-option">wrap</xsl:attribute>
|
||||
<xsl:attribute name="hyphenation-character">◄</xsl:attribute>
|
||||
<xsl:attribute name="hyphenation-character">↺</xsl:attribute>
|
||||
<xsl:attribute name="padding-right">3pt</xsl:attribute>
|
||||
<xsl:attribute name="padding-top">3pt</xsl:attribute>
|
||||
<xsl:attribute name="padding-left">3pt</xsl:attribute>
|
||||
<xsl:attribute name="padding-bottom">3pt</xsl:attribute>
|
||||
</xsl:attribute-set>
|
||||
|
||||
<xsl:attribute-set name="table.caption.properties">
|
||||
|
|
Loading…
Reference in a new issue