diff options
author | bubulle <bubulle@alioth.debian.org> | 2010-04-06 18:12:47 +0000 |
---|---|---|
committer | bubulle <bubulle@alioth.debian.org> | 2010-04-06 18:12:47 +0000 |
commit | c038a4e9c09ba4ac77d885ac0afee418f41b8891 (patch) | |
tree | f5b2444727ff995f46dabbbf94863e9926501444 /docs-xml/xslt/latex | |
parent | 9e2f5a6ab663f7a111832217c527508c75ddae8a (diff) | |
download | samba-c038a4e9c09ba4ac77d885ac0afee418f41b8891.tar.gz |
Revert to 3.4.7...for now?
git-svn-id: svn://svn.debian.org/svn/pkg-samba/trunk/samba@3416 fc4039ab-9d04-0410-8cac-899223bdd6b0
Diffstat (limited to 'docs-xml/xslt/latex')
-rw-r--r-- | docs-xml/xslt/latex/samba.sty | 25 | ||||
-rw-r--r-- | docs-xml/xslt/latex/samba.xsl | 146 | ||||
-rw-r--r-- | docs-xml/xslt/latex/sambadoc.cls | 25 |
3 files changed, 23 insertions, 173 deletions
diff --git a/docs-xml/xslt/latex/samba.sty b/docs-xml/xslt/latex/samba.sty deleted file mode 100644 index a5768980ac..0000000000 --- a/docs-xml/xslt/latex/samba.sty +++ /dev/null @@ -1,25 +0,0 @@ -% LaTeX class with Samba-specific commands -% Copyright (C) 2004 Jelmer Vernooij <jelmer@samba.org> -% Released under the GNU GPL v3 or later - -\newcommand{\smbconfsection}[1]{\emph{#1}} -\newcommand{\smbconfoption}[1]{\index{#1}\emph{#1}} -% smb.conf syntax highlighting -\RequirePackage{listings} -\RequirePackage{xcolor} - -\lstdefinelanguage{smbconf}{ - morecomment=[l]{\#}, -} - -\lstdefinestyle{smbconfblock} -{ - breaklines=true, - backgroundcolor=\color[gray]{0.93}, - frame=single, - frameround=tttt, - prebreak={\space\linebreaksign}, - basicstyle=\small -} - -\newcommand{\linebreaksign}{\hbox{\ensuremath\hookleftarrow}} diff --git a/docs-xml/xslt/latex/samba.xsl b/docs-xml/xslt/latex/samba.xsl deleted file mode 100644 index 9fc27e6bbb..0000000000 --- a/docs-xml/xslt/latex/samba.xsl +++ /dev/null @@ -1,146 +0,0 @@ -<?xml version="1.0" encoding="ISO-8859-1"?> -<!-- - Expand Samba-specific XML elements to LaTeX, for use with dblatex - - Copyright (C) 2003,2004,2009 Jelmer Vernooij <jelmer@samba.org> - Published under the GNU GPLv3 or later ---> -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0' - xmlns:samba="http://www.samba.org/samba/DTD/samba-doc"> - -<!-- FIXME: dblatex should have some way to load additional packages, user.params.set2 - isn't really meant for this sort of thing --> -<xsl:template name="user.params.set2"> - <xsl:text>\usepackage{samba} </xsl:text> -</xsl:template> - -<xsl:template match="smbconfblock/smbconfoption"> - <xsl:text> </xsl:text><xsl:value-of select="@name"/> - <xsl:if test="text() != ''"> - <xsl:text> = </xsl:text> - <xsl:value-of select="text()"/> - </xsl:if> - <xsl:text> </xsl:text> -</xsl:template> - -<xsl:template match="smbconfblock/smbconfcomment"> - <xsl:text># </xsl:text> - <xsl:apply-templates/> - <xsl:text> </xsl:text> -</xsl:template> - -<xsl:template match="smbconfblock/smbconfsection"> - <xsl:value-of select="@name"/> - <xsl:text> </xsl:text> -</xsl:template> - -<xsl:template match="smbconfoption"> - <xsl:text>\smbconfoption{</xsl:text> - <xsl:call-template name="scape"> - <xsl:with-param name="string" select="@name"/> - </xsl:call-template> - <xsl:text>}</xsl:text> - - <xsl:choose> - <xsl:when test="text() != ''"> - <xsl:text> = </xsl:text> - <xsl:call-template name="scape"> - <xsl:with-param name="string" select="text()"/> - </xsl:call-template> - </xsl:when> - </xsl:choose> -</xsl:template> - -<xsl:template match="smbconfblock"> - <xsl:text> \begin{lstlisting}[language=smbconf,style=smbconfblock] </xsl:text> - <xsl:apply-templates/> - <xsl:text>\end{lstlisting} </xsl:text> -</xsl:template> - -<xsl:template match="smbconfsection"> - <xsl:text>\smbconfsection{</xsl:text> - <xsl:call-template name="scape"> - <xsl:with-param name="string" select="@name"/> - </xsl:call-template> - <xsl:text>}</xsl:text> -</xsl:template> - - -<xsl:template match="description"><xsl:apply-templates/></xsl:template> - -<xsl:template match="value"><xsl:apply-templates/></xsl:template> - -<xsl:template match="synonym"><xsl:apply-templates/></xsl:template> - -<xsl:template match="related"><xsl:apply-templates/></xsl:template> - -<xsl:template match="//samba:parameterlist"> - <xsl:text>\begin{description} </xsl:text> - <xsl:apply-templates> - <xsl:sort select="samba:parameter/@name"/> - </xsl:apply-templates> - <xsl:text>\end{description} </xsl:text> -</xsl:template> - -<xsl:template match="value/comment"> - <xsl:text> # </xsl:text> - <xsl:apply-templates/> -</xsl:template> - -<xsl:template match="/"> - <xsl:apply-templates/> -</xsl:template> - -<xsl:template match="refentry"> - <xsl:text>\section{</xsl:text><xsl:value-of select="refmeta/refentrytitle"/><xsl:text>} </xsl:text> - <xsl:apply-templates/> -</xsl:template> - -<xsl:template match="//samba:parameter"> - <xsl:for-each select="synonym"> - <xsl:text>\item[{</xsl:text><xsl:value-of select="."/><xsl:text>}]\null{} </xsl:text> - <xsl:text>\index{</xsl:text><xsl:value-of select="."/><xsl:text>} </xsl:text> - <xsl:text>This parameter is a synonym for \smbconfoption{</xsl:text><xsl:value-of select="../@name"/><xsl:text>}.</xsl:text> - </xsl:for-each> - - <xsl:text>\item[{</xsl:text><xsl:value-of select="@name"/> - <xsl:text> (</xsl:text> - <xsl:value-of select="@context"/> - <xsl:text>)</xsl:text> - <xsl:text>}]\null{} </xsl:text> - <xsl:text>\index{</xsl:text><xsl:value-of select="@name"/><xsl:text>} </xsl:text> - - <!-- Print default value--> - <xsl:text> </xsl:text> - <xsl:text>Default: </xsl:text> - <xsl:text>\emph{</xsl:text> - <xsl:choose> - <xsl:when test="value[@type='default'] != ''"> - <xsl:value-of select="@name"/> - <xsl:text> = </xsl:text> - <xsl:apply-templates select="value"/> - </xsl:when> - <xsl:otherwise> - <xsl:text>No default</xsl:text> - </xsl:otherwise> - </xsl:choose> - <xsl:text>}</xsl:text> - <xsl:text> </xsl:text> - - <!-- Generate list of examples --> - <xsl:text> </xsl:text> - <xsl:for-each select="value[@type='example']"> - <xsl:text> </xsl:text> - <xsl:text>Example: </xsl:text> - <xsl:text>\emph{</xsl:text><xsl:value-of select="../@name"/> - <xsl:text> = </xsl:text> - <xsl:apply-templates select="."/> - <xsl:text>}</xsl:text> - <xsl:text> </xsl:text> - </xsl:for-each> - - <!-- Description --> - <xsl:apply-templates select="description"/> -</xsl:template> - -</xsl:stylesheet> diff --git a/docs-xml/xslt/latex/sambadoc.cls b/docs-xml/xslt/latex/sambadoc.cls index 20c81325f7..8fe0043bc9 100644 --- a/docs-xml/xslt/latex/sambadoc.cls +++ b/docs-xml/xslt/latex/sambadoc.cls @@ -307,6 +307,29 @@ page \thepage \space undefined}}% \renewcommand\listfigurename{\uppercase{List Of Figures}} \renewcommand\listtablename{\uppercase{List Of Tables}} +% smb.conf syntax highlighting +\RequirePackage{listings} +\RequirePackage{xcolor} + +\lstdefinelanguage{smbconf}{ + morecomment=[l]{\#}, +} + +\newcommand{\linebreaksign}{\hbox{\ensuremath\hookleftarrow}} + +\lstdefinestyle{smbconfblock} +{ + breaklines=true, + backgroundcolor=\color[gray]{0.93}, + frame=single, + frameround=tttt, + prebreak={\space\linebreaksign}, + basicstyle=\small +} + +\newcommand{\smbconfsection}[1]{\emph{#1}} +\newcommand{\smbconfoption}[1]{\index{#1}\emph{#1}} + \setlength{\emergencystretch}{0cm} @@ -320,5 +343,3 @@ page \thepage \space undefined}}% \renewcommand{\textfraction}{0.1} \renewcommand{\topfraction}{1.0} \renewcommand{\bottomfraction}{1.0} - -\RequirePackage{samba} |