summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/thesis-ekf/thesis-ekf.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/thesis-ekf/thesis-ekf.cls')
-rw-r--r--Master/texmf-dist/tex/latex/thesis-ekf/thesis-ekf.cls46
1 files changed, 41 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/thesis-ekf/thesis-ekf.cls b/Master/texmf-dist/tex/latex/thesis-ekf/thesis-ekf.cls
index fc6fdbde1df..402003feed4 100644
--- a/Master/texmf-dist/tex/latex/thesis-ekf/thesis-ekf.cls
+++ b/Master/texmf-dist/tex/latex/thesis-ekf/thesis-ekf.cls
@@ -19,7 +19,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
-\ProvidesClass{thesis-ekf}[2014/05/21 v1.0 class for EKF thesis]
+\ProvidesClass{thesis-ekf}[2015/04/19 v1.1 class for EKF thesis]
\LoadClass[a4paper,12pt]{report}
\RequirePackage[top=25mm,bottom=25mm,inner=30mm,outer=25mm]{geometry}
\RequirePackage[unicode,linktocpage,linkcolor=blue,citecolor=blue,urlcolor=blue,
@@ -56,14 +56,48 @@ pdfstartview=FitH,bookmarksnumbered,pdfborder={0 0 0}]{hyperref}
\renewcommand*\l@section{\@dottedtocline{1}{1.8em}{2.5em}}
\renewcommand*\l@subsection{\@dottedtocline{2}{4.1em}{3.2em}}
-\def\logo#1{\def\@logo{#1}}\logo{}
-\def\institute#1{\def\@institute{#1}}\institute{}
-\def\authorcaption#1{\def\@authorcaption{#1}}\authorcaption{}
-\def\supervisorcaption#1{\def\@supervisorcaption{#1}}\supervisorcaption{}
+\def\thesisekf@chapternumber{%
+ \@ifundefined{l@magyar}
+ {\@chapapp\space \thechapter}
+ {\iflanguage{magyar}
+ {\magyar@huordinal@chapterheaddot \@chapapp}
+ {\@chapapp\space \thechapter}}}
+
+\def\thesisekf@centeredchapter{%
+ \def\@makechapterhead##1{%
+ \vspace*{50\p@}%
+ {\parindent \z@ \raggedright \normalfont
+ \ifnum \c@secnumdepth >\m@ne
+ {\centering\huge\bfseries \thesisekf@chapternumber
+ \par\nobreak}
+ \vskip 20\p@
+ \fi
+ \interlinepenalty\@M
+ {\centering\Huge \bfseries ##1\par\nobreak}
+ \vskip 40\p@
+ }}
+ \def\@makeschapterhead##1{%
+ \vspace*{50\p@}%
+ {\parindent \z@ \raggedright
+ \normalfont
+ \interlinepenalty\@M
+ {\centering\Huge \bfseries ##1\par\nobreak}
+ \vskip 40\p@
+ }}}
+
+\def\logo#1{\def\@logo{#1}}\logo{LOGO}
+\def\institute#1{\def\@institute{#1}}\institute{INSTITUTE}
+\def\authorcaption#1{\def\@authorcaption{#1}}\authorcaption{Author:}
+\def\supervisorcaption#1{\def\@supervisorcaption{#1}}\supervisorcaption{Supervisor:}
\def\supervisor#1{\def\@supervisor{#1}}\supervisor{}
\def\city#1{\def\@city{#1}}\city{}
\def\maketitle{
+\if@centeredchapter
+\thesisekf@centeredchapter
+\let\oldselectlanguage\selectlanguage
+\def\selectlanguage##1{\oldselectlanguage{##1}\thesisekf@centeredchapter}
+\fi
\thispagestyle{empty}
\begin{large}
\centering
@@ -88,6 +122,7 @@ pdfstartview=FitH,bookmarksnumbered,pdfborder={0 0 0}]{hyperref}
\newif\if@logono
\newif\if@logoup
\newif\if@logodown
+\newif\if@centeredchapter
\DeclareOption{nocolorlinks}{\hypersetup{colorlinks=false}}
\DeclareOption{colorlinks}{\hypersetup{colorlinks}}
@@ -96,6 +131,7 @@ pdfstartview=FitH,bookmarksnumbered,pdfborder={0 0 0}]{hyperref}
\DeclareOption{logono}{\@logonotrue\@logoupfalse\@logodownfalse}
\DeclareOption{logoup}{\@logonofalse\@logouptrue\@logodownfalse}
\DeclareOption{logodown}{\@logonofalse\@logoupfalse\@logodowntrue}
+\DeclareOption{centeredchapter}{\@centeredchaptertrue}
\ExecuteOptions{nocolorlinks,oneside,logoup}
\ProcessOptions
\endinput