1 <?xml version='1.0' encoding='utf-8'?>
3 <!-- XHTML-to-Memoir converter by Fletcher Penney
4 specifically designed for use with MultiMarkdown created XHTML
6 Uses the LaTeX memoir class for output with the twoside option
8 MultiMarkdown Version 2.0.b5
10 $Id: memoir-twosided.xslt 479 2008-01-12 23:04:13Z fletcher $
14 # Copyright (C) 2005-2008 Fletcher T. Penney <fletcher@fletcherpenney.net>
16 # This program is free software; you can redistribute it and/or modify
17 # it under the terms of the GNU General Public License as published by
18 # the Free Software Foundation; either version 2 of the License, or
19 # (at your option) any later version.
21 # This program is distributed in the hope that it will be useful,
22 # but WITHOUT ANY WARRANTY; without even the implied warranty of
23 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 # GNU General Public License for more details.
26 # You should have received a copy of the GNU General Public License
27 # along with this program; if not, write to the
28 # Free Software Foundation, Inc.
29 # 59 Temple Place, Suite 330
30 # Boston, MA 02111-1307 USA
35 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
36 xmlns:html="http://www.w3.org/1999/xhtml"
39 <xsl:import href="memoir.xslt"/>
41 <xsl:output method='text' encoding='utf-8'/>
43 <xsl:strip-space elements="*" />
45 <xsl:template match="/">
46 <xsl:apply-templates select="html:html/html:head"/>
47 <xsl:apply-templates select="html:html/html:body"/>
48 <xsl:call-template name="latex-footer"/>
51 <xsl:template name="latex-document-class">
52 <xsl:text>\documentclass[10pt,twoside]{memoir}
53 \usepackage{layouts}[2001/04/29]
57 \def\mychapterstyle{default}
58 \def\mypagestyle{headings}