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

load the caption package to fix #6

parent 509e25ae
No related branches found
Tags v2.1
No related merge requests found
......@@ -6,6 +6,10 @@ All notable changes to this project will be documented in this file.
### 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
......
......@@ -115,6 +115,10 @@
\PassOptionsToPackage{hidelinks}{hyperref}
\RequirePackage{hyperref}
%
% put anchors at the beginning of floats
\PassOptionsToPackage{hypcap=true}{caption}
\RequirePackage{caption}
%
% generat bookmarkes
\RequirePackage{bookmark}
%
......@@ -184,7 +188,7 @@
% center all floats
\g@addto@macro\@floatboxreset\centering
% center all captions
\setcapwidth[c]{0.8\textwidth}
\setcapwidth{0.8\textwidth}
\fi
% abbreviations for names:
\if@german
......
......@@ -124,6 +124,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
......
......@@ -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.}
......
......@@ -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.}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment