diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2009-05-01 16:48:01 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2009-05-01 22:49:08 +0200 |
commit | 5644c8862f8c42ac1f8bfc0985fbb082131b8777 (patch) | |
tree | 4f7a0ef1415c33c31b6f60b52d46a80c0b123c3c | |
parent | 97cd6358ab7a400f7ef2e3baf19154d90b90ce00 (diff) | |
download | samba-5644c8862f8c42ac1f8bfc0985fbb082131b8777.tar.gz samba-5644c8862f8c42ac1f8bfc0985fbb082131b8777.tar.bz2 samba-5644c8862f8c42ac1f8bfc0985fbb082131b8777.zip |
Split Samba-specific LaTeX commands into their own LaTeX package,
independent of the style changes made by the sambadoc documentclass.
-rw-r--r-- | docs-xml/xslt/latex/samba.sty | 25 | ||||
-rw-r--r-- | docs-xml/xslt/latex/sambadoc.cls | 23 |
2 files changed, 27 insertions, 21 deletions
diff --git a/docs-xml/xslt/latex/samba.sty b/docs-xml/xslt/latex/samba.sty new file mode 100644 index 0000000000..9252a7c935 --- /dev/null +++ b/docs-xml/xslt/latex/samba.sty @@ -0,0 +1,25 @@ +% 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 +} + + diff --git a/docs-xml/xslt/latex/sambadoc.cls b/docs-xml/xslt/latex/sambadoc.cls index 8fe0043bc9..3f45cb7600 100644 --- a/docs-xml/xslt/latex/sambadoc.cls +++ b/docs-xml/xslt/latex/sambadoc.cls @@ -307,29 +307,8 @@ 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} @@ -343,3 +322,5 @@ page \thepage \space undefined}}% \renewcommand{\textfraction}{0.1} \renewcommand{\topfraction}{1.0} \renewcommand{\bottomfraction}{1.0} + +\RequirePackage{samba} |