summaryrefslogtreecommitdiff
path: root/docs/docbook/xslt/latex
diff options
context:
space:
mode:
authorAlexander Bokovoy <ab@samba.org>2003-04-30 21:39:49 +0000
committerAlexander Bokovoy <ab@samba.org>2003-04-30 21:39:49 +0000
commitbd30b6066f1a28663b28466a67064149b6e060a4 (patch)
treedc4478c5aafd9078f380e5e2ea11926519905fb0 /docs/docbook/xslt/latex
parent049791de5b6e43e827e2be01a65958389d9c76e2 (diff)
downloadsamba-bd30b6066f1a28663b28466a67064149b6e060a4.tar.gz
samba-bd30b6066f1a28663b28466a67064149b6e060a4.tar.bz2
samba-bd30b6066f1a28663b28466a67064149b6e060a4.zip
Docbook XML conversion: XSLT and build infrastructure
(This used to be commit f4f6e0b29e744077dfb836745716a659a49d7529)
Diffstat (limited to 'docs/docbook/xslt/latex')
-rw-r--r--docs/docbook/xslt/latex/sambadoc.cls124
1 files changed, 124 insertions, 0 deletions
diff --git a/docs/docbook/xslt/latex/sambadoc.cls b/docs/docbook/xslt/latex/sambadoc.cls
new file mode 100644
index 0000000000..e03dcf7a24
--- /dev/null
+++ b/docs/docbook/xslt/latex/sambadoc.cls
@@ -0,0 +1,124 @@
+%%---------------------------------------------------
+%%-- RC Thesis
+%%---------------------------------------------------
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesClass{xslt/latex/sambadoc}
+
+%%---------------------------------------------------
+%%-- Load the base class and modify current macros.
+%%---------------------------------------------------
+
+\newif\if@usecppsyntax \@usecppsyntaxfalse
+
+\DeclareOption{cpp}{\@usecppsyntaxtrue}
+\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrreprt}}
+\ProcessOptions
+%\PassOptionsToClass{12pt}{scrreprt}
+
+\LoadClass{scrreprt}
+
+%%--Set the section number depth.
+\setcounter{secnumdepth}{3}
+\setcounter{tocdepth}{4}
+
+%\setcounter{page}{2}
+
+%%--Create a vertical skip for the distance between the title and
+%%--the first line of text on the prolog pages.
+\newskip\thesisvskip
+\thesisvskip 36pt
+
+%%--Set the margins. %\headheight6pt \headsep12pt
+\usepackage[margin=20pt,head=20pt,headsep=20pt,foot=20pt]{geometry}
+
+%%--Use typehtml for better specification of tables
+\usepackage{typehtml}
+
+%%--Change the marginpar.
+\reversemarginpar
+\let\old@marginpar=\marginpar
+\def\marginpar#1{
+ \old@marginpar{\def\baselinestretch{1}\em\small #1}}
+
+%%--Parameters that can be set by the user.
+\def\samba@listtables{y}
+\def\samba@listfigures{y}
+
+\newcommand{\notablelist}{\gdef\samba@listtables{n}}
+\newcommand{\nofigurelist}{\gdef\samba@listfigures{n}}
+
+
+%%--Modify behavior of the figure and table environment.
+\def\fps@figure{hbt}
+\def\fnum@figure{{\bf \figurename~\thefigure}}
+\def\fps@table{htb}
+\def\fnum@table{{\bf \tablename~\thetable}}
+
+\def\mathfigure{\thesisfiguretrue\figure}
+\def\endmathfigure{\endfigure\thesisfigurefalse}
+
+
+
+%%-----------------------------------------------
+%%-- Modify the displayed math environments.
+%%-----------------------------------------------
+
+\newif\ifthesisfigure
+\thesisfigurefalse
+
+
+
+%%--------------------------------------------
+%%-- Miscellaneous commands.
+%%--------------------------------------------
+
+%%--Commands to simplify font changing.
+\newcommand{\sfup}{\sffamily\mdseries\upshape}
+\newcommand{\sfsc}{\ttfamily\mdseries\scshape}
+\newcommand{\sfit}{\sffamily\mdseries\itshape}
+\newcommand{\rmup}{\rmfamily\mdseries\upshape}
+\newcommand{\rmbf}{\rmfamily\bfseries\upshape}
+\newcommand{\rmit}{\rmfamily\mdseries\itshape}
+\newcommand{\ttup}{\ttfamily\mdseries\upshape}
+
+
+\endinput
+
+%%--The \tableofcontents.
+\renewcommand\tableofcontents{%
+ \renewcommand{\contentsname}{Table of Contents}
+ \if@twocolumn
+ \@restonecoltrue\onecolumn
+ \else
+ \@restonecolfalse
+ \fi
+ \oldchapter*{\contentsname
+ \@mkboth{\uppercase{\contentsname}}{\uppercase{\contentsname}}}%
+ \@starttoc{toc}%
+ \if@restonecol\twocolumn\fi}
+
+%%--The \listoffigures command.
+\renewcommand\listoffigures{%
+ \if@twocolumn
+ \@restonecoltrue\onecolumn
+ \else
+ \@restonecolfalse
+ \fi
+ \oldchapter*{\listfigurename
+ \@mkboth{\uppercase{\listfigurename}}{\uppercase{\listfigurename}}}%
+ \@starttoc{lof}%
+ \if@restonecol\twocolumn\fi}
+
+%%--The \listoftables command.
+\renewcommand\listoftables{%
+ \if@twocolumn%
+ \@restonecoltrue\onecolumn%
+ \else%
+ \@restonecolfalse%
+ \fi%
+ \oldchapter*{\listtablename%
+ \@mkboth{\uppercase{\listtablename}}{\uppercase{\listtablename}}}%
+ \@starttoc{lot}%
+ \if@restonecol\twocolumn\fi}
+
+\endinput