Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
University of Southampton Thesis Template
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
UoS LaTeX Group
University of Southampton Thesis Template
Commits
c6073b1b
Commit
c6073b1b
authored
6 years ago
by
Edward Longman
Browse files
Options
Downloads
Patches
Plain Diff
ReDo headers to improve info and the chapter page numbers
parent
ff24716e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ecsdocs.dtx
+17
-5
17 additions, 5 deletions
ecsdocs.dtx
with
17 additions
and
5 deletions
ecsdocs.dtx
+
17
−
5
View file @
c6073b1b
...
...
@@ -317,10 +317,18 @@
%
% \begin{macrocode}
\usepackage{fancyhdr}
\lhead[\rm\thepage]{\fancyplain{}{\sl{\rightmark}}}
\rhead[\fancyplain{}{\sl{\leftmark}}]{\rm\thepage}
% Help from https://texblog.org/2007/11/07/headerfooter-in-latex-with-fancyhdr/#comment-4783
\fancyhead[LE]{\textrm\thepage}
\fancyhead[LO]{\fancyplain{}{\textsl{\rightmark}}}
\fancyhead[RE]{\fancyplain{}{\textsl{\leftmark}}}
\fancyhead[RO]{\textrm\thepage}
\chead{}\lfoot{}\rfoot{}\cfoot{}
\pagestyle{fancy}
\fancypagestyle{plain}{
\fancyhf{}
\fancyhead[OR]{\thepage}
\renewcommand{\headrulewidth}{0pt}
}
% \end{macrocode}
%
% \begin{macro}{\chaptermark}
...
...
@@ -330,14 +338,18 @@
% Redefine \texttt{chaptermark} and \texttt{sectionmark} to set up the correct header name and produce a
% banner on the output making the location of messages simpler.
%
% The \textbackslash btypeout command is for console logging where chapters start
%
% \textbackslash chapapp expands to "Chapter" or "Appendix"
%
% \begin{macrocode}
%<*thesis|minithesis|progress|project|report|gdp>
\renewcommand{\chaptermark}[1]{\btypeout{\thechapter\space #1}\markboth{\
@
chap
app
\ \thechapter
\ #1}{\@chapapp\ \thechapter\ #1
}}
\renewcommand{\sectionmark}[1]{}
\renewcommand{\chaptermark}[1]{\btypeout{\thechapter
.
\space #1}\markboth{\chap
tername
\ \thechapter
.\hspace{1em}#1}{
}}
\renewcommand{\sectionmark}[1]{
\markright{\thesection.\hspace{1em}#1}
}
\renewcommand{\subsectionmark}[1]{}
%</thesis|minithesis|progress|project|report|gdp>
%<*article>
\renewcommand{\sectionmark}[1]{\btypeout{\thesection\space
#1}}
\renewcommand{\sectionmark}[1]{\btypeout{\thesection\
h
space
{1em}
#1}}
\renewcommand{\subsectionmark}[1]{}
\renewcommand{\subsubsectionmark}[1]{}
%</article>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment