From 8a5498d3bfa78923cbb4e6c79e152431223a4f86 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij 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/expand-sambadoc.xsl | 65 ++---------------------------------------- docs/xslt/latex.xsl | 62 ++++++++++++++++++++++++++++++++++++++-- docs/xslt/latex/sambadoc.cls | 27 +++++++++++++++++- docs/xslt/sambadoc2pearson.xsl | 24 ++++------------ 4 files changed, 94 insertions(+), 84 deletions(-) (limited to 'docs/xslt') diff --git a/docs/xslt/expand-sambadoc.xsl b/docs/xslt/expand-sambadoc.xsl index 5ded8c703b..37e70cca5a 100644 --- a/docs/xslt/expand-sambadoc.xsl +++ b/docs/xslt/expand-sambadoc.xsl @@ -22,7 +22,7 @@ - + @@ -31,9 +31,6 @@ - - <?latex \hspace{1cm} ?> - @@ -45,17 +42,14 @@ - - - <?latex \hspace{1cm} ?> - + # - + @@ -105,35 +99,6 @@ - - - - - Warning: smbconfexample does not have title! - - - - - - - - - - - - - - - - - - - - - - - - @@ -146,32 +111,8 @@ - - # - - - - - latex - - - images/ - - - - - - - - 50 - - - - 1 - - html diff --git a/docs/xslt/latex.xsl b/docs/xslt/latex.xsl index ac9d2fe423..cc817427de 100644 --- a/docs/xslt/latex.xsl +++ b/docs/xslt/latex.xsl @@ -59,8 +59,66 @@ {\bfseries } -xslt/latex/sambadoc -pt,openright,twoside +sambadoc +openright,twoside english + + + + = + + + + + + + # + + + + + + + + + + + \smbconfoption{ + + } + + + + = + + + + + + + \begin{lstlisting}[language=smbconf] + + \end{lstlisting} + + + + \smbconfsection{ + + } + + + + \includegraphics[scale=. + + + + 50 + + ]{ + images/ + + } + + 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}} diff --git a/docs/xslt/sambadoc2pearson.xsl b/docs/xslt/sambadoc2pearson.xsl index 5028d05064..d712419375 100644 --- a/docs/xslt/sambadoc2pearson.xsl +++ b/docs/xslt/sambadoc2pearson.xsl @@ -13,29 +13,15 @@ - + - + = - - - - - - - - - - - - - - @@ -60,13 +46,13 @@ - + # - + - Encountered <member> element inside of smbconfexample/smbconfblock! + Encountered <member> element inside of smbconfblock! -- cgit