summaryrefslogtreecommitdiff
path: root/docs/xslt/latex/sambadoc.cls
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-06-13 00:48:46 +0000
committerGerald W. Carter <jerry@samba.org>2008-04-23 08:46:46 -0500
commit8a5498d3bfa78923cbb4e6c79e152431223a4f86 (patch)
tree6f14e0c9690c6b5363d70cf497b6f1639f8cecea /docs/xslt/latex/sambadoc.cls
parent5cec435fda2f812ef47185e331979e1072d62f43 (diff)
downloadsamba-8a5498d3bfa78923cbb4e6c79e152431223a4f86.tar.gz
samba-8a5498d3bfa78923cbb4e6c79e152431223a4f86.tar.bz2
samba-8a5498d3bfa78923cbb4e6c79e152431223a4f86.zip
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)
Diffstat (limited to 'docs/xslt/latex/sambadoc.cls')
-rw-r--r--docs/xslt/latex/sambadoc.cls27
1 files changed, 26 insertions, 1 deletions
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}}