From fbf8ab59a8071368e1d013f7305e196811d6d34f Mon Sep 17 00:00:00 2001 From: Karl Stephan Stille <62591617+kss-lea@users.noreply.github.com> Date: Tue, 9 Aug 2022 13:55:20 +0200 Subject: [PATCH] Add files via upload Total pages split for either part --- proposal.sty | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/proposal.sty b/proposal.sty index 6b53f21..ce5b592 100644 --- a/proposal.sty +++ b/proposal.sty @@ -9,7 +9,8 @@ \usepackage[exponent-product = \cdot]{siunitx} \usepackage{rotating} \usepackage{helvet} -\usepackage{lastpage} +\usepackage[pagecontinue=false]{pageslts} +\pagenumbering{arabic} \usepackage{scrlayer-scrpage} \usepackage{eurosym} \usepackage{fp} @@ -83,17 +84,20 @@ \hyphenpenalty 3000 \doublehyphendemerits 50000000 + \newcommand{\total}{} + +\newcommand{\pagenumtype}{arabic} \DeclareOption{german}{ \sisetup{locale=DE} \AtBeginDocument{\selectlanguage{ngerman}} - \renewcommand{\pagemark}{Seite \thepage~von \pageref{LastPage}} + \renewcommand{\pagemark}{Seite \thepage~von \lastpageref{pagesLTS.\pagenumtype}} \renewcommand{\total}{Summe} } \DeclareOption{english}{ \sisetup{locale=US} \AtBeginDocument{\selectlanguage{english}} - \renewcommand{\pagemark}{page \thepage~of \pageref{LastPage}} + \renewcommand{\pagemark}{page \thepage~of \lastpageref{pagesLTS.\pagenumtype}} \renewcommand{\total}{Total} } \ExecuteOptions{german} @@ -102,6 +106,13 @@ \cfoot*{} \chead{} +\newcommand{\backmatter}{ + \clearpage + \pagenumbering{Roman} + \renewcommand{\pagenumtype}{Roman} +} + + \KOMAoptions{paper=a4} \KOMAoption{fontsize}{11pt} \pagestyle{scrheadings}