source: stylesheets/blfs-tex.xsl@ 1423d58f

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 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 1423d58f 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.