diff options
author | Manuel Canales Esparcia <manuel@linuxfromscratch.org> | 2004-05-08 14:19:53 +0000 |
---|---|---|
committer | Manuel Canales Esparcia <manuel@linuxfromscratch.org> | 2004-05-08 14:19:53 +0000 |
commit | ded6dddb89cade026e592cd386790b5b10e6fe00 (patch) | |
tree | 3e628a075a59b9ee298376729b44a4151d039c59 /stylesheets/lfs-tex.xsl | |
parent | e4bf4c7e72fabd039b21b78313d43ce2138c1e7d (diff) |
Updated the stylesheets to their current version.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3529 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'stylesheets/lfs-tex.xsl')
-rw-r--r-- | stylesheets/lfs-tex.xsl | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/stylesheets/lfs-tex.xsl b/stylesheets/lfs-tex.xsl new file mode 100644 index 000000000..a312c5214 --- /dev/null +++ b/stylesheets/lfs-tex.xsl @@ -0,0 +1,78 @@ +<?xml version='1.0' encoding='ISO-8859-1'?> + +<!-- Created by Larry Lawrence <larry@linuxfromscratch.org> --> + +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" +version='1.0'> + +<xsl:import href="http://db2latex.sourceforge.net/xsl/docbook.xsl"/> +<xsl:output method="text" encoding="ISO-8859-1" indent="yes"/> +<xsl:variable name="latex.override"> + +\documentclass[12pt]{book} + +\usepackage{lfs} +\usepackage{fancyhdr} +\usepackage{fancyvrb} +\usepackage{makeidx} +\usepackage{hyperref} +\usepackage{fancybox} + +\oddsidemargin -0.5in +\evensidemargin -0.625in +\textwidth 7in +\textheight 8.5in + +%\ifx\pdfoutput\undefined +%\else +%\pdfpagewidth=7in +%\pdfpageheight=8.5in +%\fi + +\pagestyle{fancy} +\newenvironment{admonition}[2] { + \vspace{8mm} + \hspace{0mm}\newline + \noindent +} + + +\fancyhf{} +\fancyhead[LE,RO]{\bfseries\thepage} +\fancyhead[LO]{\bfseries\rightmark} +\fancyhead[RE]{\bfseries\leftmark} +\renewcommand{\headrulewidth}{0.5pt} +\renewcommand{\footrulewidth}{0pt} +\addtolength{\headheight}{3pt} +\fancypagestyle{plain}{% + \fancyhead{} + \renewcommand{\headrulewidth}{0pt} +} + + +\hyphenation{change-log cpp-flags ctrlaltdel ma-cros chil-ton} + +<!-- adds \frontmatter to document --> + +</xsl:variable> + +<xsl:variable name="toc.section.depth">1</xsl:variable> + +<xsl:variable name="latex.book.begindocument"> + <xsl:text>\begin{document} </xsl:text> + <xsl:text>\frontmatter </xsl:text> +</xsl:variable> + +<!-- This put each section on a new page in the preface section --> + +<xsl:template match="preface/sect1"> + <xsl:text> </xsl:text> + <xsl:text>\newpage </xsl:text> + <xsl:text>\section*{</xsl:text><xsl:copy-of +select="normalize-space(title)"/><xsl:text>} </xsl:text> + <xsl:apply-templates/> +</xsl:template> + + + +</xsl:stylesheet> |