2 <xsl:stylesheet version="1.0"
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 xmlns="http://www.w3.org/TR/xhtml1/strict">
6 <xsl:strip-space elements="doc chapter section"/>
7 <xsl:output method="text" indent="yes" encoding="iso-8859-1"/>
9 <xsl:template match="article">
10 \documentclass[a4paper]{article}
16 <xsl:apply-templates/>
20 <xsl:template match="book">
21 \documentclass[a4paper]{book}
27 <xsl:apply-templates/>
31 <xsl:template match="report">
32 \documentclass[a4paper]{report}
38 <xsl:apply-templates/>
42 <xsl:template match="titlepage">
44 <xsl:apply-templates/>
48 <xsl:template match="title">
50 \sffamily\bfseries\LARGE{<xsl:apply-templates/>}
54 <xsl:template match="subtitle">
56 \sffamily\bfseries\Large{<xsl:apply-templates/>}
60 <xsl:template match="author">
62 \sffamily{<xsl:apply-templates/>}
66 <xsl:template match="date">
68 \sffamily{<xsl:apply-templates/>}
72 <xsl:template match="docinfo">
73 \begin{tabular}{|l|l|}
75 \multicolumn{2}{|c|}{\textbf{Document Information}} \\
77 <xsl:apply-templates/>
81 <xsl:template match="infoitem">
82 <xsl:value-of select="@label"/> &
83 <xsl:apply-templates/> \\
87 <xsl:template match="abstract">
90 \begin{bfseries}Abstract:\end{bfseries}
93 <xsl:apply-templates/>
97 <xsl:template match="toc">
102 <xsl:template match="chapter/heading">
103 \chapter{<xsl:apply-templates/>}
106 <xsl:template match="section/heading">
107 \section{<xsl:apply-templates/>}
110 <xsl:template match="subsection/heading">
111 \subsection{<xsl:apply-templates/>}
114 <xsl:template match="subsubsection/heading">
115 \subsubsection{<xsl:apply-templates/>}
118 <xsl:template match="paragraph/heading">
119 \paragraph{<xsl:apply-templates/>}
122 <xsl:template match="subparagraph/heading">
123 \subparagraph{<xsl:apply-templates/>}
126 <xsl:template match="para">
128 <xsl:apply-templates/>
131 <xsl:template match="quote">
133 <xsl:apply-templates/>
137 <xsl:template match="verbatim">
139 <xsl:apply-templates/>
143 <xsl:template match="example">
145 <xsl:apply-templates/>
149 <xsl:template match="itemize">
151 <xsl:apply-templates/>
155 <xsl:template match="enumerate">
157 <xsl:apply-templates/>
161 <xsl:template match="description">
163 <xsl:apply-templates/>
167 <xsl:template match="itemize/item">
168 \item <xsl:apply-templates/>
171 <xsl:template match="enumerate/item">
172 \item <xsl:apply-templates/>
175 <xsl:template match="description/item">
176 \item[<xsl:value-of select='@tag'/>] <xsl:apply-templates/>
179 <xsl:template match="footnote">\footnote{<xsl:apply-templates/>}</xsl:template>
181 <xsl:template match="emph">\begin{itshape}<xsl:apply-templates/>\end{itshape}</xsl:template>
183 <xsl:template match="strong">\begin{bfseries}<xsl:apply-templates/>\end{bfseries}</xsl:template>
185 <xsl:template match="code">\begin{ttfamily}<xsl:apply-templates/>\end{ttfamily}</xsl:template>
187 <xsl:template match="remark">\begin{slshape}<xsl:apply-templates/>\end{slshape}</xsl:template>
189 <xsl:template match="sub">$_{<xsl:apply-templates/>}$</xsl:template>
190 <xsl:template match="sup">$^{<xsl:apply-templates/>}$</xsl:template>
192 <xsl:template match="color">\textcolor{<xsl:value-of select="@colorname"/>}{<xsl:apply-templates/>}</xsl:template>
194 <xsl:template match="big">\large{<xsl:apply-templates/>}</xsl:template>
195 <xsl:template match="small">\small{<xsl:apply-templates/>}</xsl:template>
197 <xsl:template match="newline">\\</xsl:template>
198 <xsl:template match="newpage">\newpage</xsl:template>
200 <xsl:template match="table">
201 \begin{tabular}{<xsl:value-of select="@cpos"/>c}
202 <xsl:apply-templates/>
206 <xsl:template match="thead">
207 <xsl:apply-templates/>\\
210 <xsl:template match="thead/col">
211 \begin{bfseries}<xsl:apply-templates/>\end{bfseries}&
214 <xsl:template match="row">
215 <xsl:apply-templates/>\\
218 <xsl:template match="row/col">
219 <xsl:apply-templates/>&
222 <xsl:template match="picture">
223 \scalebox{<xsl:value-of select="@scale"/>}{\includegraphics{<xsl:value-of select="@eps"/>}}
226 <xsl:template match="label">\label{<xsl:value-of select="@name"/>}</xsl:template>
228 <xsl:template match="index"></xsl:template>
229 <xsl:template match="ref"><xsl:apply-templates/>\ref{<xsl:value-of select="@to"/>}</xsl:template>
230 <xsl:template match="page"><xsl:apply-templates/>\pageref{<xsl:value-of select="@to"/>}</xsl:template>
231 <xsl:template match="reference">
232 <xsl:apply-templates/>[<xsl:value-of select="@href"/>]
235 <xsl:template match="include">
236 <xsl:apply-templates select="document(@href)"/>
239 <xsl:template match="LaTeX">
240 <xsl:value-of select="@command"/>