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.cls263
1 files changed, 147 insertions, 116 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 c3600ff80f9..04c909f70f5 100644
--- a/Master/texmf-dist/tex/latex/thesis-ekf/thesis-ekf.cls
+++ b/Master/texmf-dist/tex/latex/thesis-ekf/thesis-ekf.cls
@@ -6,7 +6,7 @@
%%
%% ./thesis-ekf.dtx (with options: `class')
%% This is a generated file.
-%% Copyright (C) 2014-2018 by Tibor Tomacs
+%% Copyright (C) 2014-2019 by Tibor Tomacs
%% This file may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
%% version 1.2 of this license or (at your option) any later
@@ -19,43 +19,51 @@
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
-\ProvidesClass{thesis-ekf}[2018/11/27 v2.3 Thesis class for Eszterhazy Karoly University (Eger, Hungary)]
+\ProvidesClass{thesis-ekf}[2019/04/30 v3.0 Thesis class for Eszterhazy Karoly University (Eger, Hungary)]
-\RequirePackage{kvoptions,etoolbox,ifpdf,setspace,graphicx}
-\SetupKeyvalOptions{family=ekf,prefix=ekf@}
+\@ifundefined{pdffontattr}{}{\ifnum\pdfoutput>0\RequirePackage{cmap}\fi}
+\RequirePackage{lmodern,fixcmex,kvoptions,etoolbox,ifpdf,setspace,graphicx}
+
+\SetupKeyvalOptions{family=thesis-ekf,prefix=thesisekf@}
\DeclareVoidOption{twoside}{\PassOptionsToClass{twoside}{report}}
\DeclareVoidOption{colorlinks}{\PassOptionsToPackage{colorlinks}{hyperref}}
\DeclareBoolOption{logodown}
\DeclareBoolOption{tocnopagenum}
\DeclareBoolOption[true]{centeredchapter}
+\DeclareBoolOption[true]{warning}
\DeclareStringOption[12pt]{fontsize}
\DeclareStringOption[10mm]{institutesep}
\DeclareStringOption[0mm]{logosep}
\DeclareStringOption[\stretch{1.5}]{titlesep}
\DeclareStringOption[15mm]{authorsep}
-\DeclareStringOption[10mm]{xmargin}
-\DeclareStringOption[1mm]{captionsep}
-\DeclareStringOption[\large\normalfont\scshape]{institutefont}
-\DeclareStringOption[\large\normalfont\scshape]{logofont}
-\DeclareStringOption[\Huge\normalfont\sffamily\bfseries]{titlefont}
-\DeclareStringOption[\large\normalfont]{authorfont}
-\DeclareStringOption[\large\normalfont\bfseries]{captionfont}
-\DeclareStringOption[\large\normalfont\scshape]{cityfont}
-\ProcessKeyvalOptions{ekf}
+\DeclareStringOption[10mm]{authorxmargin}
+\DeclareStringOption[0mm]{captionsep}
+\DeclareStringOption[l]{authoralign}
+\DeclareStringOption[r]{supervisoralign}
+\DeclareStringOption[\large\scshape]{institutefont}
+\DeclareStringOption[\large\scshape]{logofont}
+\DeclareStringOption[\Huge\bfseries]{titlefont}
+\DeclareStringOption[\large]{authorfont}
+\DeclareStringOption[\large\bfseries]{captionfont}
+\DeclareStringOption[\large\scshape]{cityfont}
+\DeclareStringOption[\large\scshape]{datefont}
+\DeclareStringOption[,~]{datesep}
+\ProcessKeyvalOptions{thesis-ekf}
+
\InputIfFileExists{thesis-ekf.cfg}{}{}
-\def\ekf@ten{10pt}
-\def\ekf@eleven{11pt}
-\def\ekf@twelve{12pt}
+\def\thesisekf@ten{10pt}
+\def\thesisekf@eleven{11pt}
+\def\thesisekf@twelve{12pt}
-\ifx\ekf@fontsize\ekf@ten\else
-\ifx\ekf@fontsize\ekf@eleven\else
-\ifx\ekf@fontsize\ekf@twelve\else
-\ClassWarning{thesis-ekf}{Unused option: fontsize=\ekf@fontsize. Use fontsize=10pt, fontsize=11pt or fontsize=12pt!}
-\def\ekf@fontsize{12pt}
+\ifx\thesisekf@fontsize\thesisekf@ten\else
+\ifx\thesisekf@fontsize\thesisekf@eleven\else
+\ifx\thesisekf@fontsize\thesisekf@twelve\else
+\ClassWarning{thesis-ekf}{Unused option: fontsize=\thesisekf@fontsize. Use fontsize=10pt, fontsize=11pt or fontsize=12pt!}
+\def\thesisekf@fontsize{12pt}
\fi\fi\fi
-\PassOptionsToClass{\ekf@fontsize}{report}
+\PassOptionsToClass{\thesisekf@fontsize}{report}
\LoadClass{report}
\RequirePackage[unicode,linktocpage,allcolors=blue,pdfstartview=FitH,bookmarksnumbered,pdfborder={0 0 0}]{hyperref}
@@ -63,33 +71,35 @@
\onehalfspacing
+\AtEndPreamble{\RequirePackage{upquote}}
+
\AfterEndPreamble{
-\ifekf@tocnopagenum
+\ifthesisekf@tocnopagenum
\hypersetup{pageanchor=false}
- \let\ekf@tableofcontents\tableofcontents
+ \let\thesisekf@tableofcontents\tableofcontents
\def\tableofcontents{%
- \global\let\ekf@thepage\thepage%
+ \global\let\thesisekf@thepage\thepage%
\global\let\thepage\empty%
- \ekf@tableofcontents%
+ \thesisekf@tableofcontents%
\clearpage%
\global\c@page\@ne%
- \global\let\thepage\ekf@thepage%
+ \global\let\thepage\thesisekf@thepage%
\hypersetup{pageanchor}}
\fi
-\ifekf@centeredchapter
- \let\ekf@makechapterhead\@makechapterhead
- \let\ekf@makeschapterhead\@makeschapterhead
- \let\ekf@raggedright\raggedright
+\ifthesisekf@centeredchapter
+ \let\thesisekf@makechapterhead\@makechapterhead
+ \let\thesisekf@makeschapterhead\@makeschapterhead
+ \let\thesisekf@raggedright\raggedright
\def\@makechapterhead#1{
\let\raggedright\centering
- \ekf@makechapterhead{#1}
- \let\raggedright\ekf@raggedright}
+ \thesisekf@makechapterhead{#1}
+ \let\raggedright\thesisekf@raggedright}
\def\@makeschapterhead#1{
\let\raggedright\centering
- \ekf@makeschapterhead{#1}
- \let\raggedright\ekf@raggedright}
+ \thesisekf@makeschapterhead{#1}
+ \let\raggedright\thesisekf@raggedright}
\fi
\def\@dottedtocline#1#2#3#4#5{%
@@ -127,113 +137,134 @@
\renewcommand*\l@section{\@dottedtocline{1}{1.8em}{2.5em}}
\renewcommand*\l@subsection{\@dottedtocline{2}{4.3em}{3.2em}}
-\if@ekf@nochanged@authorcaption@%
+\if@thesisekf@nochanged@authorcaption@%
\@ifundefined{l@magyar}{}{%
- \iflanguage{magyar}{\gdef\ekf@authorcaption{K\'{e}sz\'{\i}tette}}{}}\fi
+ \iflanguage{magyar}{\gdef\thesisekf@authorcaption{K\'{e}sz\'{\i}tette}}{}}%
+ \@ifundefined{l@ngerman}{}{%
+ \iflanguage{ngerman}{\gdef\thesisekf@authorcaption{Autor}}{}}%
+ \@ifundefined{l@german}{}{%
+ \iflanguage{german}{\gdef\thesisekf@authorcaption{Autor}}{}}\fi
-\if@ekf@nochanged@supervisorcaption@%
+\if@thesisekf@nochanged@supervisorcaption@%
\@ifundefined{l@magyar}{}{%
- \iflanguage{magyar}{\gdef\ekf@supervisorcaption{T\'{e}mavezet\H{o}}}{}}\fi
+ \iflanguage{magyar}{\gdef\thesisekf@supervisorcaption{T\'{e}mavezet\H{o}}}{}}%
+ \@ifundefined{l@ngerman}{}{%
+ \iflanguage{ngerman}{\gdef\thesisekf@supervisorcaption{Betreuer}}{}}%
+ \@ifundefined{l@german}{}{%
+ \iflanguage{german}{\gdef\thesisekf@supervisorcaption{Betreuer}}{}}\fi
-\if@ekf@nochanged@logo@%
+\if@thesisekf@nochanged@logo@%
\@ifundefined{l@magyar}{}{%
- \iflanguage{magyar}{\if@ekf@exists@logo@hu@\gdef\ekf@logo{\includegraphics{eszterhazy-logo-hu}}\fi}{}}\fi
+ \iflanguage{magyar}{\if@thesisekf@exists@logo@hu@\gdef\thesisekf@logo{\includegraphics{eszterhazy-logo-hu}}\fi}{}}%
+ \@ifundefined{l@ngerman}{}{%
+ \iflanguage{ngerman}{\if@thesisekf@exists@logo@de@\gdef\thesisekf@logo{\includegraphics{eszterhazy-logo-de}}\fi}{}}%
+ \@ifundefined{l@german}{}{%
+ \iflanguage{german}{\if@thesisekf@exists@logo@de@\gdef\thesisekf@logo{\includegraphics{eszterhazy-logo-de}}\fi}{}}\fi
}
-\newif\if@ekf@nochanged@logo@\@ekf@nochanged@logo@true
-\def\logo#1{\@ekf@nochanged@logo@false\gdef\ekf@logo{#1}}
-\def\ekf@logo{}
-\newif\if@ekf@exists@logo@en@
-\ifpdf\IfFileExists{eszterhazy-logo-en.pdf}{\@ekf@exists@logo@en@true}{}
- \else\IfFileExists{eszterhazy-logo-en.eps}{\@ekf@exists@logo@en@true}{}\fi
-\newif\if@ekf@exists@logo@hu@
-\ifpdf\IfFileExists{eszterhazy-logo-hu.pdf}{\@ekf@exists@logo@hu@true}{}
- \else\IfFileExists{eszterhazy-logo-hu.eps}{\@ekf@exists@logo@hu@true}{}\fi
-\if@ekf@exists@logo@en@\def\ekf@logo{\includegraphics{eszterhazy-logo-en}}\fi
-\def\ekf@logo@{\ifx\ekf@logo\@empty%
- \ClassWarning{thesis-ekf}{There isn't logo!}%
- \else\ekf@logo\fi}
-
-\def\institute#1{\gdef\ekf@institute{#1}}
+\newif\if@thesisekf@nochanged@logo@\@thesisekf@nochanged@logo@true
+\def\logo#1{\@thesisekf@nochanged@logo@false\gdef\thesisekf@logo{#1}}
+\def\thesisekf@logo{}
+\newif\if@thesisekf@exists@logo@en@
+\ifpdf\IfFileExists{eszterhazy-logo-en.pdf}{\@thesisekf@exists@logo@en@true}{}
+ \else\IfFileExists{eszterhazy-logo-en.eps}{\@thesisekf@exists@logo@en@true}{}\fi
+\newif\if@thesisekf@exists@logo@hu@
+\ifpdf\IfFileExists{eszterhazy-logo-hu.pdf}{\@thesisekf@exists@logo@hu@true}{}
+ \else\IfFileExists{eszterhazy-logo-hu.eps}{\@thesisekf@exists@logo@hu@true}{}\fi
+\newif\if@thesisekf@exists@logo@de@
+\ifpdf\IfFileExists{eszterhazy-logo-de.pdf}{\@thesisekf@exists@logo@de@true}{}
+ \else\IfFileExists{eszterhazy-logo-de.eps}{\@thesisekf@exists@logo@de@true}{}\fi
+\if@thesisekf@exists@logo@en@\def\thesisekf@logo{\includegraphics{eszterhazy-logo-en}}\fi
+\def\thesisekf@logo@{\thesisekf@logo%
+ \ifx\thesisekf@logo\@empty\ifthesisekf@warning\ClassWarning{thesis-ekf}{There isn't logo!}\fi\fi}
+
+\def\institute#1{\gdef\thesisekf@institute{#1}}
\institute{}
-\def\ekf@institute@{\ifx\ekf@institute\@empty%
- \ClassWarning{thesis-ekf}{There isn't institute!}%
- \else\ekf@institute\fi}
+\def\thesisekf@institute@{\thesisekf@institute%
+ \ifx\thesisekf@institute\@empty\ifthesisekf@warning\ClassWarning{thesis-ekf}{There isn't institute!}\fi\fi}
-\def\title#1{\gdef\ekf@title{#1}}
+\def\title#1{\gdef\thesisekf@title{#1}}
\title{}
-\def\ekf@title@{\ifx\ekf@title\@empty
- \ClassWarning{thesis-ekf}{There isn't title!}~%
- \else\ekf@title\fi}
+\def\thesisekf@title@{\thesisekf@title%
+ \ifx\thesisekf@title\@empty\ifthesisekf@warning\ClassWarning{thesis-ekf}{There isn't title!}\fi\fi}
-\def\author#1{\gdef\ekf@author{#1}}
+\def\author#1{\gdef\thesisekf@author{#1}}
\author{}
-\def\ekf@author@{\ifx\ekf@author\@empty
- \ClassWarning{thesis-ekf}{There isn't author!}~%
- \else\ekf@author\fi}
-
-\newif\if@ekf@nochanged@authorcaption@\@ekf@nochanged@authorcaption@true
-\def\authorcaption#1{\@ekf@nochanged@authorcaption@false\gdef\ekf@authorcaption{#1}}
-\def\ekf@authorcaption{Author}
-\def\ekf@authorcaption@{\ifx\ekf@author\@empty~%
- \else
- \ifx\ekf@authorcaption\@empty
- \ClassWarning{thesis-ekf}{There isn't authorcaption!}~%
- \else\ekf@authorcaption\fi\fi}
-
-\def\supervisor#1{\gdef\ekf@supervisor{#1}}
+\def\thesisekf@author@{\thesisekf@author%
+ \ifx\thesisekf@author\@empty\ifthesisekf@warning\ClassWarning{thesis-ekf}{There isn't author!}\fi\fi}
+
+\newif\if@thesisekf@nochanged@authorcaption@\@thesisekf@nochanged@authorcaption@true
+\def\authorcaption#1{\@thesisekf@nochanged@authorcaption@false\gdef\thesisekf@authorcaption{#1}}
+\def\thesisekf@authorcaption{Author}
+\def\thesisekf@authorcaption@{%
+ \ifx\thesisekf@author\@empty\else
+ \ifx\thesisekf@authorcaption\@empty\ifthesisekf@warning\ClassWarning{thesis-ekf}{There isn't authorcaption!}\fi
+ \else\thesisekf@authorcaption\fi\fi}
+
+\def\supervisor#1{\gdef\thesisekf@supervisor{#1}}
\supervisor{}
-\def\ekf@supervisor@{\ifx\ekf@supervisor\@empty
- \ClassWarning{thesis-ekf}{There isn't supervisor!}~%
- \else\ekf@supervisor\fi}
-
-\newif\if@ekf@nochanged@supervisorcaption@\@ekf@nochanged@supervisorcaption@true
-\def\supervisorcaption#1{\@ekf@nochanged@supervisorcaption@false\gdef\ekf@supervisorcaption{#1}}
-\def\ekf@supervisorcaption{Supervisor}
-\def\ekf@supervisorcaption@{\ifx\ekf@supervisor\@empty~%
- \else
- \ifx\ekf@supervisorcaption\@empty
- \ClassWarning{thesis-ekf}{There isn't supervisorcaption!}~%
- \else\ekf@supervisorcaption\fi\fi}
-
-\def\city#1{\gdef\ekf@city{#1}}
+\def\thesisekf@supervisor@{\thesisekf@supervisor%
+ \ifx\thesisekf@supervisor\@empty\ifthesisekf@warning\ClassWarning{thesis-ekf}{There isn't supervisor!}\fi\fi}
+
+\newif\if@thesisekf@nochanged@supervisorcaption@\@thesisekf@nochanged@supervisorcaption@true
+\def\supervisorcaption#1{\@thesisekf@nochanged@supervisorcaption@false\gdef\thesisekf@supervisorcaption{#1}}
+\def\thesisekf@supervisorcaption{Supervisor}
+\def\thesisekf@supervisorcaption@{%
+ \ifx\thesisekf@supervisor\@empty\else
+ \ifx\thesisekf@supervisorcaption\@empty\ifthesisekf@warning\ClassWarning{thesis-ekf}{There isn't supervisorcaption!}\fi
+ \else\thesisekf@supervisorcaption\fi\fi}
+
+\def\city#1{\gdef\thesisekf@city{#1}}
\city{}
-\def\ekf@city@{\ekf@city\ifx\ekf@city\@empty%
- \ClassWarning{thesis-ekf}{There isn't city!}\fi}
+\def\thesisekf@city@{\thesisekf@city%
+ \ifx\thesisekf@city\@empty\ifthesisekf@warning\ClassWarning{thesis-ekf}{There isn't city!}\fi\fi}
-\def\date#1{\gdef\ekf@date{#1}}
+\def\date#1{\gdef\thesisekf@date{#1}}
\date{\number\year}
-\def\ekf@date@{\ekf@date\ifx\ekf@date\@empty%
- \ClassWarning{thesis-ekf}{There isn't date!}\fi}
+\def\thesisekf@date@{\thesisekf@date%
+ \ifx\thesisekf@date\@empty\ifthesisekf@warning\ClassWarning{thesis-ekf}{There isn't date!}\fi\fi}
+
+\def\thesisekf@datesep@{\ifx\thesisekf@city\@empty\else\ifx\thesisekf@date\@empty\else\thesisekf@datesep\fi\fi}
-\def\ekf@sep{,~}
-\def\ekf@sep@{\ifx\ekf@city\@empty\else\ifx\ekf@date\@empty\else\ekf@sep\fi\fi}
+\newif\if@thesisekf@noempty@author@supervisor@\@thesisekf@noempty@author@supervisor@true
\def\maketitle{
\thispagestyle{empty}
{\centering
-\ifekf@logodown
-{\ekf@institutefont\ekf@institute@\ifx\ekf@institute\@empty\else\\
-\vspace{\ekf@institutesep}\fi}
-{\ekf@logofont\ekf@logo@\ifx\ekf@logo\@empty~\\\else\\\fi}
+\ifthesisekf@logodown
+ {\normalfont\normalsize\thesisekf@institutefont\thesisekf@institute@%
+ \ifx\thesisekf@institute\@empty\else\\
+ \ifx\thesisekf@logo\@empty\else\vspace{\thesisekf@institutesep}\fi\fi}
+ {\normalfont\normalsize\thesisekf@logofont\thesisekf@logo@%
+ \ifx\thesisekf@logo\@empty\else\\\fi}
\else
-{\ekf@logofont\ekf@logo@\ifx\ekf@logo\@empty\else\\\vspace{\ekf@logosep}\fi}
-{\ekf@institutefont\ekf@institute@\ifx\ekf@institute\@empty~\\\else\\\fi}
+ {\normalfont\normalsize\thesisekf@logofont\thesisekf@logo@%
+ \ifx\thesisekf@logo\@empty\else\\
+ \ifx\thesisekf@institute\@empty\else\vspace{\thesisekf@logosep}\fi\fi}
+ {\normalfont\normalsize\thesisekf@institutefont\thesisekf@institute@%
+ \ifx\thesisekf@institute\@empty\else\\\fi}
\fi
-\vfill{\ekf@titlefont\ekf@title@\\}\vspace{\ekf@titlesep}
-{\ekf@authorfont
-\begin{tabular}[t]{@{\hspace{\ekf@xmargin}}l@{}}
-{\ekf@captionfont\ekf@authorcaption@}\\[\ekf@captionsep]
-\ekf@author@
+\vspace*{\fill}
+{\normalfont\normalsize\thesisekf@titlefont\thesisekf@title@%
+\ifx\thesisekf@title\@empty\else\\\vspace{\thesisekf@titlesep}\fi}
+\ifx\thesisekf@supervisor\@empty\ifx\thesisekf@author\@empty\@thesisekf@noempty@author@supervisor@false\fi\fi
+\if@thesisekf@noempty@author@supervisor@
+{\normalfont\normalsize\thesisekf@authorfont
+\begin{tabular}[t]{@{\hspace{\thesisekf@authorxmargin}}\thesisekf@authoralign @{}}
+{\normalfont\normalsize\thesisekf@captionfont\thesisekf@authorcaption@}\\[\thesisekf@captionsep]
+\thesisekf@author@
\end{tabular}
\hfill
-\begin{tabular}[t]{@{}l@{\hspace{\ekf@xmargin}}}
-{\ekf@captionfont\ekf@supervisorcaption@}\\[\ekf@captionsep]
-\ekf@supervisor@
-\end{tabular}}
-\par\vspace{\ekf@authorsep}
-{\ekf@cityfont\ekf@city@\ekf@sep@\ekf@date@\par}
+\begin{tabular}[t]{@{}\thesisekf@supervisoralign @{\hspace{\thesisekf@authorxmargin}}}
+{\normalfont\normalsize\thesisekf@captionfont\thesisekf@supervisorcaption@}\\[\thesisekf@captionsep]
+\thesisekf@supervisor@
+\end{tabular}
+\\\vspace{\thesisekf@authorsep}}
+\fi
+{\normalfont\normalsize\thesisekf@cityfont\thesisekf@city@\thesisekf@datesep@}%
+{\normalfont\normalsize\thesisekf@datefont\thesisekf@date@}
+\par
}
\newpage
\if@twoside\thispagestyle{empty}\hbox{}\newpage\fi}