source: stylesheets/blfs-tex.xsl@ 074d177

6.0
Last change on this file since 074d177 was e9e9b47, checked in by Larry Lawrence <larry@…>, 20 years ago

add TeX option to Makefile

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1985 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\documentclass[12pt]{book}
10
11\usepackage{lfs}
12\usepackage{fancyhdr}
13\usepackage{fancyvrb}
14\usepackage{makeidx}
15\usepackage{hyperref}
16\usepackage{fancybox}
17
18\oddsidemargin -0.5in
19\evensidemargin -0.625in
20\textwidth 7in
21\textheight 8.5in
22
23%\ifx\pdfoutput\undefined
24%\else
25%\pdfpagewidth=7in
26%\pdfpageheight=8.5in
27%\fi
28
29\pagestyle{fancy}
30\newenvironment{admonition}[2] {
31 \vspace{8mm}
32 \hspace{0mm}\newline
33 \noindent
34}
35
36
37\fancyhf{}
38\fancyhead[LE,RO]{\bfseries\thepage}
39\fancyhead[LO]{\bfseries\rightmark}
40\fancyhead[RE]{\bfseries\leftmark}
41\renewcommand{\headrulewidth}{0.5pt}
42\renewcommand{\footrulewidth}{0pt}
43\addtolength{\headheight}{3pt}
44\fancypagestyle{plain}{%
45 \fancyhead{}
46 \renewcommand{\headrulewidth}{0pt}
47}
48
49
50\hyphenation{change-log cpp-flags ctrlaltdel ma-cros chil-ton}
51
52<!-- adds \frontmatter to document -->
53
54</xsl:variable>
55
56<xsl:variable name="toc.section.depth">1</xsl:variable>
57
58<xsl:variable name="latex.book.begindocument">
59 <xsl:text>\begin{document}&#10;</xsl:text>
60 <xsl:text>\frontmatter&#10;</xsl:text>
61</xsl:variable>
62
63<!-- This put each section on a new page in the preface section -->
64
65<xsl:template match="preface/sect1">
66 <xsl:text>&#10;</xsl:text>
67 <xsl:text>\newpage&#10;</xsl:text>
68 <xsl:text>\section*{</xsl:text><xsl:copy-of
69select="normalize-space(title)"/><xsl:text>}&#10;</xsl:text>
70 <xsl:apply-templates/>
71</xsl:template>
72
73
74
75</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.