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

Merge branch 'master' into example

parents ffa3ef03 3127265d
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,16 @@ ...@@ -2,6 +2,16 @@
All notable changes to this project will be documented in this file. 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 ## [1.3] - 2022-03-07
### Changed ### Changed
......
...@@ -124,6 +124,7 @@ used in pretty much every project anyway. ...@@ -124,6 +124,7 @@ used in pretty much every project anyway.
- `pgffor` allows for the use of for-loops (internal) - `pgffor` allows for the use of for-loops (internal)
- `graphicx` for importing images - `graphicx` for importing images
- `hyperref` for references and links - `hyperref` for references and links
- `caption` to customise captions and make references point to the begining of the floats
- `bookmark` for bookmarking - `bookmark` for bookmarking
- `amsmath` for a lot of general purpose maths features - `amsmath` for a lot of general purpose maths features
- `csquotes` makes quotations easier - `csquotes` makes quotations easier
......
...@@ -20,10 +20,10 @@ ...@@ -20,10 +20,10 @@
%% and version 1.3 or later is part of all distributions of LaTeX version %% and version 1.3 or later is part of all distributions of LaTeX version
%% 2021/01/01 or later. %% 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} \NeedsTeXFormat{LaTeX2e}
\newcommand{\myClassName}{HsH-article} \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 %% commands for HsH-logo
\newcommand{\HsHlogoPath}{HSH-Logo.pdf} \newcommand{\HsHlogoPath}{HSH-Logo.pdf}
...@@ -87,6 +87,8 @@ ...@@ -87,6 +87,8 @@
\RequirePackage{scrhack} \RequirePackage{scrhack}
\PassOptionsToPackage{hidelinks}{hyperref} \PassOptionsToPackage{hidelinks}{hyperref}
\RequirePackage{hyperref} \RequirePackage{hyperref}
\PassOptionsToPackage{hypcap=true}{caption}
\RequirePackage{caption}
\RequirePackage{bookmark} \RequirePackage{bookmark}
\PassOptionsToPackage{babel}{csquotes} \PassOptionsToPackage{babel}{csquotes}
\if@german\PassOptionsToPackage{german=quotes}{csquotes}\fi \if@german\PassOptionsToPackage{german=quotes}{csquotes}\fi
...@@ -129,7 +131,7 @@ ...@@ -129,7 +131,7 @@
\renewcommand{\fps@table}{h!t} \renewcommand{\fps@table}{h!t}
\ifx\KOMAScriptVersion\undefined\else \ifx\KOMAScriptVersion\undefined\else
\g@addto@macro\@floatboxreset\centering \g@addto@macro\@floatboxreset\centering
\setcapwidth[c]{0.8\textwidth} \setcapwidth{0.8\textwidth}
\fi \fi
\if@german \if@german
\renewcaptionname{ngerman}{\figurename}{Abb.} \renewcaptionname{ngerman}{\figurename}{Abb.}
......
...@@ -20,10 +20,10 @@ ...@@ -20,10 +20,10 @@
%% and version 1.3 or later is part of all distributions of LaTeX version %% and version 1.3 or later is part of all distributions of LaTeX version
%% 2021/01/01 or later. %% 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} \NeedsTeXFormat{LaTeX2e}
\newcommand{\myClassName}{HsH-report} \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 %% commands for HsH-logo
\newcommand{\HsHlogoPath}{HSH-Logo.pdf} \newcommand{\HsHlogoPath}{HSH-Logo.pdf}
...@@ -87,6 +87,8 @@ ...@@ -87,6 +87,8 @@
\RequirePackage{scrhack} \RequirePackage{scrhack}
\PassOptionsToPackage{hidelinks}{hyperref} \PassOptionsToPackage{hidelinks}{hyperref}
\RequirePackage{hyperref} \RequirePackage{hyperref}
\PassOptionsToPackage{hypcap=true}{caption}
\RequirePackage{caption}
\RequirePackage{bookmark} \RequirePackage{bookmark}
\PassOptionsToPackage{babel}{csquotes} \PassOptionsToPackage{babel}{csquotes}
\if@german\PassOptionsToPackage{german=quotes}{csquotes}\fi \if@german\PassOptionsToPackage{german=quotes}{csquotes}\fi
...@@ -130,7 +132,7 @@ ...@@ -130,7 +132,7 @@
\renewcommand{\fps@table}{h!t} \renewcommand{\fps@table}{h!t}
\ifx\KOMAScriptVersion\undefined\else \ifx\KOMAScriptVersion\undefined\else
\g@addto@macro\@floatboxreset\centering \g@addto@macro\@floatboxreset\centering
\setcapwidth[c]{0.8\textwidth} \setcapwidth{0.8\textwidth}
\fi \fi
\if@german \if@german
\renewcaptionname{ngerman}{\figurename}{Abb.} \renewcaptionname{ngerman}{\figurename}{Abb.}
...@@ -152,6 +154,20 @@ ...@@ -152,6 +154,20 @@
\raggedbottom \raggedbottom
\renewcommand{\layercontentsmeasure}{\@empty} \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 %% custom commands
\newcommand{\uproman}[1]{\uppercase\expandafter{\romannumeral#1}} \newcommand{\uproman}[1]{\uppercase\expandafter{\romannumeral#1}}
\newcommand{\lowroman}[1]{\romannumeral#1\relax} \newcommand{\lowroman}[1]{\romannumeral#1\relax}
......
...@@ -20,10 +20,10 @@ ...@@ -20,10 +20,10 @@
%% and version 1.3 or later is part of all distributions of LaTeX version %% and version 1.3 or later is part of all distributions of LaTeX version
%% 2021/01/01 or later. %% 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} \NeedsTeXFormat{LaTeX2e}
\newcommand{\myClassName}{HsH-standalone} \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 %% commands for HsH-logo
\newcommand{\HsHlogoPath}{HSH-Logo.pdf} \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