source: stylesheets/lfs-xsl/pdf.xsl@ eede1a3

11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since eede1a3 was ccded7e, checked in by Xi Ruoyao <xry111@…>, 3 years ago

clean up unused SVN prop entries

  • Property mode set to 100644
File size: 4.0 KB
Line 
1<?xml version='1.0' encoding='ISO-8859-1'?>
2
3<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 xmlns:fo="http://www.w3.org/1999/XSL/Format"
5 version="1.0">
6
7 <!-- Stylesheet for FO output used to generate PDF
8 Sets global params and include customization stylesheets. -->
9
10 <!-- Upstream FO templates. Profiled version is not supported by
11 xsltproc, thus pofiling must be done in two steps (see Makefile) -->
12 <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"/>
13
14 <!-- Uncomment the next for debugging the raw FO code.
15 Note that FOP will complaints about a lot of paragraph overflows
16 due that verbatim output is also indented.
17 Remember to comment the "rm $(BASEDIR)/lfs-pdf.fo" in
18 the Makefile. -->
19 <!--<xsl:output encoding="UTF-8" indent="yes" />-->
20
21 <!-- Including our others customized templates. -->
22 <xsl:include href="common.xsl"/>
23 <xsl:include href="pdf/lfs-admon.xsl"/>
24 <xsl:include href="pdf/lfs-index.xsl"/>
25 <xsl:include href="pdf/lfs-lists.xsl"/>
26 <xsl:include href="pdf/lfs-mixed.xsl"/>
27 <xsl:include href="pdf/lfs-pagesetup.xsl"/>
28 <xsl:include href="pdf/lfs-xref.xsl"/>
29
30 <!-- Activating FOP-1 extensions. We use FOP-0.93 as the FO procesor. -->
31 <xsl:param name="fop1.extensions" select="1"/>
32
33 <!-- Desactivate draft mode at all. -->
34 <xsl:param name="draft.mode" select="'no'"/>
35
36 <!-- Paper size -->
37 <xsl:param name="paper.type" select="'USletter'"/>
38
39 <!-- Paper size required by the publisher
40 <xsl:param name="paper.type" select="'Customized'"/>
41 <xsl:param name="page.width">7.25in</xsl:param>
42 <xsl:param name="page.height">9.25in</xsl:param>
43 -->
44
45 <!-- Is the document to be printed double sided? 1 = yes, 0 = no -->
46 <!-- Change "double.sided" to "1" for published versions. -->
47 <xsl:param name="double.sided" select="0"/>
48
49 <!-- Hyphenate? -->
50 <xsl:param name="hyphenate">false</xsl:param>
51
52 <!-- Allow URLs to be automatically hyphenated.
53 We have expanded the support to several inline tags.
54 See pdf/lfs-mixed.xsl -->
55 <xsl:param name="ulink.hyphenate" select="'&#x200B;'"/>
56
57 <!-- List of characters to allow ulink URLs, and supported inline tags,
58 to be automatically hyphenated on.
59 Note: the / character is in the list but FOP-0.93 ignores it. -->
60 <xsl:param name="ulink.hyphenate.chars" select="'/._-'"/>
61
62 <!-- Specify the default text alignment. -->
63 <xsl:param name="alignment">justify</xsl:param>
64
65 <!-- Specifies the default point size for body text.
66 Used for titles size calculation. -->
67 <xsl:param name="body.font.master">9</xsl:param>
68
69 <!-- Specifies the default font size for body text. -->
70 <xsl:param name="body.font.size">12pt</xsl:param>
71
72 <!-- Control generation of ToCs and LoTs -->
73 <xsl:param name="generate.toc">
74 book toc,title
75 part nop
76 </xsl:param>
77
78 <!-- How deep should recursive sections appear in the TOC? -->
79 <xsl:param name="toc.section.depth">1</xsl:param>
80
81 <!-- Amount of indentation for TOC entries. -->
82 <xsl:param name="toc.indent.width" select="18"/>
83
84 <!-- Turns page numbers in xrefs on and off. -->
85 <xsl:param name="insert.xref.page.number">no</xsl:param>
86
87 <!-- Display URLs after ulinks? 1 = yes, 0 = no
88 Set to 0 to prevent duplicate e-mails in the Acknowledgments pages. -->
89 <xsl:param name="ulink.show" select="0"/>
90
91 <!-- Processing instruction for hard page breaks.
92 FOP-0.93 supports now @keep-*.*, @orphans, and @widows attributes,
93 that solves several page break issues.
94 It also supports the soft page break procesing instruction included
95 in the DocBook stylesheets.
96 But some times we may need hard page breaks for final book versions. -->
97 <!-- To know how to use all that page break features, see
98 http://www.sagehill.net/docbookxsl/PageBreaking.html -->
99 <xsl:template match="processing-instruction('hard-pagebreak')">
100 <fo:block break-before='page'/>
101 </xsl:template>
102
103</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.