1 %%---------------------------------------------------
3 %%---------------------------------------------------
4 \NeedsTeXFormat{LaTeX2e}
5 \ProvidesClass{xslt/latex/sambadoc}
7 %%---------------------------------------------------
8 %%-- Load the base class and modify current macros.
9 %%---------------------------------------------------
11 \newif\if@usecppsyntax \@usecppsyntaxfalse
13 \DeclareOption{cpp}{\@usecppsyntaxtrue}
14 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrreprt}}
16 %\PassOptionsToClass{12pt}{scrreprt}
20 %%--Set the section number depth.
21 \setcounter{secnumdepth}{3}
22 \setcounter{tocdepth}{4}
26 %%--Create a vertical skip for the distance between the title and
27 %%--the first line of text on the prolog pages.
31 %%--Set the margins. %\headheight6pt \headsep12pt
32 \usepackage[margin=20pt,head=20pt,headsep=20pt,foot=20pt]{geometry}
34 %%--Use typehtml for better specification of tables
37 %%--Change the marginpar.
39 \let\old@marginpar=\marginpar
41 \old@marginpar{\def\baselinestretch{1}\em\small #1}}
43 %%--Parameters that can be set by the user.
44 \def\samba@listtables{y}
45 \def\samba@listfigures{y}
47 \newcommand{\notablelist}{\gdef\samba@listtables{n}}
48 \newcommand{\nofigurelist}{\gdef\samba@listfigures{n}}
51 %%--Modify behavior of the figure and table environment.
53 \def\fnum@figure{{\bf \figurename~\thefigure}}
55 \def\fnum@table{{\bf \tablename~\thetable}}
57 \def\mathfigure{\thesisfiguretrue\figure}
58 \def\endmathfigure{\endfigure\thesisfigurefalse}
62 %%-----------------------------------------------
63 %%-- Modify the displayed math environments.
64 %%-----------------------------------------------
71 %%--------------------------------------------
72 %%-- Miscellaneous commands.
73 %%--------------------------------------------
75 %%--Commands to simplify font changing.
76 \newcommand{\sfup}{\sffamily\mdseries\upshape}
77 \newcommand{\sfsc}{\ttfamily\mdseries\scshape}
78 \newcommand{\sfit}{\sffamily\mdseries\itshape}
79 \newcommand{\rmup}{\rmfamily\mdseries\upshape}
80 \newcommand{\rmbf}{\rmfamily\bfseries\upshape}
81 \newcommand{\rmit}{\rmfamily\mdseries\itshape}
82 \newcommand{\ttup}{\ttfamily\mdseries\upshape}
87 %%--The \tableofcontents.
88 \renewcommand\tableofcontents{%
89 \renewcommand{\contentsname}{Table of Contents}
91 \@restonecoltrue\onecolumn
95 \oldchapter*{\contentsname
96 \@mkboth{\uppercase{\contentsname}}{\uppercase{\contentsname}}}%
98 \if@restonecol\twocolumn\fi}
100 %%--The \listoffigures command.
101 \renewcommand\listoffigures{%
103 \@restonecoltrue\onecolumn
107 \oldchapter*{\listfigurename
108 \@mkboth{\uppercase{\listfigurename}}{\uppercase{\listfigurename}}}%
110 \if@restonecol\twocolumn\fi}
112 %%--The \listoftables command.
113 \renewcommand\listoftables{%
115 \@restonecoltrue\onecolumn%
119 \oldchapter*{\listtablename%
120 \@mkboth{\uppercase{\listtablename}}{\uppercase{\listtablename}}}%
122 \if@restonecol\twocolumn\fi}