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
8 Modified for use XeLaTeX (suggested by Talazem Al-Azem)
10 MultiMarkdown Version 2.0.b5
12 $Id: memoir-xelatex.xslt 479 2008-01-12 23:04:13Z fletcher $
16 # Copyright (C) 2005-2008 Fletcher T. Penney <fletcher@fletcherpenney.net>
18 # This program is free software; you can redistribute it and/or modify
19 # it under the terms of the GNU General Public License as published by
20 # the Free Software Foundation; either version 2 of the License, or
21 # (at your option) any later version.
23 # This program is distributed in the hope that it will be useful,
24 # but WITHOUT ANY WARRANTY; without even the implied warranty of
25 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 # GNU General Public License for more details.
28 # You should have received a copy of the GNU General Public License
29 # along with this program; if not, write to the
30 # Free Software Foundation, Inc.
31 # 59 Temple Place, Suite 330
32 # Boston, MA 02111-1307 USA
37 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
38 xmlns:html="http://www.w3.org/1999/xhtml"
41 <xsl:import href="memoir.xslt"/>
43 <xsl:output method='text' encoding='utf-8'/>
45 <xsl:strip-space elements="*" />
47 <xsl:template match="/">
48 <xsl:apply-templates select="html:html/html:head"/>
49 <xsl:apply-templates select="html:html/html:body"/>
50 <xsl:call-template name="latex-footer"/>
53 <xsl:template name="latex-header">
54 <xsl:text>\usepackage{fontspec}
55 \setromanfont[Mapping=tex-text]{Palatino}
57 \usepackage{fancyvrb} % Allow \verbatim et al. in footnotes
58 \usepackage{graphicx} % To include graphics in pdf's (jpg, gif, png, etc)
59 \usepackage{booktabs} % Better tables
60 \usepackage{tabulary} % Support longer table cells
61 %\usepackage[utf8]{inputenc} % For UTF-8 support
62 \usepackage{xcolor} % Allow for color (annotations)
64 %\geometry{landscape} % Activate for rotated page geometry
66 %\usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty
67 % line rather than an indent
70 \def\myauthor{Author} % In case these were not included in metadata
73 \def\mybibliostyle{plain}