TeX - LaTeX Asked on September 22, 2020
I have the following layout using fancyhdr
to create some headers with the current chapter mark. However, the glossaries
package changes the page layout, i.e., printing the glossaries.
The chapter abstract should have the abstract in the header but hasnt..
documentclass[12pt,twoside,a4paper]{book}
usepackage[utf8]{inputenc}
usepackage[english]{babel}
usepackage{amsmath}
usepackage{amsfonts}
usepackage{amssymb}
usepackage{csquotes}
%% use 1.5 spacing
usepackage{setspace}
setstretch{1.6}
%%%%%%%%%%%%%%%%%%
%% Outer layout
usepackage[a4paper,
width=160mm,
bindingoffset=0.0cm, % Binding offset
headheight = 15mm,
top=2.5cm, % Top margin
bottom=4.8cm
]{geometry}
raggedbottom
usepackage{fancyhdr}
pagestyle{fancy}
% redefining chapter numbers
makeatletter
def@makechapterhead#1{%
vspace*{20p@}%
{parindent z@ raggedright normalfont
ifnum c@secnumdepth >m@ne
if@mainmatter
%hugebfseries @chapappspace thechapter
Hugebfseries thechapter.space%
%parnobreak
%vskip 20p@
fi
fi
interlinepenalty@M
Huge bfseries #1parnobreak
vskip 40p@
}}
makeatother
% in the book class, the first page of a chapter uses the plain style. Hence, redefining the plain style with fancyhdr
fancypagestyle{plain}{%
fancyhead{}
fancyhead[LO]{leftmark}
fancyhead[RE]{rightmark}
renewcommand{headrulewidth}{0.4pt}
fancyfoot{}
fancyfoot[RO,LE]{thepage}}
fancyhead{}
fancyhead[LO]{leftmark}
fancyhead[RE]{rightmark}
renewcommand{headrulewidth}{0.4pt}
renewcommand{chaptermark}[1]{markboth{MakeUppercase{#1}}{}} %makes Chapter 1 dissapear in header
fancyfoot{}
fancyfoot[RO,LE]{thepage}
usepackage{graphicx}
graphicspath{{figures/}}
%% citation and bibliography
usepackage[backend=biber,style=apa]{biblatex}
addbibresource{references.bib}
DeclareDelimFormat*{finalnamedelim}{addspacebibstring{and}space}
DeclareDelimFormat*{finalnamedelim:apa:family-given}{addspacebibstring{and}space}
%%%%%%%%%%%%%%
usepackage[nopostdot,nogroupskip,style=super,nonumberlist,toc,automake,toc]{glossaries} %Load glossaries package
makeglossaries
%Here we define a set of example acronyms
newglossaryentry{SEC}{name={SEC},description={Security Exchange Comission}}
newglossaryentry{Bbb}{name={BBB},description={Second abbreviation}}
newglossaryentry{Ccc}{name={CCC},description={Third abbreviation}}
%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%
begin{document}
input{chapters/titlepage}
pagenumbering{Roman}
%newpagenullthispagestyle{empty}
tableofcontents
listoffigures
listoftables
printglossary[title={List of Abbreviations}] %Generate List of Abbreviations
addcontentsline{toc}{chapter}{Abstract}
chapter*{Abstract}
input{chapters/Abstract}
cleardoublepage
addcontentsline{toc}{chapter}{Deutsche Zusammenfassung}
chapter*{Deutsche Zusammenfassung}
cleardoublepage
cleardoublepage
pagenumbering{arabic}
chapter{Chapter One}
input{chapters/Chapter_one}
printbibliography
end{document}
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP