Document Classes ⇒ Book Class Header
Book Class Header
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
Book Class Header
Book Class Header
Code: Select all
\fancyhead[LO,RE]{\part \partname}
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
Book Class Header
You could create a \partmark macro (using \markboth) and call it after each \part command:
Code: Select all
\newcommand\partmark[1]{\markboth{Part\ \thepart\ #1}{}}
...
\part{Title of the part}\partmark{Title of the part}
Book Class Header
Problem is the renamed Chapter
Project is the renaned Part
Code: Select all
\documentclass[openright]{book}
\usepackage{amsfonts}
\usepackage{multirow}
\usepackage{latexsym}
\usepackage{enumerate}
\usepackage{amsmath, amsthm, amssymb}
\usepackage{graphics}
\usepackage{grffile}
\usepackage{fancyhdr}
\pagestyle{fancy}
\newtheorem{thm}{Theorem}
\renewcommand*\partname{Project}
\renewcommand*\chaptername{Problem}
\renewcommand{\contentsname}{Table of Contents}
\newcommand\partmark[1]{\markboth{Part\ \thepart\ #1}{}}
\newtheorem{note}{\textsuperscript{note:}}
\makeindex
\begin{document}
\author{Michael Radaszkiewicz\\Michael Papetti\\Nil Choudhury\\Aktaru Zzaman}
\title{DIFFERENTIAL EQUATIONS - MATH 3328}
\date{\today}
\maketitle
\tableofcontents
\part[Existence and uniqueness]{Slope fields. Separation of Variables. Existence and uniqueness}\partmark{Existence and uniqueness}
\include{p1}
\part[Linearization]{The phase line. Linearization. Bifurcations. Linear Equations}\partmark{Linearization}
\include{p2}
\part[Systems of equations]{Systems of equations.}\partmark{Systems of equations}
\include{p3}
\part[Systems of equations]{Systems of equations. II}\partmark{Systems of equations}
\include{p4}
\part[Systems of equations]{Systems of equations, III. Second-order equations.}\partmark{Systems of equations}
\include{p5}
\part[Oscillations]{Forced oscillations. Beats. Resonance}\partmark{Oscillations}
\include{p6}
\part[Linearization]{Linearization and Hartman’s Theorem}\partmark{Linearization}
\include{p7}
\part[Periodic solutions]{Global analysis. Periodic solutions. Hamiltonian systems}\partmark{Periodic solutions}
\include{p8(2)}
\part[Gradient systems]{Lyapunov stability. Gradient systems}\partmark{Gradient systems}
\include{p9}
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
Book Class Header
Code: Select all
\newcommand\partmark[1]{\markboth{\partname\ \thepart\ #1}{}}
\renewcommand\chaptermark[1]{\markright{\chaptername\ \thechapter\ #1}}
\fancyhead{}
\fancyhead[LE]{\leftmark}
\fancyhead[RO]{\rightmark}