summaryrefslogtreecommitdiffstats
path: root/docs-xml/xslt/latex/samba.sty
diff options
context:
space:
mode:
Diffstat (limited to 'docs-xml/xslt/latex/samba.sty')
-rw-r--r--docs-xml/xslt/latex/samba.sty25
1 files changed, 25 insertions, 0 deletions
diff --git a/docs-xml/xslt/latex/samba.sty b/docs-xml/xslt/latex/samba.sty
new file mode 100644
index 0000000..a576898
--- /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
+}
+
+\newcommand{\linebreaksign}{\hbox{\ensuremath\hookleftarrow}}