source: stylesheets/lfs-tex.xsl@ 439a299

Last change on this file since 439a299 was bf8c11f, checked in by Jim Gifford <clfs@…>, 19 years ago

r627@server (orig r625): jim | 2005-10-31 12:59:34 -0800
Import of Cross-LFS Book

  • Property mode set to 100644
File size: 1.7 KB
Line 
1<?xml version='1.0' encoding='ISO-8859-1'?>
2
3<!-- Created by Larry Lawrence <larry@linuxfromscratch.org> -->
4
5<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6version='1.0'>
7
8<xsl:import href="http://db2latex.sourceforge.net/xsl/docbook.xsl"/>
9<xsl:output method="text" encoding="ISO-8859-1" indent="yes"/>
10<xsl:variable name="latex.override">
11
12\documentclass[12pt]{book}
13
14\usepackage{lfs}
15\usepackage{fancyhdr}
16\usepackage{fancyvrb}
17\usepackage{makeidx}
18\usepackage{hyperref}
19\usepackage{fancybox}
20
21\oddsidemargin -0.5in
22\evensidemargin -0.625in
23\textwidth 7in
24\textheight 8.5in
25
26%\ifx\pdfoutput\undefined
27%\else
28%\pdfpagewidth=7in
29%\pdfpageheight=8.5in
30%\fi
31
32\pagestyle{fancy}
33\newenvironment{admonition}[2] {
34 \vspace{8mm}
35 \hspace{0mm}\newline
36 \noindent
37}
38
39
40\fancyhf{}
41\fancyhead[LE,RO]{\bfseries\thepage}
42\fancyhead[LO]{\bfseries\rightmark}
43\fancyhead[RE]{\bfseries\leftmark}
44\renewcommand{\headrulewidth}{0.5pt}
45\renewcommand{\footrulewidth}{0pt}
46\addtolength{\headheight}{3pt}
47\fancypagestyle{plain}{%
48 \fancyhead{}
49 \renewcommand{\headrulewidth}{0pt}
50}
51
52
53\hyphenation{change-log cpp-flags ctrlaltdel ma-cros chil-ton}
54
55<!-- adds \frontmatter to document -->
56
57</xsl:variable>
58
59<xsl:variable name="toc.section.depth">1</xsl:variable>
60
61<xsl:variable name="latex.book.begindocument">
62 <xsl:text>\begin{document}&#10;</xsl:text>
63 <xsl:text>\frontmatter&#10;</xsl:text>
64</xsl:variable>
65
66<!-- This put each section on a new page in the preface section -->
67
68<xsl:template match="preface/sect1">
69 <xsl:text>&#10;</xsl:text>
70 <xsl:text>\newpage&#10;</xsl:text>
71 <xsl:text>\section*{</xsl:text><xsl:copy-of
72select="normalize-space(title)"/><xsl:text>}&#10;</xsl:text>
73 <xsl:apply-templates/>
74</xsl:template>
75
76</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.