diff options
Diffstat (limited to 'docs/xslt')
-rw-r--r-- | docs/xslt/latex.xsl | 2 | ||||
-rw-r--r-- | docs/xslt/latex/sambadoc.cls | 12 |
2 files changed, 12 insertions, 2 deletions
diff --git a/docs/xslt/latex.xsl b/docs/xslt/latex.xsl index 0e2574de20..5e10e62961 100644 --- a/docs/xslt/latex.xsl +++ b/docs/xslt/latex.xsl @@ -102,7 +102,7 @@ </xsl:template> <xsl:template match="smbconfblock"> - <xsl:text> \begin{lstlisting}[language=smbconf] </xsl:text> + <xsl:text> \begin{lstlisting}[language=smbconf,style=smbconfblock] </xsl:text> <xsl:apply-templates/> <xsl:text>\end{lstlisting} </xsl:text> </xsl:template> diff --git a/docs/xslt/latex/sambadoc.cls b/docs/xslt/latex/sambadoc.cls index fcd693e0ca..c9d46df718 100644 --- a/docs/xslt/latex/sambadoc.cls +++ b/docs/xslt/latex/sambadoc.cls @@ -515,6 +515,16 @@ footskip=.025in} morecomment=[l]{\#}, } -\lstset{backgroundcolor=\color{lightgray},frame=single,} +\newcommand{\linebreaksign}{\hbox{\ensuremath\hookleftarrow}} + +\lstdefinestyle{smbconfblock} +{ + breaklines=true, + backgroundcolor=\color{lightgray}, + frame=single, + frameround=tttt, + prebreak={\space\linebreaksign} +} + \newcommand{\smbconfsection}[1]{\emph{#1}} \newcommand{\smbconfoption}[1]{\index{#1}\emph{#1}} |