diff --git a/ctufit-thesis.cls b/ctufit-thesis.cls index 38b3be086ccc906ba6e141c03623791954e4da3d..a802a7fecb8a187c723b0e80afd02cab92bd33ed 100644 --- a/ctufit-thesis.cls +++ b/ctufit-thesis.cls @@ -315,8 +315,13 @@ \renewcommand{\sectionmark}[1]{\markright{#1}} \pagestyle{fancy} \fancyhf{} -\fancyhead[LE]{\leavevmode\smash{\llap{\color{headgray} \bfseries \thepage \hspace*{4em}}}} -\fancyhead[RE]{\color{headgray}\bfseries\nouppercase{\leftmark}} +\if@twoside + \fancyhead[LE]{\leavevmode\smash{\llap{\color{headgray} \bfseries \thepage \hspace*{4em}}}} + \fancyhead[RE]{\color{headgray}\bfseries\nouppercase{\leftmark}} +\else + \fancyhead[L]{\leavevmode\smash{\llap{\color{headgray} \bfseries \thepage \hspace*{4em}}}} + \fancyhead[R]{\color{headgray}\bfseries\nouppercase{\leftmark}} +\fi \fancyhead[RO]{\leavevmode\smash{\rlap{\hspace*{4em}\color{headgray}\bfseries\thepage}}} \fancyhead[LO]{\color{headgray}\bfseries\nouppercase{\rightmark}} \renewcommand{\headrulewidth}{0pt} diff --git a/ctufit-thesis.tex b/ctufit-thesis.tex index 7f39045ad154dbda64ae812492b5fcfde4752ff8..b6677668a9f1fecc78796d408df252c6bc403f3e 100644 --- a/ctufit-thesis.tex +++ b/ctufit-thesis.tex @@ -94,11 +94,11 @@ %%%%%%%%%%%%%%%%%%%%%% \usepackage{dirtree} \usepackage{lipsum,tikz} -\usepackage{csquotes} \usepackage[style=iso-numeric]{biblatex} \addbibresource{text/bib-database.bib} \usepackage{listings} % typesetting of sources %\usepackage[newfloat]{minted}\captionsetup[listing]{position=top} % typesetting of sources +\usepackage{csquotes} %theorems, definitions, etc. \theoremstyle{plain}