diff options
author | Karl Berry <karl@freefriends.org> | 2017-10-28 22:35:47 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-10-28 22:35:47 +0000 |
commit | 7d87b9bed420925e771c90f27c7a25db352b8161 (patch) | |
tree | e4d63375390114ffc20d5fc610f3d32881fdbc1d /Master/texmf-dist/tex/latex/hagenberg-thesis/hgbarticle.cls | |
parent | 273e485888671e409de40cffd23ad2153549915d (diff) |
hagenberg-thesis (28oct17)
git-svn-id: svn://tug.org/texlive/trunk@45629 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/hagenberg-thesis/hgbarticle.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/hagenberg-thesis/hgbarticle.cls | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/hagenberg-thesis/hgbarticle.cls b/Master/texmf-dist/tex/latex/hagenberg-thesis/hgbarticle.cls new file mode 100644 index 00000000000..fc861b52c73 --- /dev/null +++ b/Master/texmf-dist/tex/latex/hagenberg-thesis/hgbarticle.cls @@ -0,0 +1,82 @@ +%% 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}[2017/10/28] + +\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 + + +%% Command for language defintion --------------------------------------------- + +\newcommand{\hgb@MainLanguage}{german} % also referenced in hgb.sty + + +%% Class options -------------------------------------------------------------- + +\DeclareOption{twocolumn}{% + \PassOptionsToClass{\CurrentOption}{article} +} + +\DeclareOption{english}{% + \renewcommand{\hgb@MainLanguage}{english} +} + +\DeclareOption{german}{% + \renewcommand{\hgb@MainLanguage}{german} +} + +\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 associated style file hgb.sty + + +% 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{hgbheadings} +\RequirePackage{hgbabbrev} +\RequirePackage{hgblistings} +\RequirePackage{hgbbib} + +\endinput |