source: stylesheets/lfs-xsl/pdf.xsl@ 6f367b1

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 7.5 7.6 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 6f367b1 was 6f367b1, checked in by Matthew Burgess <matthew@…>, 11 years ago

Fix PDF book generation. Fixes #3412.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10361 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

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