diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-06-13 12:49:10 +0000 |
---|---|---|
committer | Gerald W. Carter <jerry@samba.org> | 2008-04-23 08:46:46 -0500 |
commit | 6c39a459e9359c7ca0b5667afecd8a828ee22782 (patch) | |
tree | e5e9eadbf22e76bbbd11212e4c9514c68f5e87ec /docs/xslt | |
parent | 7639ec02141091657eb2eb0defc46b4b3cf09a73 (diff) | |
download | samba-6c39a459e9359c7ca0b5667afecd8a828ee22782.tar.gz samba-6c39a459e9359c7ca0b5667afecd8a828ee22782.tar.bz2 samba-6c39a459e9359c7ca0b5667afecd8a828ee22782.zip |
More updates. Fix formatting for examples, support long lines in examples.
(This used to be commit a3f887703810b0852e3b63e453323487711e5d40)
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}} |