From 8a5498d3bfa78923cbb4e6c79e152431223a4f86 Mon Sep 17 00:00:00 2001
From: Jelmer Vernooij <jelmer@samba.org>
Date: Mon, 13 Jun 2005 00:48:46 +0000
Subject: Another set of updates; includes the new examples code and use of
 10.5pt fonts. Still needs some polishing.. (This used to be commit
 eb11ea43f68f57d877dc80d4912396ad8e91a081)

---
 docs/xslt/latex/sambadoc.cls | 27 ++++++++++++++++++++++++++-
 1 file changed, 26 insertions(+), 1 deletion(-)

(limited to 'docs/xslt/latex/sambadoc.cls')

diff --git a/docs/xslt/latex/sambadoc.cls b/docs/xslt/latex/sambadoc.cls
index c80f143caf..fcd693e0ca 100644
--- a/docs/xslt/latex/sambadoc.cls
+++ b/docs/xslt/latex/sambadoc.cls
@@ -268,6 +268,19 @@
 \plainfootrulewidth 0pt             %---- no foot rule for chapter page
 \footrulewidth 0pt                  %---- no rule for foot
 
+
+%10.5pt fonts
+\usepackage{type1cm}
+\renewcommand\normalsize{%
+   \@setfontsize\normalsize{10.5pt}{12pt}
+   \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
+   \abovedisplayshortskip \z@ \@plus3\p@
+   \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
+   \belowdisplayskip \abovedisplayskip
+\let\@listi\@listI}
+\normalsize   
+%
+
 %--- Redefine Headers
 \renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
 %
@@ -476,7 +489,7 @@ page \thepage \space undefined}}%
 \renewcommand{\topfraction}{1.0}
 \renewcommand{\bottomfraction}{1.0}
 
-\usepackage[twoside,dvips]{geometry}
+\usepackage[twoside]{geometry}
 
 \geometry{%
 paperwidth=7in,
@@ -493,3 +506,15 @@ headsep=.25in,
 footskip=.025in}
 
 \setlength{\headwidth}{\textwidth}
+
+% smb.conf syntax highlighting
+\usepackage{listings}
+\usepackage{xcolor}
+
+\lstdefinelanguage{smbconf}{
+	morecomment=[l]{\#},
+}
+
+\lstset{backgroundcolor=\color{lightgray},frame=single,}
+\newcommand{\smbconfsection}[1]{\emph{#1}}
+\newcommand{\smbconfoption}[1]{\index{#1}\emph{#1}}
-- 
cgit 

