From 4aa3480139a458cd1092b94a816d8b634e6606f5 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 28 Nov 2018 21:25:50 +0000 Subject: thesis-ekf (28nov18) git-svn-id: svn://tug.org/texlive/trunk@49266 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/latex/thesis-ekf/thesis-ekf.cls | 51 ++++++++++++++++------ 1 file changed, 37 insertions(+), 14 deletions(-) (limited to 'Master/texmf-dist/tex/latex/thesis-ekf') 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 620e3a48d13..c3600ff80f9 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- by Tibor Tomacs +%% Copyright (C) 2014-2018 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,13 +19,14 @@ %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] -\ProvidesClass{thesis-ekf}[2018/02/03 v2.2 Thesis class for Eszterhazy Karoly University (Eger, Hungary)] +\ProvidesClass{thesis-ekf}[2018/11/27 v2.3 Thesis class for Eszterhazy Karoly University (Eger, Hungary)] -\RequirePackage{kvoptions,etoolbox,setspace} +\RequirePackage{kvoptions,etoolbox,ifpdf,setspace,graphicx} \SetupKeyvalOptions{family=ekf,prefix=ekf@} \DeclareVoidOption{twoside}{\PassOptionsToClass{twoside}{report}} \DeclareVoidOption{colorlinks}{\PassOptionsToPackage{colorlinks}{hyperref}} \DeclareBoolOption{logodown} +\DeclareBoolOption{tocnopagenum} \DeclareBoolOption[true]{centeredchapter} \DeclareStringOption[12pt]{fontsize} \DeclareStringOption[10mm]{institutesep} @@ -61,12 +62,22 @@ \RequirePackage[a4paper,top=25mm,bottom=25mm,inner=30mm,outer=25mm]{geometry} \onehalfspacing -\flushbottom -\widowpenalty=10000 -\clubpenalty=10000 \AfterEndPreamble{ +\ifekf@tocnopagenum + \hypersetup{pageanchor=false} + \let\ekf@tableofcontents\tableofcontents + \def\tableofcontents{% + \global\let\ekf@thepage\thepage% + \global\let\thepage\empty% + \ekf@tableofcontents% + \clearpage% + \global\c@page\@ne% + \global\let\thepage\ekf@thepage% + \hypersetup{pageanchor}} +\fi + \ifekf@centeredchapter \let\ekf@makechapterhead\@makechapterhead \let\ekf@makeschapterhead\@makeschapterhead @@ -116,18 +127,30 @@ \renewcommand*\l@section{\@dottedtocline{1}{1.8em}{2.5em}} \renewcommand*\l@subsection{\@dottedtocline{2}{4.3em}{3.2em}} -\if@nochanged@authorcaption@% +\if@ekf@nochanged@authorcaption@% \@ifundefined{l@magyar}{}{% \iflanguage{magyar}{\gdef\ekf@authorcaption{K\'{e}sz\'{\i}tette}}{}}\fi -\if@nochanged@supervisorcaption@% +\if@ekf@nochanged@supervisorcaption@% \@ifundefined{l@magyar}{}{% \iflanguage{magyar}{\gdef\ekf@supervisorcaption{T\'{e}mavezet\H{o}}}{}}\fi +\if@ekf@nochanged@logo@% + \@ifundefined{l@magyar}{}{% + \iflanguage{magyar}{\if@ekf@exists@logo@hu@\gdef\ekf@logo{\includegraphics{eszterhazy-logo-hu}}\fi}{}}\fi + } -\def\logo#1{\gdef\ekf@logo{#1}} -\logo{} +\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} @@ -150,8 +173,8 @@ \ClassWarning{thesis-ekf}{There isn't author!}~% \else\ekf@author\fi} -\newif\if@nochanged@authorcaption@\@nochanged@authorcaption@true -\def\authorcaption#1{\@nochanged@authorcaption@false\gdef\ekf@authorcaption{#1}} +\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 @@ -165,8 +188,8 @@ \ClassWarning{thesis-ekf}{There isn't supervisor!}~% \else\ekf@supervisor\fi} -\newif\if@nochanged@supervisorcaption@\@nochanged@supervisorcaption@true -\def\supervisorcaption#1{\@nochanged@supervisorcaption@false\gdef\ekf@supervisorcaption{#1}} +\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 -- cgit v1.2.3