Created Debian package
[xmldoc.git] / latex.xsl
index 566bb4b..0d884a0 100644 (file)
--- a/latex.xsl
+++ b/latex.xsl
@@ -8,6 +8,7 @@
 
 <xsl:template match="article">
 \documentclass[a4paper]{article}
+\usepackage{xcolor}
 \usepackage{graphics}
 \usepackage{latexsym}
 \usepackage{marvosym}
@@ -18,6 +19,7 @@
 
 <xsl:template match="book">
 \documentclass[a4paper]{book}
+\usepackage{xcolor}
 \usepackage{graphics}
 \usepackage{latexsym}
 \usepackage{marvosym}
@@ -28,6 +30,7 @@
 
 <xsl:template match="report">
 \documentclass[a4paper]{report}
+\usepackage{xcolor}
 \usepackage{graphics}
 \usepackage{latexsym}
 \usepackage{marvosym}
 \end{verbatim}
 </xsl:template>
 
+<xsl:template match="example">
+\begin{verbatim} 
+ <xsl:apply-templates/>
+\end{verbatim}
+</xsl:template>
+
 <xsl:template match="itemize">
 \begin{itemize}
    <xsl:apply-templates/>
 <xsl:template match="sub">$_{<xsl:apply-templates/>}$</xsl:template>
 <xsl:template match="sup">$^{<xsl:apply-templates/>}$</xsl:template>
 
+<xsl:template match="color">\textcolor{<xsl:value-of select="@colorname"/>}{<xsl:apply-templates/>}</xsl:template>
+
+<xsl:template match="big">\large{<xsl:apply-templates/>}</xsl:template>
+<xsl:template match="small">\small{<xsl:apply-templates/>}</xsl:template>
+
 <xsl:template match="newline">\\</xsl:template>
 <xsl:template match="newpage">\newpage</xsl:template>