Accept attributes in inline image syntax
[multimarkdown] / XSLT / memoir-xelatex.xslt
1 <?xml version='1.0' encoding='utf-8'?>
2
3 <!-- XHTML-to-Memoir converter by Fletcher Penney
4         specifically designed for use with MultiMarkdown created XHTML
5
6         Uses the LaTeX memoir class for output
7         
8         Modified for use XeLaTeX (suggested by Talazem Al-Azem)
9         
10         MultiMarkdown Version 2.0.b5
11         
12         $Id: memoir-xelatex.xslt 479 2008-01-12 23:04:13Z fletcher $
13 -->
14
15 <!-- 
16 # Copyright (C) 2005-2008  Fletcher T. Penney <fletcher@fletcherpenney.net>
17 #
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.
22 #
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.
27 #
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
33 -->
34
35         
36 <xsl:stylesheet
37         xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
38         xmlns:html="http://www.w3.org/1999/xhtml"
39         version="1.0">
40
41         <xsl:import href="memoir.xslt"/>
42         
43         <xsl:output method='text' encoding='utf-8'/>
44
45         <xsl:strip-space elements="*" />
46
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"/>
51         </xsl:template>
52
53         <xsl:template name="latex-header">
54                 <xsl:text>\usepackage{fontspec}
55 \setromanfont[Mapping=tex-text]{Palatino}
56
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)
63
64 %\geometry{landscape}                   % Activate for rotated page geometry
65
66 %\usepackage[parfill]{parskip}  % Activate to begin paragraphs with an empty
67                                                                 % line rather than an indent
68
69
70 \def\myauthor{Author}                   % In case these were not included in metadata
71 \def\mytitle{Title}
72 \def\mykeywords{}
73 \def\mybibliostyle{plain}
74 \def\bibliocommand{}
75
76 \VerbatimFootnotes
77 </xsl:text>
78         </xsl:template>
79
80
81 </xsl:stylesheet>