Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LaTeX Template HsH
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Wille
LaTeX Template HsH
Commits
d163c37a
Commit
d163c37a
authored
4 years ago
by
Jan Wille
Browse files
Options
Downloads
Patches
Plain Diff
updated article class
parent
4710167c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/HsH-article.cls
+23
-36
23 additions, 36 deletions
src/HsH-article.cls
with
23 additions
and
36 deletions
src/HsH-article.cls
+
23
−
36
View file @
d163c37a
\typeout
{
Adapted from KOMA script for use in Hochschule Hannover <2022-0
1-22
> Jan Wille
}
\typeout
{
Adapted from KOMA script for use in Hochschule Hannover <2022-0
3-08
> Jan Wille
}
\NeedsTeXFormat
{
LaTeX2e
}
\NeedsTeXFormat
{
LaTeX2e
}
\newcommand
{
\myClassName
}{
HsH-article
}
\newcommand
{
\myClassName
}{
HsH-article
}
\ProvidesClass
{
\myClassName
}
[2021/01/22 HsH Article based on KOMA]
\ProvidesClass
{
\myClassName
}
[2021-03-08 HsH Report based on KOMA]
\LoadClass
[bibliography=totoc,listof=totoc]
{
scrartcl
}
\newcommand
{
\HsHlogoPath
}{
HSH-Logo.pdf
}
\newcommand
{
\HsHlogoPath
}{
HSH-Logo.pdf
}
\newcommand
{
\HsHlogoPage
}{
1
}
\newcommand
{
\HsHlogoPage
}{
1
}
\newcommand
{
\includeHsHlogohere
}{
\includegraphics
[width=5cm,page=\HsHlogoPage]
{
\HsHlogoPath
}}
\newif\if
@german
%
\newif\if
@german
%
\DeclareOption
{
german
}{
%
\DeclareOption
{
german
}{
%
\PassOptionsToPackage
{
ngerman
}{
babel
}
\PassOptionsToPackage
{
ngerman
}{
babel
}
\renewcaptionname
{
ngerman
}{
\figurename
}{
Abb.
}
%Figure
\renewcaptionname
{
ngerman
}{
\tablename
}{
Tab.
}
%Table
\@
germantrue
\@
germantrue
}
}
\DeclareOption
{
ngerman
}{
%
\DeclareOption
{
ngerman
}{
%
\PassOptionsToPackage
{
\CurrentOption
}{
babel
}
\PassOptionsToPackage
{
\CurrentOption
}{
babel
}
\renewcaptionname
{
ngerman
}{
\figurename
}{
Abb.
}
%Figure
\renewcaptionname
{
ngerman
}{
\tablename
}{
Tab.
}
%Table
\@
germantrue
\@
germantrue
}
}
\DeclareOption
{
english
}{
%
\DeclareOption
{
english
}{
%
\PassOptionsToPackage
{
\CurrentOption
}{
babel
}
\PassOptionsToPackage
{
\CurrentOption
}{
babel
}
\renewcaptionname
{
english
}{
\figurename
}{
Fig.
}
%Figure
\renewcaptionname
{
english
}{
\tablename
}{
Tab.
}
%Table
}
}
\DeclareOption
{
f1
}{
%
\DeclareOption
{
f1
}{
%
\renewcommand
{
\HsHlogoPage
}{
2
}
\renewcommand
{
\HsHlogoPage
}{
2
}
...
@@ -42,11 +34,15 @@
...
@@ -42,11 +34,15 @@
\DeclareOption
{
f5
}{
%
\DeclareOption
{
f5
}{
%
\renewcommand
{
\HsHlogoPage
}{
6
}
\renewcommand
{
\HsHlogoPage
}{
6
}
}
}
\DeclareOption*
{
\PassOptionsToClass
{
\CurrentOption
}{
scr
reprt
}}
\DeclareOption*
{
\PassOptionsToClass
{
\CurrentOption
}{
scr
artcl
}}
\@
ifclasswith
{
\myClassName
}{
english
}{}{
\@
ifclasswith
{
\myClassName
}{
ngerman
}{}{
\ExecuteOptions
{
ngerman
}}}
\@
ifclasswith
{
\myClassName
}{
english
}{}{
\@
ifclasswith
{
\myClassName
}{
ngerman
}{}{
\ExecuteOptions
{
ngerman
}}}
\ProcessOptions\relax
\ProcessOptions\relax
% Load KOMA class
\LoadClass
{
scrartcl
}
\KOMAoption
{
toc
}{
bibliography,listof
}
% standart options for packages
% standart options for packages
\PassOptionsToPackage
{
utf8
}{
inputenc
}
\PassOptionsToPackage
{
utf8
}{
inputenc
}
\PassOptionsToPackage
{
T1
}{
fontenc
}
\PassOptionsToPackage
{
T1
}{
fontenc
}
...
@@ -111,9 +107,11 @@
...
@@ -111,9 +107,11 @@
\renewcommand
{
\fps
@figure
}{
h!t
}
% positioning of figures
\renewcommand
{
\fps
@figure
}{
h!t
}
% positioning of figures
\renewcommand
{
\fps
@table
}{
h!t
}
% Positonierung of tables
\renewcommand
{
\fps
@table
}{
h!t
}
% Positonierung of tables
\renewcommand
{
\layercontentsmeasure
}{
\empty
}
% rulers when using draft disabled
\renewcommand
{
\layercontentsmeasure
}{
\empty
}
% rulers when using draft disabled
\renewcommand
{
\familydefault
}{
\sfdefault
}
% Sans-Serif Font as standard
\MakeOuterQuote
{
"
}
% easy quotationmarks
\MakeOuterQuote
{
"
}
% easy quotationmarks
% custom commands
% custom commands
\newcommand
{
\includeHsHlogohere
}{
\includegraphics
[width=5cm,page=\HsHlogoPage]
{
\HsHlogoPath
}}
\providecommand
{
\abs
}
[1]
{
\ensuremath
{
\left\vert
#1
\right\vert
}}
% Makro for vertical lines around absolute values
\providecommand
{
\abs
}
[1]
{
\ensuremath
{
\left\vert
#1
\right\vert
}}
% Makro for vertical lines around absolute values
\newcommand\declarationAuthorship
{
\newcommand\declarationAuthorship
{
\thispagestyle
{
plain
}
\thispagestyle
{
plain
}
...
@@ -139,7 +137,7 @@
...
@@ -139,7 +137,7 @@
\vspace
{
1cm
}
\normalsize
\vspace
{
1cm
}
\normalsize
Hiermit bestätige
\plutalendung\space\pronomen
, dass die folgende Arbeit eigenständig von
\genitiv\space
allein erstellt und unter
Hiermit bestätige
\plutalendung\space\pronomen
, dass die folgende Arbeit eigenständig von
\genitiv\space
allein erstellt und unter
Berücksichtigung der zur Verfügung gestellten Aufgabenstellung sowie dem Arbeitsmaterial unter Angabe aller verwendeten Quellen erarbeitet
Berücksichtigung der zur Verfügung gestellten Aufgabenstellung sowie dem Arbeitsmaterial unter Angabe aller verwendeten Quellen erarbeitet
wurde. Die Regelungen und Konsequenzen eines Plagiats, inklusi
e
ve disziplinarischer Maßnahmen, sind
\genitiv\space
bewusst. Insbesondere wurden
wurde. Die Regelungen und Konsequenzen eines Plagiats, inklusive disziplinarischer Maßnahmen, sind
\genitiv\space
bewusst. Insbesondere wurden
alle Zitate und gedanklichen Übernahmen als solche kenntlich gemacht.
alle Zitate und gedanklichen Übernahmen als solche kenntlich gemacht.
}
\else
{
}
\else
{
\newcommand
{
\pronomen
}{
I
}
\newcommand
{
\pronomen
}{
I
}
...
@@ -262,7 +260,7 @@
...
@@ -262,7 +260,7 @@
\usekomafont
{
titlehead
}{
\@
titlehead
}
%
\usekomafont
{
titlehead
}{
\@
titlehead
}
%
\fi
\fi
\hfill
\hfill
\includeHsHlogohere
\raisebox
{
0pt
}
[
\ht\strutbox
][
\dp\strutbox
]
{
\includeHsHlogohere
}
\end{minipage}
\end{minipage}
\raisebox
{
10pt
}{
\rule
{
\textwidth
}{
0.5pt
}}
\raisebox
{
10pt
}{
\rule
{
\textwidth
}{
0.5pt
}}
% end Customised: --------------------------------------------------------
% end Customised: --------------------------------------------------------
...
@@ -275,19 +273,14 @@
...
@@ -275,19 +273,14 @@
{
\usekomafont
{
title
}{
\huge
\@
title
\par
}}
%
{
\usekomafont
{
title
}{
\huge
\@
title
\par
}}
%
\vskip
1em
\vskip
1em
{
\ifx\@
subtitle
\@
empty
\else\usekomafont
{
subtitle
}{
\@
subtitle
\par
}
\fi
}
%
{
\ifx\@
subtitle
\@
empty
\else\usekomafont
{
subtitle
}{
\@
subtitle
\par
}
\fi
}
%
\vskip
2em
% Customised: -----------------------------------------------------------
{
%
\vskip
4em
\usekomafont
{
author
}{
%
{
\if\@
author
\@
empty
\else\usekomafont
{
author
}{
\parbox
{
\dimexpr\linewidth
}{
\centering\@
author
}}
\fi
}
%
\lineskip
0.75em
% end Customised: --------------------------------------------------------
\begin{tabular}
[t]
{
c
}
\parbox
{
\linewidth
}{
\centering\@
author
}
\end{tabular}
\par
}
%
}
%
\vskip
1.5em
\vskip
1.5em
{
\usekomafont
{
date
}{
\@
date
\par
}}
%
{
\usekomafont
{
date
}{
\@
date
\par
}}
%
\vskip
\z
@
\@
plus3fill
\vskip
\z
@
\@
plus3fill
{
\usekomafont
{
publishers
}{
\@
publishers
\par
}}
%
%
{\usekomafont{publishers}{\@publishers \par}}%
\vskip
3em
\vskip
3em
\end{center}
\par
\end{center}
\par
\@
thanks
\global\let\@
thanks
\@
empty
\@
thanks
\global\let\@
thanks
\@
empty
...
@@ -448,7 +441,6 @@
...
@@ -448,7 +441,6 @@
\global\let\and\relax
\global\let\and\relax
}
%
}
%
\renewcommand*
{
\@
maketitle
}{
%
\renewcommand*
{
\@
maketitle
}{
%
\global\@
topnum=
\z
@
\global\@
topnum=
\z
@
\setparsizes
{
\z
@
}{
\z
@
}{
\z
@
\@
plus 1fil
}
\par
@updaterelative
\setparsizes
{
\z
@
}{
\z
@
}{
\z
@
\@
plus 1fil
}
\par
@updaterelative
...
@@ -464,7 +456,7 @@
...
@@ -464,7 +456,7 @@
\usekomafont
{
titlehead
}{
\@
titlehead
}
%
\usekomafont
{
titlehead
}{
\@
titlehead
}
%
\fi
\fi
\hfill
\hfill
\includeHsHlogohere
\raisebox
{
0pt
}
[
\ht\strutbox
][
\dp\strutbox
]
{
\includeHsHlogohere
}
\end{minipage}
\end{minipage}
\raisebox
{
10pt
}{
\rule
{
\textwidth
}{
0.5pt
}}
\raisebox
{
10pt
}{
\rule
{
\textwidth
}{
0.5pt
}}
% end Customised: --------------------------------------------------------
% end Customised: --------------------------------------------------------
...
@@ -478,19 +470,14 @@
...
@@ -478,19 +470,14 @@
{
\usekomafont
{
title
}{
\huge
\@
title
\par
}}
%
{
\usekomafont
{
title
}{
\huge
\@
title
\par
}}
%
\vskip
.5em
\vskip
.5em
{
\ifx\@
subtitle
\@
empty
\else\usekomafont
{
subtitle
}
\@
subtitle
\par\fi
}
%
{
\ifx\@
subtitle
\@
empty
\else\usekomafont
{
subtitle
}
\@
subtitle
\par\fi
}
%
\vskip
1em
% Customised: -----------------------------------------------------------
{
%
\vskip
4em
\usekomafont
{
author
}{
%
{
\if\@
author
\@
empty
\else\usekomafont
{
author
}{
\parbox
{
\dimexpr\linewidth
}{
\centering\@
author
}}
\fi
}
%
\lineskip
.5em
%
% end Customised: --------------------------------------------------------
\begin{tabular}
[t]
{
c
}
\@
author
\end{tabular}
\par
}
%
}
%
\vskip
1em
%
\vskip
1em
%
{
\usekomafont
{
date
}{
\@
date
\par
}}
%
{
\usekomafont
{
date
}{
\@
date
\par
}}
%
\vskip
\z
@
\@
plus 1em
\vskip
\z
@
\@
plus 1em
{
\usekomafont
{
publishers
}{
\@
publishers
\par
}}
%
%
{\usekomafont{publishers}{\@publishers \par}}%
\ifx\@
dedication
\@
empty
\else
\ifx\@
dedication
\@
empty
\else
\vskip
2em
\vskip
2em
{
\usekomafont
{
dedication
}{
\@
dedication
\par
}}
%
{
\usekomafont
{
dedication
}{
\@
dedication
\par
}}
%
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment