fix(latex): creating header and footer styles preset

This commit is contained in:
nuluh
2025-05-11 12:51:23 +07:00
parent 92a7143d90
commit 43a0f40182

View File

@@ -41,11 +41,21 @@
} }
% Header and footer % Header and footer
\pagestyle{fancy} \fancypagestyle{fancy}{%
\fancyhf{} \fancyhf{}
\fancyhead[R]{\nouppercase{\rightmark}} \fancyhead[R]{\nouppercase{\rightmark}}
\fancyhead[L]{\nouppercase{\leftmark}} \fancyhead[L]{\nouppercase{\leftmark}}
\fancyfoot[C]{\thepage} \fancyfoot[C]{\thepage}
}
\fancypagestyle{fancyplainfrontmatter}{%
\renewcommand{\headrulewidth}{0pt}
\fancyfoot[C]{\thepage}
}
\fancypagestyle{fancyplain}{%
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\fancyhead[R]{\thepage}
}
% Chapter formatting % Chapter formatting
\titleformat{\chapter}[display] \titleformat{\chapter}[display]