Skip to content

Commit

Permalink
cleveref tuning
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor committed Oct 10, 2018
1 parent a0e35be commit 34ae62d
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 4 deletions.
10 changes: 8 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## Added
### Added

- Added [stfloats](https://ctan.org/pkg/stfloats) package to enable footnotes below floats.
- Added `ngerman` as class option for German documents.

### Changed

- Added [stfloats](https://ctan.org/pkg/stfloats) package to enable footnotes below floats
- Change kind of loading of `cleveref` package.
- Strings for `cleveref` in German are set explicitly.

## [3.0.0-beta.3] - 2018-06-06

Expand Down
19 changes: 17 additions & 2 deletions config.tex
Original file line number Diff line number Diff line change
Expand Up @@ -711,10 +711,25 @@
%%%
% EN: Extensions for references inside the document (\cref{fig:sample}, ...)
% DE: cleveref für cref statt autoref, da cleveref auch bei Definitionen funktioniert
\usepackage[capitalise,nameinlink,noabbrev]{cleveref}
\ifdeutsch
\usepackage[ngerman,capitalise,nameinlink,noabbrev]{cleveref}
\crefname{table}{Tabelle}{Tabellen}
\Crefname{table}{Tabelle}{Tabellen}
\crefname{figure}{\figurename}{\figurename}
\Crefname{figure}{Abbildungen}{Abbildungen}
\crefname{equation}{Gleichung}{Gleichungen}
\Crefname{equation}{Gleichung}{Gleichungen}
\crefname{listing}{\lstlistingname}{\lstlistingname}
\Crefname{listing}{Listing}{Listings}
\crefname{section}{Abschnitt}{Abschnitte}
\Crefname{section}{Abschnitt}{Abschnitte}
\crefname{paragraph}{Abschnitt}{Abschnitte}
\Crefname{paragraph}{Abschnitt}{Abschnitte}
\crefname{subparagraph}{Abschnitt}{Abschnitte}
\Crefname{subparagraph}{Abschnitt}{Abschnitte}
\else
\usepackage[capitalise,nameinlink,noabbrev]{cleveref}
\crefname{listing}{\lstlistingname}{\lstlistingname}
\Crefname{listing}{Listing}{Listings}
\fi
%%%

Expand Down
1 change: 1 addition & 0 deletions main-german.tex
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
\let\ifenglisch\iffalse
\input{pre-documentclass}
\documentclass[
ngerman,
% fontsize=11pt is the standard
a4paper, % Standard format - only KOMAScript uses paper=a4 - https://tex.stackexchange.com/a/61044/9075
twoside, % we are optimizing for both screen and two-side printing. So the page numbers will jump, but the content is configured to stay in the middle (by using the geometry package)
Expand Down
1 change: 1 addition & 0 deletions main-paderborn-german.tex
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
\let\ifenglisch\iffalse
\input{pre-documentclass}
\documentclass[
ngerman,
% fontsize=11pt is the standard
a4paper, % Standard format - only KOMAScript uses paper=a4 - https://tex.stackexchange.com/a/61044/9075
twoside, % we are optimizing for both screen and two-side printing. So the page numbers will jump, but the content is configured to stay in the middle (by using the geometry package)
Expand Down

0 comments on commit 34ae62d

Please sign in to comment.