summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/hagenberg-thesis/latex/hgbarticle.cls
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/hagenberg-thesis/latex/hgbarticle.cls')
-rw-r--r--macros/latex/contrib/hagenberg-thesis/latex/hgbarticle.cls76
1 files changed, 76 insertions, 0 deletions
diff --git a/macros/latex/contrib/hagenberg-thesis/latex/hgbarticle.cls b/macros/latex/contrib/hagenberg-thesis/latex/hgbarticle.cls
new file mode 100644
index 0000000000..00797a09d8
--- /dev/null
+++ b/macros/latex/contrib/hagenberg-thesis/latex/hgbarticle.cls
@@ -0,0 +1,76 @@
+%% hgbarticle.cls
+%% LaTeX class for creating lab and term reports as well as other forms of academic documentation.
+%% This file is part of the Hagenberg Thesis package for creating bachelors's and masters's theses
+%% Author: Wolfgang Hochleitner (wolfgang.hochleitner@fh-hagenberg.at)
+%% GitHub: https://github.com/Digital-Media/HagenbergThesis
+%% File encoding: ASCII
+
+%% Package Information --------------------------------------------------------
+
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesClass{hgbarticle}[2019/05/11]
+
+\RequirePackage{xifthen}
+
+\RequirePackage{ifpdf} % for checking PDF mode
+\ifpdf{}% \typeout{hgbarticle: *** LaTeX in PDF mode ***}
+\else{\errmessage{hgbarticle: *** LaTeX NOT running in PDF mode ***}}
+\fi
+
+%% 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
+
+%% Paper options and style file -----------------------------------------------
+
+\LoadClass[a4paper,11pt]{article}
+
+%Adjust margins only in single-column mode
+\if@twocolumn%
+\else%
+\RequirePackage[top=36mm,bottom=40mm,left=32mm,right=32mm]{geometry} %showframe
+\fi%
+
+\RequirePackage{hgb} % load style file hgb.sty with options registered above
+
+
+%% Set title font to SF
+\RequirePackage{titling}
+\renewcommand{\maketitlehooka}{\sffamily}
+
+%% Set abstract name to bold (single column format only)
+\if@twocolumn%
+\else%
+\RequirePackage{abstract}
+\renewcommand{\abstractnamefont}{\sffamily\small\bfseries}
+\fi%
+
+% Add PDF meta data
+
+\AtBeginDocument{%
+ \hypersetup{
+ pdftitle={\@title},
+ pdfauthor={\@author},
+ pdfsubject={},
+ pdfcreator={LaTeX using class hgbarticle [\hgbDate]},
+ pdfproducer={pdflatex},
+ pdfkeywords={}
+ }%
+}%
+
+
+%% Additional Hagenberg packages ----------------------------------------------
+
+\RequirePackage{hgbmath}
+\RequirePackage{hgbalgo}
+\RequirePackage{hgbheadings}
+\RequirePackage{hgbabbrev}
+\RequirePackage{hgblistings}
+\RequirePackage{hgbbib}
+
+\endinput