diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/disser/disser.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/disser/disser.cls | 84 |
1 files changed, 61 insertions, 23 deletions
diff --git a/Master/texmf-dist/tex/latex/disser/disser.cls b/Master/texmf-dist/tex/latex/disser/disser.cls index 800bb9ea0ff..b4e040c3f16 100644 --- a/Master/texmf-dist/tex/latex/disser/disser.cls +++ b/Master/texmf-dist/tex/latex/disser/disser.cls @@ -18,7 +18,7 @@ %% toc.dtx (with options: `toc') %% custom.dtx (with options: `custom') %% -%% Copyright (c) 2004-2007 Stanislav Kruchinin. +%% Copyright (c) 2004-2009 Stanislav Kruchinin. %% All rights reserved. %% %% This file is part of the disser package. @@ -27,7 +27,7 @@ %% %% disser -- LaTeX document class for dissertations. %% -%% Copyright (c) 2004-2008 Stanislav Kruchinin +%% Copyright (c) 2004-2009 Stanislav Kruchinin %% %% It may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3 @@ -44,7 +44,7 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{disser}[2007/11/29 Document class for dissertations.] +\ProvidesClass{disser}[2008/11/11 1.1.0 Document class for dissertations.] \def\substyle@ext{.rtx} \newif\if@restonecol @@ -57,10 +57,13 @@ \newif\ifDis@candidate \newif\ifDis@doctor \newif\ifDis@autoref +\newif\ifDis@libcat +\newif\ifDis@facsimile \newif\ifDis@href \newif\ifDis@subf \newif\ifDis@times +\newif\ifDis@mtpro \@titlepagetrue \Dis@bachelorfalse @@ -69,8 +72,11 @@ \Dis@doctorfalse \Dis@autoreffalse \Dis@timesfalse +\Dis@mtprofalse \Dis@subffalse \Dis@hreffalse +\Dis@libcatfalse +\Dis@facsimilefalse \RequirePackage{kvoptions}[2006/08/17] @@ -78,6 +84,9 @@ \DeclareOption{subf}{\Dis@subftrue} +\DeclareOption{libcat}{\Dis@libcattrue} +\DeclareOption{facsimile}{\Dis@facsimiletrue} + \SetupKeyvalOptions{ family=Dis, prefix=Dis@ @@ -132,6 +141,7 @@ \DeclareOption{fleqn}{\input{fleqn.clo}} \DeclareOption{times}{\Dis@timestrue} +\DeclareOption{mtpro}{\Dis@mtprotrue} \DeclareOption{openbib}{% \AtEndOfPackage{% \renewcommand\@openbib@code{% @@ -180,6 +190,10 @@ \Dis@autoreftrue } +\ExecuteOptions{a4paper,14pt,oneside,titlepage,onecolumn,final,openany} +\ProcessOptions +\ProcessKeyvalOptions{Dis} + \DeclareRobustCommand\MakeTextUppercase{% \@uclcnotmath{\def\i{I}\def\j{J}}{##1##2}\uppercase} @@ -190,10 +204,6 @@ \protected@edef\MakeTextLowercase#1{\MakeTextLowercase{#1}} -\ExecuteOptions{a4paper,14pt,oneside,titlepage,onecolumn,final,openany} -\ProcessOptions -\ProcessKeyvalOptions{Dis} - \def\EC@family#1#2#3#4#5{% \DeclareFontShape{#1}{#2}{#3}{#4}% {<5><6><7><8><9><10><10.95><12><14.4><17.28><20.74>% @@ -270,9 +280,6 @@ \onehalfspacing \setlength\parskip{0\p@ \@plus \p@} -\setcounter{tocdepth}{1} -\setcounter{secnumdepth}{2} - \setlength\columnsep{10\p@} \setlength\columnseprule{0\p@} @@ -293,6 +300,9 @@ %%% From File: counters.dtx +\setcounter{tocdepth}{1} +\setcounter{secnumdepth}{2} + \newcounter{part} \newcounter{chapter} \newcounter{section}[chapter] @@ -302,6 +312,7 @@ \newcounter{subparagraph}[paragraph] \newcounter{figure}[chapter] \newcounter{table}[chapter] + \renewcommand\thepart{\@Roman\c@part} \renewcommand\thechapter{\@arabic\c@chapter} \newcommand\theappendix{\@Asbuk\c@chapter} @@ -459,7 +470,8 @@ \providecommand\prechapter{} \providecommand\postchapter{\par\nobreak\vskip 20\p@} -\def\chapterpagestyle#1{\gdef\@chapterpagestyle{#1}}\chapterpagestyle{plain} +\def\chapterpagestyle#1{\gdef\@chapterpagestyle{#1}} +\chapterpagestyle{plain} \newcommand*\chaptermark[1]{} \newcommand\chapter{% @@ -704,7 +716,7 @@ \providecommand\paragraphindent{\z@} \providecommand\beforeparagraph{3.25ex \@plus1ex \@minus.2ex} \providecommand\afterparagraph{-1em} -\providecommand\paragraphalign{\raggedright} +\providecommand\paragraphalign{} \providecommand\tocprethesubparagraph{} \providecommand\tocpostthesubparagraph{.\@postskip} @@ -923,25 +935,30 @@ {\list{}{\labelwidth\z@ \itemindent-\leftmargin \let\makelabel\descriptionlabel}} {\endlist} + \newcommand*\descriptionlabel[1]{\hspace\labelsep\normalfont\bfseries #1} + +\newcommand\abstractnamefont{\bfseries\small} +\newcommand\abstractfont{\small} +\newcommand\postabstract{\par\vfil\null} + \if@titlepage \newenvironment{abstract}{ \thispagestyle{empty} \@beginparpenalty\@lowpenalty \begin{center}% - \bfseries\small\abstractname + \abstractnamefont\abstractname \@endparpenalty\@M - \end{center}\small - }{\par\vfil\null} + \end{center}\abstractfont + }{\postabstract} \else \newenvironment{abstract}{ \if@twocolumn \section*{\abstractname} \else - \small \begin{center} - {\bfseries\abstractname\vspace{-.5em}\vspace{\z@}}% - \end{center} + {\abstractnamefont\vspace{-.5em}\vspace{\z@}}% + \end{center}\abstractfont \quotation \fi }{\if@twocolumn\else\endquotation\fi} @@ -967,8 +984,7 @@ \fi \thispagestyle{empty} \setcounter{page}\@ne -} -{ +}{ \if@restonecol\twocolumn\else\newpage\fi \if@twoside\else\setcounter{page}\@ne\fi } @@ -1246,13 +1262,35 @@ \let\@afterindentfalse\@afterindenttrue \@afterindenttrue +\lccode`\-=`\- +\defaulthyphenchar=127 +\hyphenchar\font=127 \usepackage[intlimits]{amsmath} \usepackage{amssymb,amsfonts} \ifDis@times + \ifDis@mtpro + \AtBeginDocument{% + \IfFileExists{mtpro.sty}{ + \usepackage[subscriptcorrection,nofontinfo,boldalphabet]{mtpro} + }{\PackageWarning{disser}{Unable to find mtpro package. Font is unchanged.}} + } + \else \AtEndOfPackage{% - \usepackage{pscyr} - \usepackage{txfonts} - \renewcommand{\rmdefault}{ftm} + \IfFileExists{txfonts.sty}{ + \usepackage{txfonts} + }{\PackageWarning{disser}{Unable to find txfonts package. Font is unchanged.}} + } + \fi + \AtEndOfPackage{% + \IfFileExists{pscyr.sty}{ + \usepackage{pscyr} + \renewcommand\rmdefault{ftm} + \renewcommand\ttdefault{cmtt} + }{ + \IfFileExists{cyrtimes.sty}{ + \usepackage{cyrtimes} + }{\PackageWarning{disser}{Unable to find pscyr or cyrtimes package. Font is unchanged.}} + } } \fi \ifDis@fixint |