summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/disser/disser.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/disser/disser.cls')
-rw-r--r--Master/texmf-dist/tex/latex/disser/disser.cls118
1 files changed, 78 insertions, 40 deletions
diff --git a/Master/texmf-dist/tex/latex/disser/disser.cls b/Master/texmf-dist/tex/latex/disser/disser.cls
index 91b87298aa1..800bb9ea0ff 100644
--- a/Master/texmf-dist/tex/latex/disser/disser.cls
+++ b/Master/texmf-dist/tex/latex/disser/disser.cls
@@ -27,7 +27,7 @@
%%
%% disser -- LaTeX document class for dissertations.
%%
-%% Copyright (c) 2004-2007 Stanislav Kruchinin
+%% Copyright (c) 2004-2008 Stanislav Kruchinin
%%
%% It may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
@@ -319,6 +319,7 @@
\newcommand\toctheappendix{\theappendix}
\newcommand\tocthesection{\thesection}
\newcommand\tocthesubsection{\thesubsection}
+\newcommand\tocthesubsubsection{\thesubsubsection}
\newcommand\toctheparagraph{\theparagraph}
\newcommand\tocthesubparagraph{\thesubparagraph}
@@ -525,8 +526,7 @@
\begingroup
\parindent \z@ \rightskip \@pnumwidth
\parfillskip -\@pnumwidth
- \leavevmode
- \tocchapterfont
+ \leavevmode\tocchapterfont
\advance\leftskip\@tempdima
\hskip -\leftskip
#1\nobreak
@@ -758,7 +758,7 @@
\fi
#7}}%
\fi
- \@xsect{#5}
+ \@xsect{#5}%
}
\def\@tocline#1#2#3#4#5#6{%
\ifnum #2>\c@tocdepth \else
@@ -778,23 +778,36 @@
\fi
}
-\newcommand\defsection[2]{%
- \@namedef{l@#1}{%
- \@tocline{#1}{#2}{\csname toc#1indent\endcsname}
- {\csname toc#1nameindent\endcsname}
- }
- \@namedef{#1}{%
- \@startsection{#1}{#2}{\csname #1indent\endcsname}
- {\csname before#1\endcsname}{\csname after#1\endcsname}
- {\csname #1font\endcsname\csname #1align\endcsname}
- }
-}
-\defsection{section}{1}
-\defsection{subsection}{2}
-\defsection{subsubsection}{3}
-\defsection{paragraph}{4}
-\defsection{subparagraph}{5}
+\newcommand\section{\@startsection{section}{1}
+ {\sectionindent}{\beforesection}%
+ {\aftersection}{\sectionfont\sectionalign}}
+\newcommand*\l@section{\@tocline{section}{1}{\tocsectionindent}%
+{\tocsectionnameindent}}
+
+\newcommand\subsection{\@startsection{subsection}{2}
+ {\subsectionindent}{\beforesubsection}%
+ {\aftersubsection}{\subsectionfont\subsectionalign}}
+\newcommand*\l@subsection{\@tocline{subsection}{2}{\tocsubsectionindent}%
+{\tocsubsectionnameindent}}
+
+\newcommand\subsubsection{\@startsection{subsubsection}{3}
+ {\subsubsectionindent}{\beforesubsubsection}%
+ {\aftersubsubsection}{\subsubsectionfont\subsubsectionalign}}
+\newcommand*\l@subsubsection{\@tocline{subsubsection}{3}{\tocsubsubsectionindent}%
+{\tocsubsubsectionnameindent}}
+
+\newcommand\paragraph{\@startsection{paragraph}{4}
+ {\paragraphindent}{\beforeparagraph}%
+ {\afterparagraph}{\paragraphfont\paragraphalign}}
+\newcommand*\l@paragraph{\@tocline{paragraph}{4}{\tocparagraphindent}%
+{\tocparagraphnameindent}}
+
+\newcommand\subparagraph{\@startsection{subparagraph}{5}
+ {\subparagraphindent}{\beforesubparagraph}%
+ {\aftersubparagraph}{\subparagraphfont\subparagraphalign}}
+\newcommand*\l@subparagraph{\@tocline{subparagraph}{5}{\tocsubparagraphindent}%
+{\tocsubparagraphnameindent}}
%%% From File: lists.dtx
@@ -963,19 +976,39 @@
\newenvironment{figure*}{\@dblfloat{figure}}{\end@dblfloat}
\newenvironment{table}{\@float{table}}{\end@float}
\newenvironment{table*}{\@dblfloat{table}}{\end@dblfloat}
-\providecommand\theoremstyle{\itshape}
-\providecommand\thetheoremstyle{\bfseries}
-\providecommand\opargtheoremstyle{\rm}
-\providecommand\preopargtheorem{(}
-\providecommand\postopargtheorem{)}
-\providecommand\postthetheorem{.}
+
+\def\newtheorem#1{%
+ {
+ \global\@namedef{#1style}{\itshape}
+ \global\@namedef{the#1style}{\bfseries}
+ \global\@namedef{postthe#1}{.}
+ \global\@namedef{oparg#1style}{\rm}
+ \global\@namedef{preoparg#1}{(}
+ \global\@namedef{postoparg#1}{)}
+ }
+ \@ifnextchar[{\@othm{#1}}{\@nthm{#1}}%
+}
+
+\def\@xthm#1#2{%
+ \@begintheorem{#1}{#2}\ignorespaces}
+\def\@ythm#1#2[#3]{%
+ \@opargbegintheorem{#1}{#2}{#3}\ignorespaces}
\def\@begintheorem#1#2{\trivlist
- \item[\hskip \labelsep{\thetheoremstyle #1\ %
- #2\unskip\postthetheorem}]\theoremstyle}
+ \item[\hskip \labelsep{\csname the#1style\endcsname #2\ %
+ \csname the#1\endcsname\unskip%
+ \csname postthe#1\endcsname}]%
+ \csname #1style\endcsname}
+
\def\@opargbegintheorem#1#2#3{\trivlist
- \item[\hskip \labelsep{\thetheoremstyle #1\ #2\ %
- {\opargtheoremstyle\preopargtheorem #3\postopargtheorem}}]\theoremstyle}
+ \item[\hskip \labelsep{%
+ {\csname the#1style\endcsname #2}\ %
+ \csname the#1\endcsname\ %
+ {\csname oparg#1style\endcsname%
+ \csname preoparg#1\endcsname #3%
+ \csname postoparg#1\endcsname}}]%
+ \csname #1style\endcsname}
+
\def\@endtheorem{\endtrivlist}
@@ -1144,7 +1177,7 @@
\newcommand\@tocrmarg{2.55em}
\newcommand\@dotsep{4.5}
\def\tocfill#1{
- \leaders\hbox{$\m@th \mkern \@dotsep mu\hbox{#1}\mkern \@dotsep mu$}
+ \leaders\hbox{$\m@th\mkern\@dotsep mu\hbox{#1}\mkern\@dotsep mu$}
}
\newcommand\indexspace{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
\newdimen\bibindent
@@ -1168,8 +1201,8 @@
\newcommand\listoffigures{%
\if@twocolumn\@restonecoltrue\onecolumn
\else\@restonecolfalse\fi
- \nchapter{
- \listfigurename
+ \nchapter{%
+ \listfigurename%
\@mkboth{\MakeUppercase\listfigurename}{\MakeUppercase\listfigurename}%
}%
\@starttoc{lof}%
@@ -1182,9 +1215,9 @@
\else
\@restonecolfalse
\fi
- \nchapter{
- \listtablename
- \@mkboth{\MakeUppercase\listtablename}{\MakeUppercase\listtablename}
+ \nchapter{%
+ \listtablename%
+ \@mkboth{\MakeUppercase\listtablename}{\MakeUppercase\listtablename}%
}%
\@starttoc{lot}%
\if@restonecol\twocolumn\fi
@@ -1312,15 +1345,20 @@
\usepackage[pdftex]{graphicx}
\usepackage{cmap}
\else
- \ifDis@href\usepackage[hypertex,colorlinks=false,hyperfigures=true]{hyperref}\fi
+ \ifDis@href
+ \usepackage[hypertex,colorlinks=false,hyperfigures=true]{hyperref}
+ \fi
\usepackage{graphicx}
\fi
-\ifDis@href\usepackage{hypernat}\fi
-\usepackage[rflt]{floatflt}
+\ifDis@href
+ \usepackage{hypernat}
+ \usepackage[all]{hypcap}
+\fi
+\usepackage{wrapfig}
\ifDis@subf
\usepackage[config,font=small,labelsep=period]{caption,subfig}
\def\thesubfigure{\textit{\asbuk{subfigure}}}
- \providecommand\thefigsubsep{,\ }
+ \providecommand\thefigsubsep{,~}
\def\p@subfigure{\@nameuse{thefigure}\thefigsubsep}
\fi
\endinput