diff options
Diffstat (limited to 'docs/xslt')
-rw-r--r-- | docs/xslt/expand-sambadoc.xsl | 9 | ||||
-rw-r--r-- | docs/xslt/latex.xsl | 41 |
2 files changed, 13 insertions, 37 deletions
diff --git a/docs/xslt/expand-sambadoc.xsl b/docs/xslt/expand-sambadoc.xsl index 12ea497101..cdc84e6d21 100644 --- a/docs/xslt/expand-sambadoc.xsl +++ b/docs/xslt/expand-sambadoc.xsl @@ -444,13 +444,4 @@ </xsl:element> </xsl:element> </xsl:template> - - <xsl:template match="quote"> - <xsl:element name="quote"> - <xsl:element name="emphasis"> - <xsl:apply-templates/> - </xsl:element> - </xsl:element> - </xsl:template> - </xsl:stylesheet> diff --git a/docs/xslt/latex.xsl b/docs/xslt/latex.xsl index 56db80e7cc..b7159b15fe 100644 --- a/docs/xslt/latex.xsl +++ b/docs/xslt/latex.xsl @@ -26,12 +26,23 @@ set toc,title </xsl:param> +<!-- Show real name of the link rather then user specified description --> <xsl:template name="link"> <xsl:element name="link"> <xsl:copy-of select="@*"/> </xsl:element> </xsl:template> +<!-- LaTeX doesn't accept verbatim stuff in titles --> +<xsl:template match="//title/filename|//title/command|//title/parameter|//title/constant"> + <xsl:variable name="content"> + <xsl:apply-templates/> + </xsl:variable> + <xsl:if test="$content != ''"> + <xsl:value-of select="$content" /> + </xsl:if> +</xsl:template> + <xsl:output method="text" encoding="ISO-8859-1" indent="yes"/> <xsl:param name="l10n.gentext.default.language" select="'en'"/> <xsl:param name="latex.example.caption.style"></xsl:param> @@ -43,38 +54,12 @@ <xsl:variable name="latex.use.parskip">1</xsl:variable> <!--<xsl:variable name="latex.use.ltxtable">1</xsl:variable>--> <xsl:variable name="latex.hyphenation.tttricks">1</xsl:variable> -<xsl:variable name="latex.book.varsets"></xsl:variable> <xsl:variable name="latex.titlepage.file"></xsl:variable> -<!--<xsl:variable name="formal.title.placement"> - figure not_before - example not_before - equation not_before - table not_before - procedure before -</xsl:variable>--> -<!--<xsl:variable name="latex.procedure.title.style"><xsl:text>\subsubsection</xsl:text></xsl:variable>--> <xsl:template name="latex.thead.row.entry"> <xsl:text>{\bfseries </xsl:text><xsl:apply-templates/><xsl:text>}</xsl:text> </xsl:template> -<xsl:variable name="latex.book.preamblestart"> -\documentclass[twoside,openright,<xsl:value-of select="$fontsize"/>pt]{xslt/latex/sambadoc} - -\usepackage{amsmath}% -\usepackage{amsfonts}% -\usepackage{amssymb} - -\makeindex - -</xsl:variable> +<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.babel.language">english</xsl:param> -<xsl:template match="//title/filename|//title/command|//title/parameter|//title/constant"> - <xsl:variable name="content"> - <xsl:apply-templates/> - </xsl:variable> - <xsl:if test="$content != ''"> - <xsl:value-of select="$content" /> - </xsl:if> -</xsl:template> - </xsl:stylesheet> |