From 6c39a459e9359c7ca0b5667afecd8a828ee22782 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 13 Jun 2005 12:49:10 +0000 Subject: More updates. Fix formatting for examples, support long lines in examples. (This used to be commit a3f887703810b0852e3b63e453323487711e5d40) --- docs/xslt/latex.xsl | 2 +- docs/xslt/latex/sambadoc.cls | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'docs/xslt') 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 @@ - \begin{lstlisting}[language=smbconf] + \begin{lstlisting}[language=smbconf,style=smbconfblock] \end{lstlisting} 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}} -- cgit