diff options
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.cls | 46 |
1 files changed, 13 insertions, 33 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 11333624c57..620e3a48d13 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}[2017/04/08 v2.1 Thesis class for Eszterhazy Karoly University (Eger, Hungary)] +\ProvidesClass{thesis-ekf}[2018/02/03 v2.2 Thesis class for Eszterhazy Karoly University (Eger, Hungary)] \RequirePackage{kvoptions,etoolbox,setspace} \SetupKeyvalOptions{family=ekf,prefix=ekf@} @@ -65,41 +65,21 @@ \widowpenalty=10000 \clubpenalty=10000 -\def\ekf@chapternumber{% - \@ifundefined{l@magyar} - {\@chapapp\space \thechapter} - {\iflanguage{magyar} - {\magyar@huordinal@chapterheaddot \@chapapp} - {\@chapapp\space \thechapter}}} - -\def\ekf@centeredchapter{% - \def\@makechapterhead##1{% - \vspace*{50\p@}% - {\parindent \z@ \raggedright \normalfont - \ifnum \c@secnumdepth >\m@ne - {\centering\huge\bfseries \ekf@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@ - }}} - \AfterEndPreamble{ \ifekf@centeredchapter - \ekf@centeredchapter - \let\original@selectlanguage\selectlanguage - \def\selectlanguage#1{\original@selectlanguage{#1}\ekf@centeredchapter}\fi + \let\ekf@makechapterhead\@makechapterhead + \let\ekf@makeschapterhead\@makeschapterhead + \let\ekf@raggedright\raggedright + \def\@makechapterhead#1{ + \let\raggedright\centering + \ekf@makechapterhead{#1} + \let\raggedright\ekf@raggedright} + \def\@makeschapterhead#1{ + \let\raggedright\centering + \ekf@makeschapterhead{#1} + \let\raggedright\ekf@raggedright} +\fi \def\@dottedtocline#1#2#3#4#5{% \ifnum #1>\c@tocdepth \else |