Change footer/header
This commit is contained in:
parent
6c954915e5
commit
2d78b806e3
@ -18,6 +18,7 @@
|
|||||||
% ------------------------------------------------------------------------------
|
% ------------------------------------------------------------------------------
|
||||||
{
|
{
|
||||||
\newpage
|
\newpage
|
||||||
|
\pagestyle{fancy} % Ensure fancy page style is active after title page
|
||||||
\blenderfont
|
\blenderfont
|
||||||
\vspace*{-5.5em}
|
\vspace*{-5.5em}
|
||||||
\tableofcontents
|
\tableofcontents
|
||||||
|
|||||||
@ -28,8 +28,8 @@
|
|||||||
% Set page number font style
|
% Set page number font style
|
||||||
\setkomafont{pagenumber}{\color{gray}\blenderfont\selectfont}
|
\setkomafont{pagenumber}{\color{gray}\blenderfont\selectfont}
|
||||||
|
|
||||||
% Adjust footer position - move up by 1em
|
% Adjust footer position - move up by reducing footskip
|
||||||
\addtolength{\footskip}{-1em}
|
\setlength{\footskip}{25pt} % Reduced from default to move footer up
|
||||||
|
|
||||||
% ==============================================================================
|
% ==============================================================================
|
||||||
% Header and Footer Setup
|
% Header and Footer Setup
|
||||||
@ -42,13 +42,13 @@
|
|||||||
% ------------------------------------------------------------------------------
|
% ------------------------------------------------------------------------------
|
||||||
% Left header: Chapter number and title
|
% Left header: Chapter number and title
|
||||||
% Right header: Document title
|
% Right header: Document title
|
||||||
\fancyhead[L]{%
|
\fancyhead[R]{%
|
||||||
\color{gray}\blenderfont%
|
\color{gray}\blenderfont%
|
||||||
\ifnum\value{chapter}>0%
|
\ifnum\value{chapter}>0%
|
||||||
\thechapter\quad\leftmark%
|
\thechapter\quad\leftmark%
|
||||||
\fi%
|
\fi%
|
||||||
}
|
}
|
||||||
\fancyhead[R]{\color{gray}\blenderfont\@title} % Document title on right
|
\fancyhead[L]{\color{gray}\blenderfont\@title} % Document title on right
|
||||||
|
|
||||||
% Update chapter marks to show only chapter name without "Chapter" prefix
|
% Update chapter marks to show only chapter name without "Chapter" prefix
|
||||||
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
|
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
|
||||||
@ -59,7 +59,7 @@
|
|||||||
% ------------------------------------------------------------------------------
|
% ------------------------------------------------------------------------------
|
||||||
% Footer format: Author Name | Module Name | Page X of Y
|
% Footer format: Author Name | Module Name | Page X of Y
|
||||||
% The footer is centered
|
% The footer is centered
|
||||||
\fancyfoot[C]{%
|
\fancyfoot[L]{%
|
||||||
\color{gray}\blenderfont%
|
\color{gray}\blenderfont%
|
||||||
\@author%
|
\@author%
|
||||||
\quad|\quad%
|
\quad|\quad%
|
||||||
@ -75,10 +75,10 @@
|
|||||||
\fancypagestyle{plain}{
|
\fancypagestyle{plain}{
|
||||||
\fancyhf{}
|
\fancyhf{}
|
||||||
% No header on chapter start pages
|
% No header on chapter start pages
|
||||||
\fancyhead[L]{}
|
|
||||||
\fancyhead[R]{}
|
\fancyhead[R]{}
|
||||||
|
\fancyhead[L]{}
|
||||||
% Same footer as regular pages
|
% Same footer as regular pages
|
||||||
\fancyfoot[C]{%
|
\fancyfoot[L]{%
|
||||||
\color{gray}\blenderfont%
|
\color{gray}\blenderfont%
|
||||||
\@author%
|
\@author%
|
||||||
\quad|\quad%
|
\quad|\quad%
|
||||||
@ -95,14 +95,14 @@
|
|||||||
% Explicitly define the fancy page style
|
% Explicitly define the fancy page style
|
||||||
\fancypagestyle{fancy}{
|
\fancypagestyle{fancy}{
|
||||||
\fancyhf{}
|
\fancyhf{}
|
||||||
\fancyhead[L]{%
|
\fancyhead[R]{%
|
||||||
\color{gray}\blenderfont%
|
\color{gray}\blenderfont%
|
||||||
\ifnum\value{chapter}>0%
|
\ifnum\value{chapter}>0%
|
||||||
\thechapter\quad\leftmark%
|
\thechapter\quad\leftmark%
|
||||||
\fi%
|
\fi%
|
||||||
}
|
}
|
||||||
\fancyhead[R]{\color{gray}\blenderfont\@title}
|
\fancyhead[L]{\color{gray}\blenderfont\@title}
|
||||||
\fancyfoot[C]{%
|
\fancyfoot[L]{%
|
||||||
\color{gray}\blenderfont%
|
\color{gray}\blenderfont%
|
||||||
\@author%
|
\@author%
|
||||||
\quad|\quad%
|
\quad|\quad%
|
||||||
|
|||||||
6
Main.tex
6
Main.tex
@ -44,6 +44,12 @@
|
|||||||
% Configuration in Settings/General.tex
|
% Configuration in Settings/General.tex
|
||||||
\maketitle
|
\maketitle
|
||||||
|
|
||||||
|
% ------------------------------------------------------------------------------
|
||||||
|
% Set Page Style
|
||||||
|
% ------------------------------------------------------------------------------
|
||||||
|
% Ensure fancy page style is active after title page for headers/footers
|
||||||
|
\pagestyle{fancy}
|
||||||
|
|
||||||
% ------------------------------------------------------------------------------
|
% ------------------------------------------------------------------------------
|
||||||
% Document Spacing
|
% Document Spacing
|
||||||
% ------------------------------------------------------------------------------
|
% ------------------------------------------------------------------------------
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user