summaryrefslogtreecommitdiff
path: root/docs/xslt/latex.xsl
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-06-13 00:48:46 +0000
committerGerald W. Carter <jerry@samba.org>2008-04-23 08:46:46 -0500
commit8a5498d3bfa78923cbb4e6c79e152431223a4f86 (patch)
tree6f14e0c9690c6b5363d70cf497b6f1639f8cecea /docs/xslt/latex.xsl
parent5cec435fda2f812ef47185e331979e1072d62f43 (diff)
downloadsamba-8a5498d3bfa78923cbb4e6c79e152431223a4f86.tar.gz
samba-8a5498d3bfa78923cbb4e6c79e152431223a4f86.tar.bz2
samba-8a5498d3bfa78923cbb4e6c79e152431223a4f86.zip
Another set of updates; includes the new examples code and use of
10.5pt fonts. Still needs some polishing.. (This used to be commit eb11ea43f68f57d877dc80d4912396ad8e91a081)
Diffstat (limited to 'docs/xslt/latex.xsl')
-rw-r--r--docs/xslt/latex.xsl62
1 files changed, 60 insertions, 2 deletions
diff --git a/docs/xslt/latex.xsl b/docs/xslt/latex.xsl
index ac9d2fe423..cc817427de 100644
--- a/docs/xslt/latex.xsl
+++ b/docs/xslt/latex.xsl
@@ -59,8 +59,66 @@
<xsl:template name="latex.thead.row.entry">
<xsl:text>{\bfseries </xsl:text><xsl:apply-templates/><xsl:text>}</xsl:text>
</xsl:template>
-<xsl:param name="latex.documentclass">xslt/latex/sambadoc</xsl:param>
-<xsl:param name="latex.documentclass.book"><xsl:value-of select="$fontsize"/>pt,openright,twoside</xsl:param>
+<xsl:param name="latex.documentclass">sambadoc</xsl:param>
+<xsl:param name="latex.documentclass.book">openright,twoside</xsl:param>
<xsl:param name="latex.babel.language">english</xsl:param>
+<xsl:template match="smbconfblock/smbconfoption">
+ <xsl:value-of select="@name"/>
+ <xsl:if test="text() != ''">
+ <xsl:text> = </xsl:text>
+ <xsl:value-of select="text()"/>
+ </xsl:if>
+ <xsl:text>&#10;</xsl:text>
+</xsl:template>
+
+<xsl:template match="smbconfblock/smbconfcomment">
+ <xsl:text># </xsl:text>
+ <xsl:apply-templates/>
+ <xsl:text>&#10;</xsl:text>
+</xsl:template>
+
+<xsl:template match="smbconfblock/smbconfsection">
+ <xsl:value-of select="@name"/>
+ <xsl:text>&#10;</xsl:text>
+</xsl:template>
+
+<xsl:template match="smbconfoption">
+ <xsl:text>\smbconfoption{</xsl:text>
+ <xsl:value-of select="@name"/>
+ <xsl:text>}</xsl:text>
+
+ <xsl:choose>
+ <xsl:when test="text() != ''">
+ <xsl:text> = </xsl:text>
+ <xsl:value-of select="text()"/>
+ </xsl:when>
+ </xsl:choose>
+</xsl:template>
+
+<xsl:template match="smbconfblock">
+ <xsl:text>&#10;\begin{lstlisting}[language=smbconf]&#10;</xsl:text>
+ <xsl:apply-templates/>
+ <xsl:text>\end{lstlisting}&#10;</xsl:text>
+</xsl:template>
+
+<xsl:template match="smbconfsection">
+ <xsl:text>\smbconfsection{</xsl:text>
+ <xsl:value-of select="translate(@name, '$','x')"/>
+ <xsl:text>}</xsl:text>
+</xsl:template>
+
+<xsl:template match="imagefile">
+ <xsl:text>\includegraphics[scale=.</xsl:text>
+ <xsl:choose>
+ <xsl:when test="@scale != ''"><xsl:value-of select="@scale"/></xsl:when>
+
+ <xsl:otherwise><xsl:text>50</xsl:text></xsl:otherwise>
+ </xsl:choose>
+ <xsl:text>]{</xsl:text>
+ <xsl:value-of select="$latex.imagebasedir"/><xsl:text>images/</xsl:text>
+ <xsl:value-of select="text()"/>
+ <xsl:text>}&#10;</xsl:text>
+</xsl:template>
+
</xsl:stylesheet>