]> git.evergreen-ils.org Git - working/Evergreen.git/blob - stylesheets/styleguide/evergreen_fo.xsl
stylesheet changes.
[working/Evergreen.git] / stylesheets / styleguide / evergreen_fo.xsl
1 <?xml version='1.0'?>\r
2 <xsl:stylesheet  \r
3     xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">\r
4 \r
5 <xsl:import href="docbook-xsl/fo/docbook.xsl"/>  \r
6 \r
7 <!-- main pdf stylesheet -->\r
8 <!--<xsl:import href="evergreen_titlepage.templates.xsl"/>--> <!-- custom title font sizes and layout -->\r
9 <xsl:import href="evergreen_titlepage.xsl"/> <!-- hide revisions and set section.title.levelx.properties -->\r
10 \r
11 \r
12 <xsl:import href="evergreen_pagesetup.xsl"/> <!-- custom header/footer -->\r
13 <xsl:import href="docbook-xsl/fo/evergreen_inline.xsl"/> <!-- custom inline styles (italics for giumenu, etc), must be in /fo/ to work -->\r
14 <xsl:import href="evergreen_fo_graphics.xsl"/>  <!-- customized graphics.xsl, scales pdf images to 75% unless scale="x" or scalefit="1" -->\r
15 \r
16 <xsl:param name="page.margin.inner" select="'0.75in'"/>\r
17 <xsl:param name="page.margin.outer" select="'0.75in'"/>\r
18 <xsl:param name="page.margin.top" select="'0.2in'"/>\r
19 <xsl:param name="keep.relative.image.uris" select="0"/>\r
20 <xsl:param name="admon.graphics" select="1"/> <!-- adds image for note, tip, and caution -->\r
21 <xsl:param name="admon.textlabel" select="0"/> <!-- removes title of note, tip, and caution -->\r
22 <xsl:param name="admon.graphics.path" select="'media/'"/>\r
23 <xsl:param name="use.role.for.media.object" select="1"/>\r
24 <xsl:param name="ulink.show" select="0"/>\r
25 <xsl:param name="fop1.extensions" select="1" />\r
26 <xsl:param name="callout.graphics" select="1" />\r
27 <xsl:param name="callout.graphics.extension" select="'.png'" />\r
28 <xsl:param name="callout.graphics.path" select="'../media/'" />\r
29 <xsl:param name="tablecolumns.extension" select="0" />\r
30 <xsl:param name="menuchoice.menu.separator"> &#x2192; </xsl:param>\r
31 \r
32 <xsl:param name="header.rule" select="0"/> <!-- remove header horizontal rule -->\r
33 <xsl:param name="body.start.indent" select="'0pt'"/> <!-- reduce left-indent to provide more content space -->\r
34 <xsl:param name="body.font.master" select="'11'"/>\r
35 <xsl:param name="glossary.sort" select="1"/> <!-- sort glossterms aphabetically regardless of order in xml docs -->\r
36 <xsl:param name="glossterm.separation" select="'0.1in'"/> <!-- vertical space between term and definition paragraph -->\r
37 <xsl:param name="hyphenate">false</xsl:param> <!-- hyphenation pattern not installed yet, turn off to avoid output error -->\r
38 <xsl:param name="body.font.family">serif</xsl:param>\r
39 <xsl:param name="dingbat.font.family">serif</xsl:param>\r
40 <!--<xsl:param name="symbol.font.family">Symbol,ZapfDingbats</xsl:param>-->\r
41 <xsl:param name="footer.column.widths">8 1 1</xsl:param> <!-- set relative width of footer columns, leaving plenty of room for chapter titles -->\r
42   \r
43   <!-- set some footer properties -->\r
44 <xsl:attribute-set name="footer.content.properties">\r
45   <xsl:attribute name="font-family">serif</xsl:attribute>\r
46   <xsl:attribute name="font-size">9pt</xsl:attribute>\r
47   <xsl:attribute name="padding-top">5pt</xsl:attribute>\r
48 </xsl:attribute-set>\r
49 \r
50 \r
51 <!-- define empty header.content template to override default template from fo/pagesetup.xsl with no header -->\r
52 <xsl:template name="header.content">\r
53 </xsl:template>\r
54 \r
55 <!-- keep step text and images together, not split by page breaks -->\r
56   <xsl:attribute-set name="informal.object.properties">\r
57   <xsl:attribute name="keep-together.within-column">always</xsl:attribute>\r
58 </xsl:attribute-set>\r
59 \r
60 <!-- set link color/style in pdf cross references -->\r
61 <xsl:attribute-set name="xref.properties">\r
62   <xsl:attribute name="color">#304F14</xsl:attribute>\r
63   <xsl:attribute name="text-decoration">underline</xsl:attribute>  \r
64 </xsl:attribute-set>\r
65   \r
66  \r
67 <!-- set link color/style for link tag --> \r
68   <xsl:attribute-set name="link.properties">\r
69     <xsl:attribute name="color">#304F14</xsl:attribute>\r
70     <xsl:attribute name="text-decoration">underline</xsl:attribute>    \r
71   </xsl:attribute-set>\r
72   \r
73 <!-- formatting of admonitions - note, caution, tip -->\r
74   <xsl:attribute-set name="graphical.admonition.properties">\r
75     <xsl:attribute name="font-size">10pt</xsl:attribute>   \r
76     <xsl:attribute name="border">0.5pt solid #304F14</xsl:attribute> \r
77     <xsl:attribute name="padding">1pt</xsl:attribute>\r
78   </xsl:attribute-set>\r
79   \r
80   <xsl:attribute-set name="admonition.properties">\r
81     <xsl:attribute name="margin-right">0.1in</xsl:attribute>\r
82     <xsl:attribute name="margin-top">0.1in</xsl:attribute>\r
83     <xsl:attribute name="margin-bottom">0.1in</xsl:attribute>\r
84   </xsl:attribute-set>\r
85 \r
86  \r
87  <!-- format pdf table of contents -->\r
88   <xsl:attribute-set name="toc.line.properties">\r
89     <xsl:attribute name="color">#304F14</xsl:attribute>\r
90     <xsl:attribute name="font-size">10pt</xsl:attribute> \r
91     <xsl:attribute name="font-family">serif</xsl:attribute>\r
92     <xsl:attribute name="text-decoration">underline</xsl:attribute>  \r
93   </xsl:attribute-set>\r
94   \r
95 <!-- properties for informal tables, especially to allow breaking across pages -->\r
96   \r
97   <xsl:attribute-set name="informaltable.properties">\r
98     <xsl:attribute name="font-size">10pt</xsl:attribute>\r
99 <xsl:attribute name="width">100%</xsl:attribute>    \r
100     <xsl:attribute name="keep-together.within-column">auto</xsl:attribute>\r
101   </xsl:attribute-set>\r
102  \r
103  <xsl:attribute-set name="table.properties">\r
104 <xsl:attribute name="width">100%</xsl:attribute>    \r
105     <xsl:attribute name="keep-together.within-column">auto</xsl:attribute>\r
106   </xsl:attribute-set>\r
107 \r
108 <xsl:attribute-set name="monospace.verbatim.properties">\r
109 <!--<xsl:attribute name="font-family">Lucida Sans Typewriter</xsl:attribute>-->\r
110   <xsl:attribute name="font-size">8pt</xsl:attribute>\r
111   <xsl:attribute name="keep-together.within-column">always</xsl:attribute>\r
112 </xsl:attribute-set>\r
113 \r
114 \r
115 </xsl:stylesheet>\r