The following code does not work to adjust the running head:
Code: Select all
\clearpage
\phantomsection
\bibliographystyle{apacite}
\bibliography{References}
\markboth{\MakeUppercase{REFERENCES}}{\MakeUppercase{REFERENCES}}
What can I do?
Code: Select all
\clearpage
\phantomsection
\bibliographystyle{apacite}
\bibliography{References}
\markboth{\MakeUppercase{REFERENCES}}{\MakeUppercase{REFERENCES}}
NEW: TikZ book now 40% off at Amazon.com for a short time.
Code: Select all
\documentclass[11pt]{book}
\usepackage{scrpage2}
\usepackage[paperwidth=176mm,paperheight=246mm]{geometry}
\setlength{\textheight}{19.5cm}
\setlength{\footskip}{8mm}
\setlength{\parindent}{0pt}
\setlength{\textwidth}{12.5cm}
\setlength{\evensidemargin}{0cm}
\setlength{\oddsidemargin}{0cm}
\setlength{\headsep}{0.6cm}
\setlength{\headheight}{0.4cm}
\setlength{\topmargin}{-0.9cm}
\usepackage{emptypage}
% Package spacing
\usepackage{setspace}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{tikz}
\usetikzlibrary{calc,positioning,backgrounds,fit}
\renewcommand{\rmdefault}{ptm}
% Chapter style
\usepackage[Lenny]{fncychap}
\addto\captionsenglish{\renewcommand\chaptername{}}
% Bibliography
\usepackage[nosectionbib]{apacite}
\addto{\captionsenglish}{%
\renewcommand{\bibname}{References}
}
% Table of contents
\addto\captionsenglish{%
\renewcommand{\contentsname}%
{Table of Contents}%
}
% Packages / commands tables
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage[labelfont=bf, skip=0.3\baselineskip]{caption}
\usepackage[figuresright]{rotating}
\usepackage{booktabs}
\usepackage{threeparttable}
\usepackage{float}
\usepackage{adjustbox}
% Continuous footnotes
\usepackage{chngcntr}
\counterwithout{footnote}{chapter}
% Formulars
\usepackage{amsmath}
\providecommand\phantomsection{}
\usepackage{lipsum}
%%%%%%%%%%% Document %%%%%%%%%%%
\begin{document}
\begin{sloppypar}
\pagenumbering{Roman}
\setcounter{page}{5}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\setcounter{secnumdepth}{5}
\setcounter{tocdepth}{1}
\tableofcontents
\chapter*{Summary}
\addcontentsline{toc}{chapter}{Summary}
\chaptermark{SUMMARY}
\lipsum[1-12]
\renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{\thechapter. \ #1}}{}}
\chapter{Introduction}
\chaptermark{INTRODUCTION}
\pagenumbering{arabic}
\setcounter{page}{1}
\lipsum[1-12]
% Some further chapters
%***************************************************
% Bibliography
%***************************************************
\clearpage
\phantomsection
\bibliographystyle{apacite}
\bibliography{References}
\markboth{\MakeUppercase{REFERENCES}}{\MakeUppercase{REFERENCES}}
% Appendix
\clearpage
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{#1}{}}
\chapter*{Appendix}
\addcontentsline{toc}{chapter}{Appendix}
\chaptermark{APPENDIX}
\sectionmark{APPENDIX}
\lipsum[1-6]
\end{sloppypar}
\end{document}
\setlength{\parindent}{0pt}
but, e.g., package parskip if you do not like the indent of the first line of a paragraph. See the package manual for more information.\usepackage[utf8]{inputenc}
, but since LaTeX 2018-04-01 it is not needed.\renewcommand{\rmdefault}{ptm}
it would be better so load a package like mathptmx to get Times New Roman, because this would handle also the math mode. BTW: There are a lot of alternative like newtx.sloppypar
environment but the switch \sloppy
. The sloppypar
environment is designed for single paragraphs only.\pagenumbering{…}
already sets the page number to 1, so it makes no sense to do it once more after the command.\bibliography{…}
already prints the bibliography. Changing the running head to “REFERENCES” after is, does not make much sense. It would make more sense to do it before printing the bibliography.\appendix
and then add the appendix chapters like other chapters, e.g., \chapter{Something additional}
.twoside
and openright
, so all your \clearpage
should be \cleardoublepage
.\chaptermark{FOO}
after \chapter{Foo}
does not make any sense, because \chapter
already calls \chaptermark
.I've already told the OP, that using biblatex + biber would be recommended, but it seems the OP does not want to change his packages.Bartman wrote:My hint may not solve your problem, but a change from apacite to biblatex-apa is not only recommended, it also keeps the capitalization in the header.
Thanks a lot to you both. The change from apacite to biblatex indeed was the solution.Ijon Tichy wrote:I've already told the OP, that using biblatex + biber would be recommended, this it seems the OP does not want to change his packages.Bartman wrote:My hint may not solve your problem, but a change from apacite to biblatex-apa is not only recommended, it also keeps the capitalization in the header.
NEW: TikZ book now 40% off at Amazon.com for a short time.