source: stylesheets/lfs-xsl/pdf.xsl@ 65b2904

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 65b2904 was 65b2904, checked in by Manuel Canales Esparcia <manuel@…>, 17 years ago

Added LFS-XSL Stylesheets files.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@6840 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • 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-snapshot/fo/docbook.xsl"/>
18
19 <!-- Uncomment the next for debugging the raw FO code.
20 Note that FOP will complaints about a lot of paragraph overflows
21 due that 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 <!-- Activating FOP-1 extensions. We use FOP-0.93 as the FO procesor. -->
36 <xsl:param name="fop1.extensions" select="1"/>
37
38 <!-- Desactivate draft mode at all. -->
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 <!-- Specifies the default point size for body text.
71 Used for titles size calculation. -->
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 now @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 some times we may need hard page breaks for final book versions. -->
102 <!-- To know how to use all that 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.