summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/hagenberg-thesis
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-10-29 20:44:55 +0000
committerKarl Berry <karl@freefriends.org>2020-10-29 20:44:55 +0000
commit2847576a30d6c1ef98a6455f235f3963891612de (patch)
tree8027e3e9bbce1b4df1be66799badf5ddbfcabb19 /Master/texmf-dist/tex/latex/hagenberg-thesis
parent7014c985473247fb8dda8168d241fbc2786ebda6 (diff)
hagenberg-thesis (29oct20)
git-svn-id: svn://tug.org/texlive/trunk@56798 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/hagenberg-thesis')
-rw-r--r--Master/texmf-dist/tex/latex/hagenberg-thesis/hgb.sty71
-rw-r--r--Master/texmf-dist/tex/latex/hagenberg-thesis/hgbabbrev.sty2
-rw-r--r--Master/texmf-dist/tex/latex/hagenberg-thesis/hgbalgo.sty2
-rw-r--r--Master/texmf-dist/tex/latex/hagenberg-thesis/hgbarticle.cls14
-rw-r--r--Master/texmf-dist/tex/latex/hagenberg-thesis/hgbbib.sty53
-rw-r--r--Master/texmf-dist/tex/latex/hagenberg-thesis/hgbheadings.sty2
-rw-r--r--Master/texmf-dist/tex/latex/hagenberg-thesis/hgblistings.sty13
-rw-r--r--Master/texmf-dist/tex/latex/hagenberg-thesis/hgbmath.sty2
-rw-r--r--Master/texmf-dist/tex/latex/hagenberg-thesis/hgbreport.cls16
-rw-r--r--Master/texmf-dist/tex/latex/hagenberg-thesis/hgbthesis.cls224
10 files changed, 189 insertions, 210 deletions
diff --git a/Master/texmf-dist/tex/latex/hagenberg-thesis/hgb.sty b/Master/texmf-dist/tex/latex/hagenberg-thesis/hgb.sty
index 276eba02ed5..36ddc6dce51 100644
--- a/Master/texmf-dist/tex/latex/hagenberg-thesis/hgb.sty
+++ b/Master/texmf-dist/tex/latex/hagenberg-thesis/hgb.sty
@@ -5,22 +5,27 @@
%% File encoding: ASCII
\NeedsTeXFormat{LaTeX2e}
-\newcommand{\hgbDate}{2019/05/11} % version string
-\ProvidesPackage{hgb}[\hgbDate]
+\ProvidesPackage{hgb}[2020/10/29]%%AUTO
\typeout{******************* hgb.sty (options=\@nameuse{opt@hgb.sty}) ***********************}
% Create a default/fallback main language so it is set no matter what
\providecommand{\hgb@MainLanguage}{german}
\RequirePackage{xifthen}
+
\newboolean{hgb@SmartQuotesOn}
-\setboolean{hgb@SmartQuotesOn}{false}
+\setboolean{hgb@SmartQuotesOn}{false} % smart quotes are turned off by default
+
+\newboolean{hgb@noUpdateCheck}
+\setboolean{hgb@noUpdateCheck}{false} % update check is perfomed by default
% Handle package options passed from the class file
\DeclareOption{english}{\renewcommand{\hgb@MainLanguage}{english}}
\DeclareOption{german}{\renewcommand{\hgb@MainLanguage}{german}}
\DeclareOption{ngerman}{\renewcommand{\hgb@MainLanguage}{german}}
\DeclareOption{smartquotes}{\setboolean{hgb@SmartQuotesOn}{true}}
+\DeclareOption{noUpdateCheck}{\setboolean{hgb@noUpdateCheck}{true}}
+\DeclareOption*{\ClassWarning{hgb}{Unknown option '\CurrentOption'.}}
\ProcessOptions*
%% Required Packages ----------------------------------------------------------
@@ -59,9 +64,44 @@
\ifthenelse{\boolean{hgb@SmartQuotesOn}}{\EnableQuotes}{}}%
{\end{otherlanguage}}%
+
+%% Date-related stuff ---------------------------------------------------------
+
+\edef\hgbDate{\csname ver@hgb.sty\endcsname} % get this package's build date
+
+\RequirePackage{xstring} % for string operations
+\RequirePackage[english,ngerman,calc,useregional,showdow=false]{datetime2} % replaces obsolete 'datetime' package
+
+% https://tex.stackexchange.com/questions/316253/latex-convert-date-string-format-from-mm-dd-yyyyy-to-dd-mm-yyyy/316257#316257
+\newcommand{\PackageToDTMdate}[2]{% converts date in 'YYYY/MM/DD' format to DTMdate and saves to #2
+ \StrLeft{#1}{4}[\myYear]%
+ \StrRight{#1}{2}[\myDay]%
+ \StrMid{#1}{6}{7}[\myMonth]%
+ \DTMsavenoparsedate{#2}{\myYear}{\myMonth}{\myDay}{-1}%
+ %\DTMdate{\myYear-\myMonth-\myDay}%
+}
+
+\PackageToDTMdate{\hgbDate}{hgbPackageDate} % converts package date to DTM format: \DTMusedate{hgbPackageDate}
+\DTMsavenoparsedate{hgbToday}{\the\year}{\the\month}{\the\day}{-1} % today's date in DTM format: \DTMusedate{hgbToday}
+
+\newcounter{hgbAgeLimit}\setcounter{hgbAgeLimit}{365} % warn if package is older than 1 year
+\newcount\hgbAge
+\DTMsaveddatediff{hgbToday}{hgbPackageDate}{\hgbAge}
+
+\newcommand{\hgbWarnOldPackage}[1]{\PackageWarning{hagenberg-thesis}{%
+^^J****************************************************************
+^^JNOTE: 'hagenberg-thesis' is #1 days old - pls. check for updates
+^^Jat https://github.com/Digital-Media/HagenbergThesis
+^^J****************************************************************
+^^J} % https://tex.stackexchange.com/questions/6529/newline-linebreak-in-message
+}
+
+\ifthenelse{\hgbAge>\value{hgbAgeLimit} \AND \NOT \boolean{hgb@noUpdateCheck}}%
+ {\hgbWarnOldPackage{\the\hgbAge}}{}
+
+
%% ------------------------------------------------------
-\RequirePackage{datetime}
\RequirePackage{upquote} % uses "right" quotes in the verbatim environment
\RequirePackage{eurosym} % provides \euro - conflict with marvosym on \EUR!
@@ -222,29 +262,6 @@
\ifthenelse{\equal{\bbl@main@language}{english}}%
{\floatname{program}{Program}}{}%
-
-%% Date-related commands ------------------------------------------------------
-
-\RequirePackage{datetime}
-\showdowfalse % do not show day of week
-
-% adapted from \newdate in datetime.sty
-\newcommand*{\@modifydate}[4]{%
-\@namedef{date@#1@d}{#2}%
-\@namedef{date@#1@m}{#3}%
-\@namedef{date@#1@y}{#4}%
-}
-
-\newdate{hgb@date}{\the\day}{\the\month}{\the\year}
-\newcommand{\Date}[3]{% example for use: \Date{16}{5}{2008}
- \@modifydate{hgb@date}{#1}{#2}{#3}
-}
-
-\newcommand{\hgb@GetDateDay}{\getdateday{hgb@date}}
-\newcommand{\hgb@GetDateMonth}{\getdatemonth{hgb@date}}
-\newcommand{\hgb@GetDateYear}{\getdateyear{hgb@date}}
-\newcommand{\hgb@DisplayDate}{\displaydate{hgb@date}}
-
%% Experimental items ---------------------------------------------------------
\newenvironment{NarrowList}%
diff --git a/Master/texmf-dist/tex/latex/hagenberg-thesis/hgbabbrev.sty b/Master/texmf-dist/tex/latex/hagenberg-thesis/hgbabbrev.sty
index 85284609fe0..ca8363e0e9b 100644
--- a/Master/texmf-dist/tex/latex/hagenberg-thesis/hgbabbrev.sty
+++ b/Master/texmf-dist/tex/latex/hagenberg-thesis/hgbabbrev.sty
@@ -4,7 +4,7 @@
%% GitHub: https://github.com/Digital-Media/HagenbergThesis
%% File encoding: ASCII
-\ProvidesPackage{hgbabbrev}[2019/05/11]
+\ProvidesPackage{hgbabbrev}[2020/10/29]%%AUTO
\newcommand{\latex}{La\-TeX\xspace} % no ornamental LaTeX anymore
\newcommand{\tex}{TeX\xspace} % no ornamental LaTeX anymore
diff --git a/Master/texmf-dist/tex/latex/hagenberg-thesis/hgbalgo.sty b/Master/texmf-dist/tex/latex/hagenberg-thesis/hgbalgo.sty
index fdf6e52f491..f9167a3e8a9 100644
--- a/Master/texmf-dist/tex/latex/hagenberg-thesis/hgbalgo.sty
+++ b/Master/texmf-dist/tex/latex/hagenberg-thesis/hgbalgo.sty
@@ -11,7 +11,7 @@
%% GitHub: https://github.com/Digital-Media/HagenbergThesis
%% File encoding: ASCII
-\ProvidesPackage{hgbalgo}[2019/05/11]
+\ProvidesPackage{hgbalgo}[2020/10/29]%%AUTO
\RequirePackage[]{algpseudocode} % imports algpseudocode + algorithmicx (use 'noend' to turn off 'end')
\RequirePackage{calc} % for numeric calculations
diff --git a/Master/texmf-dist/tex/latex/hagenberg-thesis/hgbarticle.cls b/Master/texmf-dist/tex/latex/hagenberg-thesis/hgbarticle.cls
index 00797a09d81..9ca159d9716 100644
--- a/Master/texmf-dist/tex/latex/hagenberg-thesis/hgbarticle.cls
+++ b/Master/texmf-dist/tex/latex/hagenberg-thesis/hgbarticle.cls
@@ -8,7 +8,7 @@
%% Package Information --------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{hgbarticle}[2019/05/11]
+\ProvidesClass{hgbarticle}[2020/10/29]%%AUTO
\RequirePackage{xifthen}
@@ -20,11 +20,13 @@
%% Handling class options --------------------------------------------------------------
\DeclareOption{twocolumn}{\PassOptionsToClass{\CurrentOption}{article}}
-\DeclareOption{english}{\PassOptionsToPackage{\CurrentOption}{hgb}}
-\DeclareOption{german}{\PassOptionsToPackage{\CurrentOption}{hgb}}
-\DeclareOption{smartquotes}{\PassOptionsToPackage{\CurrentOption}{hgb}}
-\DeclareOption*{\ClassWarning{hgbarticle}{Unknown document option '\CurrentOption'.}}
-\ProcessOptions
+%\DeclareOption{english}{\PassOptionsToPackage{\CurrentOption}{hgb}}
+%\DeclareOption{german}{\PassOptionsToPackage{\CurrentOption}{hgb}}
+%\DeclareOption{smartquotes}{\PassOptionsToPackage{\CurrentOption}{hgb}}
+%\DeclareOption*{\ClassWarning{hgbreport}{Unknown document option '\CurrentOption'.}}
+% pass all other options to hgb.sty
+\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{hgb}}
+\ProcessOptions*
%% Paper options and style file -----------------------------------------------
diff --git a/Master/texmf-dist/tex/latex/hagenberg-thesis/hgbbib.sty b/Master/texmf-dist/tex/latex/hagenberg-thesis/hgbbib.sty
index 2cb82d39613..6ba24fc09d3 100644
--- a/Master/texmf-dist/tex/latex/hagenberg-thesis/hgbbib.sty
+++ b/Master/texmf-dist/tex/latex/hagenberg-thesis/hgbbib.sty
@@ -5,7 +5,7 @@
%% GitHub: https://github.com/Digital-Media/HagenbergThesis
%% File encoding: ASCII
-\ProvidesPackage{hgbbib}[2019/05/11]
+\ProvidesPackage{hgbbib}[2020/10/29]%%AUTO
\usepackage{csquotes} % recommended for biblatex
@@ -23,21 +23,21 @@
%% titles of reference section + 3 categories of references:
\newcommand{\@bibtitle}{Quellenverzeichnis}
\newcommand{\@bibtitleLiteratur}{Literatur}
-\newcommand{\@bibtitleAvmedia}{Audiovisuelle Medien}
+\newcommand{\@bibtitleMedia}{Medien}
\newcommand{\@bibtitleOnline}{Online-Quellen}
\newcommand{\@bibtitleSoftware}{Software}
\ifthenelse{\equal{\hgb@MainLanguage}{english}}{%
\renewcommand{\@bibtitle}{References}
\renewcommand{\@bibtitleLiteratur}{Literature}
- \renewcommand{\@bibtitleAvmedia}{Audio-visual media}
+ \renewcommand{\@bibtitleMedia}{Media}
\renewcommand{\@bibtitleOnline}{Online sources}
\renewcommand{\@bibtitleSoftware}{Software}
}{}
%% categories for a split bibliography (order of declaration is important!)
\DeclareBibliographyCategory{literature}
-\DeclareBibliographyCategory{avmedia}
+\DeclareBibliographyCategory{media}
\DeclareBibliographyCategory{software}
\DeclareBibliographyCategory{online}
@@ -48,11 +48,11 @@
\addcontentsline{toc}{section}{\@bibtitleLiteratur}%
}
-\defbibheading{avmedia}{%
+\defbibheading{media}{%
\pagebreak[3]%
\phantomsection%
- \section*{\@bibtitleAvmedia}%
- \addcontentsline{toc}{section}{\@bibtitleAvmedia}%
+ \section*{\@bibtitleMedia}%
+ \addcontentsline{toc}{section}{\@bibtitleMedia}%
}
\defbibheading{online}{%
@@ -83,7 +83,7 @@
\ifentrytype{music}\OR
\ifentrytype{audio}\OR
\ifentrytype{image}}
- {\addtocategory{avmedia}{#1}}%
+ {\addtocategory{media}{#1}}%
{\ifthenelse{%
\ifentrytype{software}\OR
\ifentrytype{electronic}}
@@ -100,6 +100,43 @@
\addbibresource{#1}%
}
+% Declare a source map so the sorting in \cite commands works across the bib categories
+% The maps need to correspond to the entry types in the bib categories (which can't unfortunately used)
+\DeclareSourcemap{
+ \maps[datatype=bibtex]{
+ \map{ % All entry types except for media, software and online
+ \pernottype{movie}
+ \pernottype{video}
+ \pernottype{music}
+ \pernottype{audio}
+ \pernottype{image}
+ \pernottype{software}
+ \pernottype{electronic}
+ \pernottype{online}
+ \pernottype{www}
+ \step[fieldset=presort, fieldvalue = {A}]
+ }
+ \map{ % media entry types
+ \pertype{movie}
+ \pertype{video}
+ \pertype{music}
+ \pertype{audio}
+ \pertype{image}
+ \step[fieldset=presort, fieldvalue = {B}]
+ }
+ \map{ % software entry types
+ \pertype{software}
+ \pertype{electronic}
+ \step[fieldset=presort, fieldvalue = {C}]
+ }
+ \map{ % online entry types
+ \pertype{online}
+ \pertype{www}
+ \step[fieldset=presort, fieldvalue = {D}]
+ }
+ }
+}
+
%See http://www.jr-x.de/publikationen/latex/tipps/zeilenumbruch.html
\newenvironment{bibhyphenation}%
{\hyphenpenalty=2% (default 50)
diff --git a/Master/texmf-dist/tex/latex/hagenberg-thesis/hgbheadings.sty b/Master/texmf-dist/tex/latex/hagenberg-thesis/hgbheadings.sty
index 7c3120cd5f0..4a8dc17c5af 100644
--- a/Master/texmf-dist/tex/latex/hagenberg-thesis/hgbheadings.sty
+++ b/Master/texmf-dist/tex/latex/hagenberg-thesis/hgbheadings.sty
@@ -5,7 +5,7 @@
%% GitHub: https://github.com/Digital-Media/HagenbergThesis
%% File encoding: ASCII
-\ProvidesPackage{hgbheadings}[2019/05/11]
+\ProvidesPackage{hgbheadings}[2020/10/29]%%AUTO
\RequirePackage{fancyhdr}
\pagestyle{fancy}
diff --git a/Master/texmf-dist/tex/latex/hagenberg-thesis/hgblistings.sty b/Master/texmf-dist/tex/latex/hagenberg-thesis/hgblistings.sty
index cf4c5cd5046..6c90fb6aaef 100644
--- a/Master/texmf-dist/tex/latex/hagenberg-thesis/hgblistings.sty
+++ b/Master/texmf-dist/tex/latex/hagenberg-thesis/hgblistings.sty
@@ -4,7 +4,7 @@
%% GitHub: https://github.com/Digital-Media/HagenbergThesis
%% File encoding: UTF-8
-\ProvidesPackage{hgblistings}[2019/05/11]
+\ProvidesPackage{hgblistings}[2020/10/29]%%AUTO
\RequirePackage{ifthen}
\RequirePackage{textcomp} %% required for upquote option
@@ -132,7 +132,7 @@ keepspaces=true,%
% Language Definition and Code Environment for JavaScript
\lstdefinelanguage{JavaScript}{
alsoletter={.},
- keywords={arguments, await, break, case, catch, class, const, continue, debugger,%
+ keywords={arguments, async, await, break, case, catch, class, const, continue, debugger,%
default, delete, do, else, enum, eval, export, extends, false, finally, for,%
function, if, implements, import, in, instanceof, interface, let, new, null,%
package, private, protected, public, return, static, super, switch, this,%
@@ -360,6 +360,15 @@ keepspaces=true,%
{}
+% Code Environment for Python
+\lstnewenvironment{PythonCode}[1][]
+{\lstset{%
+ language=Python,
+ escapeinside={/+}{+/}, % makes "/+" and "+/" available for Latex escapes (labels etc.)
+ #1}}%
+{}
+
+
% Language Definition and Code Environment for Swift
\lstdefinelanguage{Swift}
{ keywords=[1]{typealias,true, false,catch,private,internal,public,func,protocol,%
diff --git a/Master/texmf-dist/tex/latex/hagenberg-thesis/hgbmath.sty b/Master/texmf-dist/tex/latex/hagenberg-thesis/hgbmath.sty
index 068eb2c553f..051e9c56d93 100644
--- a/Master/texmf-dist/tex/latex/hagenberg-thesis/hgbmath.sty
+++ b/Master/texmf-dist/tex/latex/hagenberg-thesis/hgbmath.sty
@@ -5,7 +5,7 @@
%% File encoding: ASCII
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{hgbmath}[2019/05/11]
+\ProvidesPackage{hgbmath}[2020/10/29]%%AUTO
\RequirePackage{amsmath,amsfonts,amssymb,amsbsy}
\RequirePackage{subdepth} % for positioning of sub and super scripts
diff --git a/Master/texmf-dist/tex/latex/hagenberg-thesis/hgbreport.cls b/Master/texmf-dist/tex/latex/hagenberg-thesis/hgbreport.cls
index e53d369b5a7..28ede87264d 100644
--- a/Master/texmf-dist/tex/latex/hagenberg-thesis/hgbreport.cls
+++ b/Master/texmf-dist/tex/latex/hagenberg-thesis/hgbreport.cls
@@ -8,7 +8,7 @@
%% Package Information --------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{hgbreport}[2019/05/11]
+\ProvidesClass{hgbreport}[2020/10/29]%%AUTO
\typeout{****************** hgbreport.cls (options=\@nameuse{opt@hgbreport.cls}) ***********************}
@@ -22,11 +22,13 @@
%% Handling class options --------------------------------------------------------------
\DeclareOption{notitlepage}{\PassOptionsToClass{\CurrentOption}{report}}
-\DeclareOption{english}{\PassOptionsToPackage{\CurrentOption}{hgb}}
-\DeclareOption{german}{\PassOptionsToPackage{\CurrentOption}{hgb}}
-\DeclareOption{smartquotes}{\PassOptionsToPackage{\CurrentOption}{hgb}}
-\DeclareOption*{\ClassWarning{hgbreport}{Unknown document option '\CurrentOption'.}}
-\ProcessOptions
+%\DeclareOption{english}{\PassOptionsToPackage{\CurrentOption}{hgb}}
+%\DeclareOption{german}{\PassOptionsToPackage{\CurrentOption}{hgb}}
+%\DeclareOption{smartquotes}{\PassOptionsToPackage{\CurrentOption}{hgb}}
+%\DeclareOption*{\ClassWarning{hgbreport}{Unknown document option '\CurrentOption'.}}
+% pass all other options to hgb.sty
+\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{hgb}}
+\ProcessOptions*
%% Paper options and style file -----------------------------------------------
@@ -69,4 +71,4 @@
\RequirePackage{hgblistings}
\RequirePackage{hgbbib}
-\endinput
+\endinput \ No newline at end of file
diff --git a/Master/texmf-dist/tex/latex/hagenberg-thesis/hgbthesis.cls b/Master/texmf-dist/tex/latex/hagenberg-thesis/hgbthesis.cls
index 2d99fe7e17d..bca366fba35 100644
--- a/Master/texmf-dist/tex/latex/hagenberg-thesis/hgbthesis.cls
+++ b/Master/texmf-dist/tex/latex/hagenberg-thesis/hgbthesis.cls
@@ -8,7 +8,7 @@
%% Package Information --------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{hgbthesis}[2019/05/11]
+\ProvidesClass{hgbthesis}[2020/10/29]%%AUTO
\RequirePackage{xifthen}
@@ -17,7 +17,6 @@
\else{\errmessage{hgbthesis: *** LaTeX NOT running in PDF mode ***}}
\fi
-
%% Commands for Title Pages (used in class options) ---------------------------
\newcommand{\hgb@MainLanguage}{german} % also referenced in hgb.sty
@@ -32,26 +31,17 @@
%% Handling class options --------------------------------------------------------------
-\DeclareOption{diplom}{%
- \renewcommand{\@maketitlepages}{\@diplomatitlepages}
- \ClassWarning{hgbthesis}{Deprecated: Document option '\CurrentOption' is deprecated, use 'diploma' instead.}
-}
-
-\DeclareOption{praktikum}{%
- \renewcommand{\@maketitlepages}{\@internshiptitlepages}
- \ClassWarning{hgbthesis}{Deprecated: Document option '\CurrentOption' is deprecated, use 'internship' instead.}
-}
-
\DeclareOption{master}{\renewcommand{\@maketitlepages}{\@mastertitlepages}}
-\DeclareOption{diploma}{\renewcommand{\@maketitlepages}{\@diplomatitlepages}}
\DeclareOption{bachelor}{\renewcommand{\@maketitlepages}{\@bachelortitlepages}}
+\DeclareOption{diploma}{\renewcommand{\@maketitlepages}{\@diplomatitlepages}}
\DeclareOption{internship}{\renewcommand{\@maketitlepages}{\@internshiptitlepages}}
-
-\DeclareOption{english}{\PassOptionsToPackage{\CurrentOption}{hgb}}
-\DeclareOption{german}{\PassOptionsToPackage{\CurrentOption}{hgb}}
-\DeclareOption{smartquotes}{\PassOptionsToPackage{\CurrentOption}{hgb}}
-\DeclareOption*{\ClassWarning{hgbthesis}{Unknown document option '\CurrentOption'.}}
-\ProcessOptions
+%\DeclareOption{english}{\PassOptionsToPackage{\CurrentOption}{hgb}}
+%\DeclareOption{german}{\PassOptionsToPackage{\CurrentOption}{hgb}}
+%\DeclareOption{smartquotes}{\PassOptionsToPackage{\CurrentOption}{hgb}}
+%\DeclareOption*{\ClassWarning{hgbthesis}{Unknown document option '\CurrentOption'.}}
+% pass all other options to hgb.sty
+\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{hgb}}
+\ProcessOptions*
%% Paper Options and Style File -----------------------------------------------
@@ -65,58 +55,36 @@
% General Commands
-\newcommand{\@programname}{\@MissingArg{Degree program not specified!}}
-\newcommand{\studiengang}[1]{%
- \renewcommand{\@programname}{#1}
- \ClassWarning{hgbthesis}{Deprecated: '\string\studiengang' is deprecated, use '\string\programname' instead.}
+\newcommand{\@programtype}{\@MissingArg{Type of degree program not specified!}}
+\newcommand{\programtype}[1]{%
+ \ifthenelse{\isempty{#1}}{}{\renewcommand{\@programtype}{#1}}
}
+
+\newcommand{\@programname}{\@MissingArg{Name of degree program not specified!}}
\newcommand{\programname}[1]{%
\ifthenelse{\isempty{#1}}{}{\renewcommand{\@programname}{#1}}
}
\newcommand{\@placeofstudy}{\@MissingArg{Place of study not specified!}}
-\newcommand{\studienort}[1]{%
- \renewcommand{\@placeofstudy}{#1}
- \ClassWarning{hgbthesis}{Deprecated: '\string\studienort' is deprecated, use '\string\placeofstudy' instead.}
-}
\newcommand{\placeofstudy}[1]{%
\ifthenelse{\isempty{#1}}{}{\renewcommand{\@placeofstudy}{#1}}
}
-\newcommand{\@advisor}{\@MissingArg{Advisor not specified!}}
-\newcommand{\betreuer}[1]{%
- \renewcommand{\@advisor}{#1}
- \ClassWarning{hgbthesis}{Deprecated: '\string\betreuer' is deprecated, use '\string\advisor' instead.}
-}
-\newcommand{\betreuerin}[1]{%
- \renewcommand{\@advisor}{#1}
- \ClassWarning{hgbthesis}{Deprecated: '\string\betreuerin' is deprecated, use '\string\advisor' instead.}
-}
+\newcommand{\@advisor}{} % empty by default
\newcommand{\advisor}[1]{%
- \ifthenelse{\isempty{#1}}{}{\renewcommand{\@advisor}{#1}}
+ \renewcommand{\@advisor}{#1}
}
-\newcommand{\@thesisnumber}{\@MissingArg{Thesis number not specified!}}
-\newcommand{\nummer}[1]{%
- \renewcommand{\@thesisnumber}{#1}
- \ClassWarning{hgbthesis}{Deprecated: '\string\nummer' is deprecated, use '\string\thesisnumber' instead.}
-}
\newcommand{\thesisnumber}[1]{%
- \ifthenelse{\isempty{#1}}{}{\renewcommand{\@thesisnumber}{#1}}
+ \ClassWarning{hgbthesis}{command '\protect\thesisnumber' is not supported any longer.}
}
-\newcommand{\@coursetitle}{\@MissingArg{Course not specified!}}
-\newcommand{\gegenstand}[1]{%
- \renewcommand{\@coursetitle}{#1}
- \ClassWarning{hgbthesis}{Deprecated: '\string\gegenstand' is deprecated, use '\string\coursetitle' instead.}
-}
\newcommand{\coursetitle}[1]{%
- \ifthenelse{\isempty{#1}}{}{\renewcommand{\@coursetitle}{#1}}
+ \ClassWarning{hgbthesis}{command '\protect\coursetitle' is not supported any longer.}
}
-\newcommand{\@semester}{\@MissingArg{Semester not specified!}}
\newcommand{\semester}[1]{%
- \ifthenelse{\isempty{#1}}{}{\renewcommand{\@semester}{#1}}
+ \ClassWarning{hgbthesis}{command '\protect\semester' is not supported any longer.}
}
\newcommand{\@logofile}[0]{}
@@ -140,68 +108,38 @@
\setcounter{@monthofsubmission}{\the\month}
\setcounter{@yearofsubmission}{\the\year}
-\newcommand{\abgabedatum}[3]{% %\abgabedatum{yyyy}{mm}{dd}
- \setcounter{@yearofsubmission}{#1}
- \setcounter{@monthofsubmission}{#2}
- \setcounter{@dayofsubmission}{#3}
- \ClassWarning{hgbthesis}{Deprecated: '\string\abgabedatum' is deprecated, use '\string\dateofsubmission{yyyy}{mm}{dd}' instead.}
-}
\newcommand{\dateofsubmission}[3]{% %\dateofsubmission{yyyy}{mm}{dd}
\setcounter{@yearofsubmission}{#1}
\setcounter{@monthofsubmission}{#2}
\setcounter{@dayofsubmission}{#3}
}
-\newcommand{\abgabemonat}[1]{%
- \ClassWarning{hgbthesis}{Deprecated: '\string\abgabemonat' is deprecated, use '\string\dateofsubmission{yyyy}{mm}{dd}' instead.}
-}
-
-\newcommand{\abgabejahr}[1]{%
- \ClassWarning{hgbthesis}{Deprecated: '\string\abgabejahr' is deprecated, use '\string\dateofsubmission{yyyy}{mm}{dd}' instead.}
-}
-
% Internship Report Commands
\newcommand{\@companyName}{\@MissingArg{Company not specified!}}
-\newcommand{\firma}[1]{%
- \renewcommand{\@companyName}{#1}
- \ClassWarning{hgbthesis}{Deprecated: '\string\firma' is deprecated, use '\string\companyName' instead.}
-}
\newcommand{\companyName}[1]{%
\ifthenelse{\isempty{#1}}{}{\renewcommand{\@companyName}{#1}}
}
\newcommand{\@companyUrl}{\@MissingArg{Company URL not specified!}}
-\newcommand{\firmenUrl}[1]{%
- \renewcommand{\@companyUrl}{#1}
- \ClassWarning{hgbthesis}{Deprecated: '\string\firmenUrl' is deprecated, use '\string\companyUrl' instead.}
-}
\newcommand{\companyUrl}[1]{%
\ifthenelse{\isempty{#1}}{}{\renewcommand{\@companyUrl}{#1}}
}
-\newcommand{\@companyPhone}{\@MissingArg{Company phone number not specified!}}
-\newcommand{\firmenTel}[1]{%
- \renewcommand{\@companyPhone}{#1}
- \ClassWarning{hgbthesis}{Deprecated: '\string\firmenTel' is deprecated, use '\string\companyPhone' instead.}
-}
\newcommand{\companyPhone}[1]{%
- \ifthenelse{\isempty{#1}}{}{\renewcommand{\@companyPhone}{#1}}
- \renewcommand{\@companyPhone}{#1}
+ \ClassWarning{hgbthesis}{command '\protect\companyPhone' is not supported any longer.}
}
+%% ----------------------------------------------------------------------------
+
\newcommand{\@license}{\@MissingArg{License information is missing!}}
\newcommand{\license}[1]{%
\renewcommand{\@license}{#1}
}
-
%% Commands for Creating the Title Pages --------------------------------------
-\newcommand{\titelseite}{%
- \maketitle
- \ClassWarning{hgbthesis}{Deprecated: '\string\titelseite' is deprecated, use '\string\maketitle' instead.}
-}
+
%% adds blank space after each letter (http://stackoverflow.com/a/3951837)
\newcommand{\@addspaces}[1]{%
@@ -230,15 +168,15 @@
\vskip 15mm%
{\Large\uppercase{\@addspaces{Bachelorarbeit}}}%
\vskip 4mm%
- {\large Nr.~\@thesisnumber}
- \vskip 4mm%
- {\large eingereicht am} \vskip 1mm {Fachhochschul-Bachelorstudiengang}%
+ %{\large Nr.~\@thesisnumber}
+ %\vskip 4mm%
+ {\large eingereicht am} \vskip 1mm {\@programtype}%
\vskip 4mm%
{\large\@programname}%
\vskip 4mm%
{\large in \@placeofstudy}%
\vskip 16mm%
- {\large im \monthname[\value{@monthofsubmission}] \arabic{@yearofsubmission}}%
+ {\large im \DTMgermanmonthname{\value{@monthofsubmission}} \arabic{@yearofsubmission}}%
\end{center}%
\vfil%
\end{german}
@@ -265,13 +203,14 @@
\vskip 15mm%
{\Large\uppercase{\@addspaces{Masterarbeit}}}%
\vskip 4mm%
- {\large eingereicht am} \vskip 1mm {Fachhochschul-Masterstudiengang}%
+ {\large eingereicht am} \vskip 1mm {\@programtype}%
\vskip 4mm%
{\large\@programname}%
\vskip 4mm%
{\large in \@placeofstudy}%
\vskip 16mm%
- {\large im \monthname[\value{@monthofsubmission}] \arabic{@yearofsubmission}}%
+ %{\large im \monthname[\value{@monthofsubmission}] \arabic{@yearofsubmission}}%
+ {\large im \DTMgermanmonthname{\value{@monthofsubmission}} \arabic{@yearofsubmission}}%
\end{center}%
\vfil%
\end{german}
@@ -298,13 +237,14 @@
\vskip 15mm%
{\Large\uppercase{\@addspaces{Diplomarbeit}}}%
\vskip 4mm%
- {\large eingereicht am} \vskip 1mm {Fachhochschul-Diplomstudiengang}%
+ {\large eingereicht am} \vskip 1mm {\@programtype}%
\vskip 4mm%
{\large\@programname}%
\vskip 4mm%
{\large in \@placeofstudy}%
\vskip 16mm%
- {\large im \monthname[\value{@monthofsubmission}] \arabic{@yearofsubmission}}%
+ %{\large im \monthname[\value{@monthofsubmission}] \arabic{@yearofsubmission}}%
+ {\large im \DTMgermanmonthname{\value{@monthofsubmission}} \arabic{@yearofsubmission}}%
\end{center}%
\vfil%
\end{german}
@@ -322,24 +262,25 @@
\parbox[c][5cm][c]{12cm}{%
\centering\LARGE\bfseries%
\setlength{\baselineskip}{25pt}%
- Endbericht zum Berufspraktikum%
+ \@title%
}
\vskip 15mm%
{\large\@author}%{\large\scshape\@author}%
\vskip 15mm%
\makelogo%
\vskip 15mm%
- {\Large\uppercase{\@addspaces{Bachelorarbeit}}}%
+ {\Large\uppercase{\@addspaces{Praktikumsbericht}}}%
\vskip 4mm%
- {\large Nr.~\@thesisnumber}
- \vskip 4mm%
- {\large eingereicht am} \vskip 1mm {Fachhochschul-Bachelorstudiengang}%
+ %{\large Nr.~\@thesisnumber}
+ %\vskip 4mm%
+ {\large eingereicht am} \vskip 1mm {\@programtype}%
\vskip 4mm%
{\large\@programname}%
\vskip 4mm%
{\large in \@placeofstudy}%
\vskip 16mm%
- {\large im \monthname[\value{@monthofsubmission}] \arabic{@yearofsubmission}}%
+ %{\large im \monthname[\value{@monthofsubmission}] \arabic{@yearofsubmission}}%
+ {\large im \DTMgermanmonthname{\value{@monthofsubmission}} \arabic{@yearofsubmission}}%
\end{center}%
\vfil%
\end{german}
@@ -389,7 +330,7 @@ This work is published under the conditions of the
\newcommand{\@copyrightpage}{%
\newpage
-\setcounter{page}{2}
+%\setcounter{page}{2}
\thispagestyle{plain}
\rule{0mm}{1mm}
\vspace*{75mm}
@@ -415,78 +356,35 @@ This work is published under the conditions of the
\vspace{3mm}
{\Large\sf\@companyName\\ \mbox{}}
\\
-{\sf \@companyPhone}
-\\
{\sf \@companyUrl}
\\
\vspace{45mm}
{Kontaktperson:}
\\
-\vspace{3mm}
+\vspace{3mm}
{\Large\sf\@advisor\\ \mbox{}}
\end{center}
}
-%% Advisor Pages in German and English ----------------------------------------
-
-% German
-
-\newcommand{\@advisorpageDe}{%
- \newpage
- \setcounter{page}{2}
- \thispagestyle{plain}
- \rule{0mm}{1mm}
- \begin{center}
- %
- \vspace{40mm}
- {Diese Arbeit entstand im Rahmen des Gegenstands}\\
- \vspace{6mm}
- {\Large\sf \@coursetitle\\ \mbox{}}\\
- \medskip
- im\\
- \bigskip
- {\@semester}\\
- %
- \vspace{45mm}
- {Betreuung:}\\
- \vspace{3mm}
- {\Large\sf \@advisor\\ \mbox{}}
- \end{center}
-}
-
-% English
+%% Advisor Page ----------------------------------------
-\newcommand{\@advisorpageEn}{%
+\newcommand{\@advisorpage}{%
\newpage
\setcounter{page}{2}
\thispagestyle{plain}
\rule{0mm}{1mm}
+ \vspace{90mm}
\begin{center}
- %
- \vspace{40mm}
- {This thesis was created as part of the course}\\
- \vspace{6mm}
- {\Large\sf \@coursetitle\\ \mbox{}}\\
- \medskip
- during\\
- \bigskip
- {\@semester}\\
- %
- \vspace{45mm}
- {Advisor:}\\
+ \ifthenelse{\equal{\hgb@MainLanguage}{german}}%
+ {Betreuung:}%
+ {Advisor:}%
+ \\
\vspace{3mm}
{\Large\sf \@advisor\\ \mbox{}}
\end{center}
}
-\newcommand{\@advisorpage}{%
-\ifthenelse{\equal{\hgb@MainLanguage}{german}}%
- {\@advisorpageDe}%
- {\@advisorpageEn}
-}
-
-
%% Declaration Pages in German and English ------------------------------------
% German
@@ -500,10 +398,12 @@ This work is published under the conditions of the
andere als die angegebenen Quellen nicht benutzt und die den benutzten Quellen entnommenen Stellen als
solche gekennzeichnet habe. Die Arbeit wurde bisher in gleicher oder \"ahnlicher Form keiner anderen
Pr\"ufungsbeh\"orde vorgelegt.
+ Die vorliegende, gedruckte Arbeit ist mit dem elektronisch \"ubermittelten Textdokument identisch.
\par
\vspace{10mm}
\noindent
- \@placeofstudy, am \formatdate{\value{@dayofsubmission}}{\value{@monthofsubmission}}{\value{@yearofsubmission}}
+ %\@placeofstudy, am \formatdate{\value{@dayofsubmission}}{\value{@monthofsubmission}}{\value{@yearofsubmission}}
+ \@placeofstudy, am \DTMdate{\value{@yearofsubmission}-\value{@monthofsubmission}-\value{@dayofsubmission}}
\par
\vspace{12mm}
\noindent
@@ -522,11 +422,13 @@ This work is published under the conditions of the
I hereby declare and confirm that this thesis is entirely the result of my own original work.
Where other sources of information have been used, they have been indicated as such and properly
acknowledged. I further declare that this or similar work has not been submitted for credit elsewhere.
+ This printed copy is identical to the submitted electronic version.
\par
\vspace{10mm}
\noindent
%\@placeofstudy, \the\year-\leadingzero{\month}-\leadingzero{\day} %http://de.wikibooks.org/wiki/LaTeX-W%F6rterbuch:_today
- \@placeofstudy, {\usdate\formatdate{\value{@dayofsubmission}}{\value{@monthofsubmission}}{\value{@yearofsubmission}}}
+ %\@placeofstudy, {\usdate\formatdate{\value{@dayofsubmission}}{\value{@monthofsubmission}}{\value{@yearofsubmission}}}
+ \@placeofstudy, \DTMdate{\value{@yearofsubmission}-\value{@monthofsubmission}-\value{@dayofsubmission}}
\par
\vspace{12mm}
\noindent
@@ -545,35 +447,45 @@ This work is published under the conditions of the
\renewcommand{\@mastertitlepages}{
\@mastertitle
+ \ifthenelse{\equal{\@advisor}{}}%
+ {}{\@advisorpage}%
\@copyrightpage
\@declarationpage
}
\renewcommand{\@diplomatitlepages}{
\@diplomatitle
+ \ifthenelse{\equal{\@advisor}{}}%
+ {}{\@advisorpage}%
\@copyrightpage
\@declarationpage
}
\renewcommand{\@bachelortitlepages}{
\@bachelortitle
- \@advisorpage
+ \ifthenelse{\equal{\@advisor}{}}%
+ {}{\@advisorpage}%
+ \@copyrightpage
\@declarationpage
}
\renewcommand{\@internshiptitlepages}{
\@internshiptitle
\@companypage
+ \@copyrightpage
\@declarationpage
}
-% Add PDF meta data and create title pages
+\newcommand{\@warnmultipleauthors}{\PackageWarning{hagenberg-thesis}{Multiple authors are not supported ('\@backslashchar and' is ignored)!}}%
+% Add PDF meta data and create title pages
\renewcommand{\maketitle}{ %replace standard LaTeX-command
+ \def\and{\@warnmultipleauthors}% suppress \and inside \author{..}
+ \renewcommand{\thanks}[1]{}% suppress \thanks{..} inside \author{..}
\hypersetup{
pdftitle={\@title},
pdfauthor={\@author},
- pdfsubject={\@programname, \@placeofstudy},
+ pdfsubject={\@programtype \@programname, \@placeofstudy},
pdfcreator={LaTeX using class hgbthesis [\hgbDate]},
pdfproducer={pdflatex},
pdfkeywords={},