add fancyfoot option to print section in footer

This commit is contained in:
Maximilian Keßler 2021-09-08 13:42:26 +02:00
parent feddd35451
commit 7998a17a22

View file

@ -10,6 +10,9 @@
\DeclareOption{show version}{\showversiontrue} \DeclareOption{show version}{\showversiontrue}
\DeclareOption{hideversion}{\showversionfalse} \DeclareOption{hideversion}{\showversionfalse}
\newif\iffancyfoot\fancyfootfalse
\DeclareOption{fancyfoot}{\fancyfoottrue}
\newif\ifgitversion\gitversionfalse \newif\ifgitversion\gitversionfalse
\DeclareOption{git}{\gitversiontrue} \DeclareOption{git}{\gitversiontrue}
@ -124,6 +127,8 @@
%SOFTWARE. %SOFTWARE.
%%%% These are the fancy headers %%%% These are the fancy headers
\iffancyfoot
\RequirePackage{fancyhdr} \RequirePackage{fancyhdr}
\pagestyle{fancy} \pagestyle{fancy}
@ -131,10 +136,10 @@
% RO: right odd % RO: right odd
% CE, CO: center even, center odd % CE, CO: center even, center odd
\fancyhead[RO,LE]{\@lecture} % Right odd, Left even \fancyhead[RO,LE]{} % Right odd, Left even
\fancyhead[RE,LO]{} % Right even, Left odd \fancyhead[RE,LO]{} % Right even, Left odd
\fancyfoot[RO,LE]{\thepage} % Right odd, Left even \fancyfoot[RO,LE]{} % Right odd, Left even
\fancyfoot[RE,LO]{} % Right even, Left odd \fancyfoot[RE,LO]{} % Right even, Left odd
\fancyfoot[C]{\leftmark} % Center \fancyfoot[C]{\leftmark} % Center
@ -147,6 +152,7 @@
\fancyhead[RO,LE]{} \fancyhead[RO,LE]{}
\renewcommand{\headrulewidth}{0pt} \renewcommand{\headrulewidth}{0pt}
} }
\fi
% Fix some stuff % Fix some stuff
% %http://tex.stackexchange.com/questions/76273/multiple-pdfs-with-page-group-included-in-a-single-page-warning % %http://tex.stackexchange.com/questions/76273/multiple-pdfs-with-page-group-included-in-a-single-page-warning