diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/disser/disser.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/disser/disser.cls | 147 |
1 files changed, 83 insertions, 64 deletions
diff --git a/Master/texmf-dist/tex/latex/disser/disser.cls b/Master/texmf-dist/tex/latex/disser/disser.cls index f99339f9388..64fb2370b9f 100644 --- a/Master/texmf-dist/tex/latex/disser/disser.cls +++ b/Master/texmf-dist/tex/latex/disser/disser.cls @@ -44,9 +44,9 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{disser}[2009/11/20 1.1.4 Document class for dissertations] +\ProvidesClass{disser}[2009/03/23 1.1.5 Document class for dissertations] -\def\substyle@ext{.rtx} +\RequirePackage{kvoptions} \RequirePackage{ifpdf} @@ -59,6 +59,7 @@ \newif\ifDis@doctor\Dis@doctorfalse \newif\ifDis@autoref\Dis@autoreffalse \newif\ifDis@libcat\Dis@libcatfalse +\newif\ifDis@classified\Dis@classifiedfalse \newif\ifDis@facsimile\Dis@facsimilefalse \newif\ifDis@ams\Dis@amstrue \newif\ifDis@href\Dis@hreffalse @@ -66,21 +67,12 @@ \newif\ifDis@times\Dis@timesfalse \newif\ifDis@mtpro\Dis@mtprofalse -\RequirePackage{kvoptions}[2006/08/17] - \DeclareOption{href}{\Dis@hreftrue} \DeclareOption{subf}{\Dis@subftrue} \DeclareOption{libcat}{\Dis@libcattrue} +\DeclareOption{classified}{\Dis@classifiedtrue} \DeclareOption{facsimile}{\Dis@facsimiletrue} \DeclareOption{noams}{\Dis@amsfalse} - -\SetupKeyvalOptions{ - family=Dis, - prefix=Dis@ -} - -\DeclareBoolOption[true]{fixint} - \DeclareOption{a4paper}{% \setlength\paperheight{297mm} \setlength\paperwidth {210mm} @@ -178,10 +170,27 @@ \Dis@autoreftrue } +\SetupKeyvalOptions{ + family=Dis, + prefix=Dis@ +} + +\DeclareBoolOption[true]{fixint} +\DeclareBoolOption[false]{colorlinks} +\DeclareStringOption{titlepagefile} + \ExecuteOptions{a4paper,14pt,oneside,titlepage,onecolumn,final,openany,candidate} \ProcessKeyvalOptions{Dis} \ProcessOptions +\ifx\Dis@titlepagefile\@empty + \ifDis@bachelor \renewcommand*{\Dis@titlepagefile}{bachelor.rtx}\fi + \ifDis@master \renewcommand*{\Dis@titlepagefile}{master.rtx}\fi + \ifDis@candidate\renewcommand*{\Dis@titlepagefile}{candidate.rtx}\fi + \ifDis@doctor \renewcommand*{\Dis@titlepagefile}{doctor.rtx}\fi + \ifDis@autoref \renewcommand*{\Dis@titlepagefile}{autoref.rtx}\fi +\fi + \DeclareRobustCommand\MakeTextUppercase{% \@uclcnotmath{\def\i{I}\def\j{J}}{##1##2}\uppercase} @@ -196,6 +205,7 @@ \DeclareFontShape{#1}{#2}{#3}{#4}% {<5><6><7><8><9><10><10.95><12><14.4><17.28><20.74>% <24.88><29.86><35.83><42.99><51.59>genb*#5}{}} + \EC@family{T1}{cmr}{m}{n}{ecrm} \EC@family{T1}{cmr}{m}{sl}{ecsl} \EC@family{T1}{cmr}{m}{it}{ecti} @@ -206,45 +216,49 @@ \EC@family{T1}{cmr}{bx}{sl}{ecbl} \EC@family{T1}{cmr}{bx}{sc}{ecxc} \EC@family{T1}{cmr}{m}{ui}{ecui} -\DeclareFontShape{OT1}{cmr}{m}{n}% - {<5><6><7><8><9><10><12>gen*cmr% - <10.95>cmr10% - <14.4>cmr12% - <17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmr17}{} -\DeclareFontShape{OT1}{cmr}{m}{sl}% - {<5><6><7>cmsl8% - <8><9>gen*cmsl% - <10><10.95>cmsl10% - <12><14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmsl12% - }{} -\DeclareFontShape{OT1}{cmr}{m}{it}% - {<5><6><7>cmti7% - <8>cmti8% - <9>cmti9% - <10><10.95>cmti10% - <12><14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmti12% - }{} -\DeclareFontShape{OT1}{cmr}{m}{sc}% - {<5><6><7><8><9><10><10.95><12>% - <14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmcsc10% - }{} -\DeclareFontShape{OT1}{cmr}{m}{ui}{ + +\DeclareFontShape{OT1}{cmr}{m}{n}{% + <5><6><7><8><9><10><12>gen*cmr% + <10.95>cmr10% + <14.4>cmr12% + <17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmr17% +}{} +\DeclareFontShape{OT1}{cmr}{m}{sl}{% + <5><6><7>cmsl8% + <8><9>gen*cmsl% + <10><10.95>cmsl10% + <12><14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmsl12% +}{} +\DeclareFontShape{OT1}{cmr}{m}{it}{% + <5><6><7>cmti7% + <8>cmti8% + <9>cmti9% + <10><10.95>cmti10% + <12><14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmti12% +}{} +\DeclareFontShape{OT1}{cmr}{m}{sc}{% + <5><6><7><8><9><10><10.95><12>% + <14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmcsc10% +}{} +\DeclareFontShape{OT1}{cmr}{m}{ui}{% <5><6><7><8><9><10><10.95><12>% <14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmu10% }{} -\DeclareFontShape{OT1}{cmr}{b}{n}{ +\DeclareFontShape{OT1}{cmr}{b}{n}{% <5><6><7><8><9><10><10.95><12>% <14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmb10% }{} -\DeclareFontShape{OT1}{cmr}{bx}{n}{ +\DeclareFontShape{OT1}{cmr}{bx}{n}{% <5><6><7><8><9>gen*cmbx% <10><10.95>cmbx10% <12><14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmbx12% }{} -\DeclareFontShape{OT1}{cmr}{bx}{sl}{<5><6><7><8><9>% +\DeclareFontShape{OT1}{cmr}{bx}{sl}{% + <5><6><7><8><9>% <10><10.95><12><14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmbxsl10% }{} -\DeclareFontShape{OT1}{cmr}{bx}{it}{<5><6><7><8><9>% +\DeclareFontShape{OT1}{cmr}{bx}{it}{% + <5><6><7><8><9>% <10><10.95><12><14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmbxti10% }{} \input{size\@ptsize.clo} @@ -472,7 +486,7 @@ \providecommand\chapterfont{\Large\bfseries} \providecommand\beforechapter{} \providecommand\afterchapter{\par\nobreak\vskip 20\p@} -\providecommand\chapterindent{0pt} +\providecommand\chapterindent{0\p@} \newcommand*\chaptermark[1]{} @@ -505,6 +519,7 @@ \@afterheading \fi } + \def\@makechapterhead#1{{% \parindent\z@ \normalfont\hskip\chapterindent% @@ -530,6 +545,7 @@ \interlinepenalty\@M \chapteralign\chapterfont\beforechapter #1\afterchapter }} + \newcommand*\l@chapter[2]{% \ifnum \c@tocdepth >\m@ne \addpenalty{-\@highpenalty} @@ -566,7 +582,7 @@ \providecommand\appendixfont{\Large\bfseries} \providecommand\beforeappendix{} \providecommand\afterappendix{\par\nobreak\vskip 20\p@} -\providecommand\appendixindent{0pt} +\providecommand\appendixindent{0\p@} \newcommand\appendix{ \setcounter{chapter}{0} \setcounter{section}{0} @@ -807,7 +823,8 @@ \ifnum #2>\c@secnumdepth \else \protect\numberline{\@tocseccntformat{#1}}% \fi - #7}}% + #7}% + }% \fi \@xsect{#5}% } @@ -1079,6 +1096,14 @@ \newcommand\oddfootfont{\reset@font} \newcommand\headfont{\reset@font} \newcommand\footfont{\reset@font} +\def\ps@empty{ + \let\@mkboth\@gobbletwo + \let\@oddhead\@empty + \let\@oddfoot\@empty + \let\@evenhead\@empty + \let\@evenfoot\@empty +} + \def\ps@footcenter{ \let\@mkboth\@gobbletwo \let\@oddhead\@empty @@ -1185,7 +1210,7 @@ \newcommand\today{} -\input{titledefs\substyle@ext} +\input{titledefs.rtx} \if@titlepage \newcommand\titlefont{\Large\bfseries} @@ -1195,23 +1220,9 @@ \newcommand\cdsep{~-- } \newcommand\maketitle{ - \thispagestyle{empty} - \vspace*{-2cm} - \begin{center} - \instfont\@institution\par - \makeatletter - \ifDis@bachelor \input{bachelor\substyle@ext}\fi - \ifDis@master \input{master\substyle@ext}\fi - \ifDis@candidate\input{candidate\substyle@ext}\fi - \ifDis@doctor \input{doctor\substyle@ext}\fi - \ifDis@autoref \input{autoref\substyle@ext}\fi - \enlargethispage{2cm} - \vfill - {\@city\cdsep\@date} - \end{center} - \normalsize - \clearpage - \thispagestyle{empty} + \makeatletter + \input{\Dis@titlepagefile} + \normalfont\clearpage } % \newcommand\maketitle \setcounter{footnote}{0} \else %\if@titlepage @@ -1260,7 +1271,8 @@ \newcommand\tocsection{\chapter*{\contentsname}} \newcommand\tableofcontents{% - \if@twocolumn\@restonecoltrue\onecolumn% + \if@twocolumn% + \@restonecoltrue\onecolumn% \else\@restonecolfalse\fi% \tocsection% \@mkboth{\MakeUppercase\contentsname}{\MakeUppercase\contentsname}% @@ -1450,11 +1462,18 @@ \usepackage{graphicx} \fi \ifDis@href - \usepackage{hypernat} - \usepackage[all]{hypcap} + \ifDis@colorlinks + \usepackage{color} + \definecolor{darkblue}{rgb}{0,0,.6} + \hypersetup{ + colorlinks = true, linkcolor = darkblue, + citecolor = darkblue, filecolor = darkblue, + menucolor = darkblue, urlcolor = darkblue + } + \fi \fi -\def\metaphantom#1{% +\providecommand\metaphantom[1]{% \ifDis@href \Hy@GlobalStepCount\Hy@linkcounter \xdef\@currentHref{#1*.\the\Hy@linkcounter}% |