Split Samba-specific LaTeX commands into their own LaTeX package,
authorJelmer Vernooij <jelmer@samba.org>
Fri, 1 May 2009 14:48:01 +0000 (16:48 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Fri, 1 May 2009 20:49:08 +0000 (22:49 +0200)
independent of the style changes made by the sambadoc documentclass.

docs-xml/xslt/latex/samba.sty [new file with mode: 0644]
docs-xml/xslt/latex/sambadoc.cls

diff --git a/docs-xml/xslt/latex/samba.sty b/docs-xml/xslt/latex/samba.sty
new file mode 100644 (file)
index 0000000..9252a7c
--- /dev/null
@@ -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
+}
+
+
index 8fe0043bc955a59bab2cb905174c921a4d5cc37c..3f45cb7600690e740d84a1eddea7e22e4237814f 100644 (file)
@@ -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}