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

define front-, main- and backmatter

parent 418619ab
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
## [Current]
### Added
- defined `\fronmatter`, `\mainmatter` and `\backmatter` for HsH-report class
## [1.3] - 2022-03-07
......
......@@ -210,6 +210,23 @@
% rulers when using draft disabled
\renewcommand{\layercontentsmeasure}{\@empty}
%<*report>
% these commands are only defined for the book class, but they also make sens for the report class:
%% 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
}
%</report>
%% custom commands
% these two comand can convert decimal number into roman numerrals in etheir upper- or lowercase
\newcommand{\uproman}[1]{\uppercase\expandafter{\romannumeral#1}}
......
......@@ -152,6 +152,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}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment