source: stylesheets/blfs-tex.xsl@ a20748c

6.2.0-rc1
Last change on this file since a20748c was 276015d2, checked in by Randy McMurchy <randy@…>, 17 years ago

Added the LastChangedBy and Date keywords then set the corresponding keyword property on each file in the repo

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

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