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