Skip to content
Snippets Groups Projects
Commit 3127265d authored by Jan Wille's avatar Jan Wille
Browse files

Merge branch 'development'

parents 18aa461a e8dfb3a2
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,16 @@
All notable changes to this project will be documented in this file.
## [1.4] - 2022-03-28
### Added
- defined `\fronmatter`, `\mainmatter` and `\backmatter` for HsH-report class
- included the caption package to fix #6
### Fixes
- references now get point to the to of floats, not to the captions position (#6)
## [1.3] - 2022-03-07
### Changed
......
......@@ -123,6 +123,7 @@ used in pretty much every project anyway.
- `pgffor` allows for the use of for-loops (internal)
- `graphicx` for importing images
- `hyperref` for references and links
- `caption` to customise captions and make references point to the begining of the floats
- `bookmark` for bookmarking
- `amsmath` for a lot of general purpose maths features
- `csquotes` makes quotations easier
......
......@@ -20,10 +20,10 @@
%% and version 1.3 or later is part of all distributions of LaTeX version
%% 2021/01/01 or later.
%%
\typeout{Adapted from KOMA script for use in Hochschule Hannover <2022-03-07> Jan Wille}
\typeout{Adapted from KOMA script for use in Hochschule Hannover <2022-03-28> Jan Wille}
\NeedsTeXFormat{LaTeX2e}
\newcommand{\myClassName}{HsH-article}
\ProvidesClass{\myClassName}[2022/03/07 v1.3 HsH-Class based on KOMA]
\ProvidesClass{\myClassName}[2022/03/28 v1.4 HsH-Class based on KOMA]
%% commands for HsH-logo
\newcommand{\HsHlogoPath}{HSH-Logo.pdf}
......@@ -87,6 +87,8 @@
\RequirePackage{scrhack}
\PassOptionsToPackage{hidelinks}{hyperref}
\RequirePackage{hyperref}
\PassOptionsToPackage{hypcap=true}{caption}
\RequirePackage{caption}
\RequirePackage{bookmark}
\PassOptionsToPackage{babel}{csquotes}
\if@german\PassOptionsToPackage{german=quotes}{csquotes}\fi
......@@ -129,7 +131,7 @@
\renewcommand{\fps@table}{h!t}
\ifx\KOMAScriptVersion\undefined\else
\g@addto@macro\@floatboxreset\centering
\setcapwidth[c]{0.8\textwidth}
\setcapwidth{0.8\textwidth}
\fi
\if@german
\renewcaptionname{ngerman}{\figurename}{Abb.}
......
......@@ -20,10 +20,10 @@
%% and version 1.3 or later is part of all distributions of LaTeX version
%% 2021/01/01 or later.
%%
\typeout{Adapted from KOMA script for use in Hochschule Hannover <2022-03-07> Jan Wille}
\typeout{Adapted from KOMA script for use in Hochschule Hannover <2022-03-28> Jan Wille}
\NeedsTeXFormat{LaTeX2e}
\newcommand{\myClassName}{HsH-report}
\ProvidesClass{\myClassName}[2022/03/07 v1.3 HsH-Class based on KOMA]
\ProvidesClass{\myClassName}[2022/03/28 v1.4 HsH-Class based on KOMA]
%% commands for HsH-logo
\newcommand{\HsHlogoPath}{HSH-Logo.pdf}
......@@ -87,6 +87,8 @@
\RequirePackage{scrhack}
\PassOptionsToPackage{hidelinks}{hyperref}
\RequirePackage{hyperref}
\PassOptionsToPackage{hypcap=true}{caption}
\RequirePackage{caption}
\RequirePackage{bookmark}
\PassOptionsToPackage{babel}{csquotes}
\if@german\PassOptionsToPackage{german=quotes}{csquotes}\fi
......@@ -130,7 +132,7 @@
\renewcommand{\fps@table}{h!t}
\ifx\KOMAScriptVersion\undefined\else
\g@addto@macro\@floatboxreset\centering
\setcapwidth[c]{0.8\textwidth}
\setcapwidth{0.8\textwidth}
\fi
\if@german
\renewcaptionname{ngerman}{\figurename}{Abb.}
......@@ -152,6 +154,20 @@
\raggedbottom
\renewcommand{\layercontentsmeasure}{\@empty}
%% define easy shorthands to switch pagenumbering
\newif\if@mainmatter\@mainmattertrue
\newcommand*\frontmatter{%
\if@twoside\cleardoubleoddpage\else\clearpage\fi
\@mainmatterfalse\pagenumbering{Roman}%
}
\newcommand*\mainmatter{%
\if@twoside\cleardoubleoddpage\else\clearpage\fi
\@mainmattertrue\pagenumbering{arabic}%
}
\newcommand*\backmatter{%
\if@openright\cleardoubleoddpage\else\clearpage\fi\@mainmatterfalse
}
%% custom commands
\newcommand{\uproman}[1]{\uppercase\expandafter{\romannumeral#1}}
\newcommand{\lowroman}[1]{\romannumeral#1\relax}
......
......@@ -20,10 +20,10 @@
%% and version 1.3 or later is part of all distributions of LaTeX version
%% 2021/01/01 or later.
%%
\typeout{Adapted from KOMA script for use in Hochschule Hannover <2022-03-07> Jan Wille}
\typeout{Adapted from KOMA script for use in Hochschule Hannover <2022-03-28> Jan Wille}
\NeedsTeXFormat{LaTeX2e}
\newcommand{\myClassName}{HsH-standalone}
\ProvidesClass{\myClassName}[2022/03/07 v1.3 HsH-Class based on KOMA]
\ProvidesClass{\myClassName}[2022/03/28 v1.4 HsH-Class based on KOMA]
%% commands for HsH-logo
\newcommand{\HsHlogoPath}{HSH-Logo.pdf}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment