Mercurial > hgbook
comparison stylesheets/fo.xsl @ 728:bae6d1503482
Rename xsl to stylesheets
author | Dongsheng Song <dongsheng.song@gmail.com> |
---|---|
date | Thu, 12 Mar 2009 17:11:59 +0800 |
parents | xsl/fo.xsl@3c5e1c03cc3e |
children | 4e8f302ae313 |
comparison
equal
deleted
inserted
replaced
727:0e3d8f66bbb7 | 728:bae6d1503482 |
---|---|
1 <?xml version="1.0"?> | |
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'> | |
3 | |
4 <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"/> | |
5 | |
6 <xsl:param name="draft.mode" select="no"/> | |
7 | |
8 <!-- These extensions are required for table printing and other stuff --> | |
9 <xsl:param name="use.extensions">1</xsl:param> | |
10 <xsl:param name="callouts.extension">1</xsl:param> | |
11 <xsl:param name="linenumbering.extension">1</xsl:param> | |
12 <xsl:param name="tablecolumns.extension">1</xsl:param> | |
13 <xsl:param name="textinsert.extension">1</xsl:param> | |
14 | |
15 <xsl:param name="admon.graphics" select="1" /> | |
16 <xsl:param name="admon.graphics.extension">.png</xsl:param> | |
17 <xsl:param name="callout.graphics" select="1" /> | |
18 <xsl:param name="callout.graphics.extension">.png</xsl:param> | |
19 | |
20 <xsl:param name="section.autolabel" select="1" /> | |
21 <xsl:param name="section.label.includes.component.label">1</xsl:param> | |
22 | |
23 <xsl:param name="variablelist.as.blocks" select="1" /> <!-- fo only --> | |
24 <xsl:param name="hyphenate">false</xsl:param> <!-- fo only --> | |
25 <xsl:param name="paper.type" select="'A4'"></xsl:param> <!-- fo only --> | |
26 | |
27 <!-- Default font settings --> | |
28 <!-- | |
29 <xsl:param name="title.font.family">sans-serif</xsl:param> | |
30 <xsl:param name="body.font.family">serif</xsl:param> | |
31 <xsl:param name="sans.font.family">sans-serif</xsl:param> | |
32 <xsl:param name="dingbat.font.family">serif</xsl:param> | |
33 <xsl:param name="monospace.font.family">monospace</xsl:param> | |
34 <xsl:param name="symbol.font.family">Symbol,ZapfDingbats</xsl:param> | |
35 --> | |
36 | |
37 <!-- Custom font settings - preferred truetype font --> | |
38 <xsl:param name="title.font.family">Calibri,sans-serif,SimHei</xsl:param> | |
39 <xsl:param name="body.font.family">Cambria,Cambria Math,serif,SimSun</xsl:param> | |
40 <xsl:param name="sans.font.family">Calibri,sans-serif,SimHei</xsl:param> | |
41 <xsl:param name="dingbat.font.family">Cambria,Cambria Math,serif,SimSun</xsl:param> | |
42 <xsl:param name="monospace.font.family">Courier New,monospace,FangSong</xsl:param> | |
43 | |
44 <!-- Page related Settings --> | |
45 <xsl:param name="page.margin.inner">1.5cm</xsl:param> | |
46 <xsl:param name="page.margin.outer">1.5cm</xsl:param> | |
47 <xsl:param name="title.margin.left">0pt</xsl:param> | |
48 <xsl:param name="body.start.indent">24pt</xsl:param> | |
49 <xsl:param name="body.end.indent">0pt</xsl:param> | |
50 | |
51 <!-- Breaking long lines --> | |
52 <xsl:param name="hyphenate.verbatim">1</xsl:param> | |
53 <xsl:attribute-set name="monospace.verbatim.properties" | |
54 use-attribute-sets="verbatim.properties monospace.properties"> | |
55 <xsl:attribute name="wrap-option">wrap</xsl:attribute> | |
56 <xsl:attribute name="hyphenation-character">►</xsl:attribute> | |
57 </xsl:attribute-set> | |
58 | |
59 <!-- Prevent blank pages in output --> | |
60 <xsl:template name="book.titlepage.before.verso"> | |
61 </xsl:template> | |
62 <xsl:template name="book.titlepage.verso"> | |
63 </xsl:template> | |
64 <xsl:template name="book.titlepage.separator"> | |
65 </xsl:template> | |
66 | |
67 <!-- Colourize links in output --> | |
68 <xsl:attribute-set name="xref.properties"> | |
69 <xsl:attribute name="color"> | |
70 <xsl:choose> | |
71 <xsl:when test="self::ulink">blue</xsl:when> | |
72 <xsl:when test="self::xref">blue</xsl:when> | |
73 <xsl:when test="self::uri">blue</xsl:when> | |
74 <xsl:otherwise>red</xsl:otherwise> | |
75 </xsl:choose> | |
76 </xsl:attribute> | |
77 </xsl:attribute-set> | |
78 | |
79 </xsl:stylesheet> |