I am quite new to Latex and trying to make the report based on the template provided by my professor.
I am observing that latex is displaying the page number in different places such as for some page it displays the page number in the top-right
corner and for some page, it displays in bottom-centre
. Is this expected? Also, when the page number is displayed on the top-right corner then the chapter names appear on the top-left corner.
Is it possible for me to have the page number only on bottom-centre for all pages?
Also, why only on some pages the chapter heading is displayed on the top-left corner? Is this something to do with
\documentclass[a4paper,12pt]{report}
I am using?Is it possible for me to have the roman numbers for contents, abstract, list of table and images? I know if I use
book
I can achieve this but if I use book then my images and text is getting messed up so I am using the report. Is there any possibility to achieve the same using the{report}
.
The page number on bottom-centre and top-right: https://i.stack.imgur.com/hwJ1H.png
Following are the template which are provided by my professor:
\documentclass[a4paper,12pt]{report}
\usepackage{fontspec}
\usepackage{microtype}
\usepackage{polyglossia}
\setdefaultlanguage{english}
\usepackage[english]{selnolig}
\usepackage{geometry}
\usepackage[usegeometry,
margin=20mm,
twoside=semi]
\usepackage{acronym}
\renewcommand*{\acsfont}[1]{{\rmfamily #1}}
\usepackage[export]{adjustbox}
\usepackage[font=small,labelfont=bf]{caption}
\usepackage{csquotes}
\usepackage{graphicx}
\usepackage{icomma}
\usepackage{ltablex}
\usepackage{newfile}
\usepackage{overpic}
\usepackage[hyphens]{url}
\usepackage{url}
\parindent 2em
\parskip 0.5em
\pagestyle{headings}
%THIS IS WHERE SOME COMMON conctent added
\usepackage{hyperref}
\usepackage[a-1b]{pdfx}
\usepackage{makeidx}
\makeindex
\setcounter{secnumdepth}{4}
\setcounter{tocdepth}{4}
\author{\dcauthorfirstname~\dcauthorlastname}
\title{\dctitle}
\date{\today}
\begin{document}
\frontmatter
\section*{\centering Acknowledgements}
%THIS IS WHERE I ADD THE Acknowledgements FROM ANOTHER FILE
\vfill
\thispagestyle{empty}
%-----------------------------
% Abstract
%-----------------------------
\section*{\centering Abstract}
%THIS IS WHERE I ADD THE ABSTRACT FROM ANOTHER FILE
\vfill
\clearpage{\pagestyle{empty}\cleardoublepage}
\pagestyle{headings}
\tableofcontents \clearpage{\pagestyle{empty}\cleardoublepage}
\listoffigures \clearpage{\pagestyle{empty}\cleardoublepage}
\listoftables \clearpage{\pagestyle{empty}\cleardoublepage}
%THIS IS WHERE I ADD THE ACCRONYMS FROM ANOTHER FILE
\clearpage{\pagestyle{empty}\cleardoublepage}
\mainmatter
\acresetall
%---------------------------------------------------------------------------------------------------
\chapter{Introduction}
%THis is where I include the Introduction text from another file
\chapter{Conclusion}
%THis is where I include the Conclusion text from another file
\begin{appendix}
\chapter{Appendix}
\label{chap:Appendix}
%THis is where I include the Appendix text from another file
\end{appendix}
\backmatter
\printindex
\addcontentsline{toc}{chapter}{Bibliography}
\printbibliography
\end{document}
\chapter{\centering Introduction}
as this will make\centering
part of the text and will get used everywhere the text is used including page running heads and table of contents. Do you really use all those packages in this document? It seems a massively over-complicated preamble.\thispagestyle{plain}
)\documentclass[a4paper,12pt]{report} \begin{document}
and only add packages that you need it is much easier to control.! LaTeX Error: Unknown option `margin=20mm' for package `typearea'.
[H]
disables the mechanism that latex uses to avoid bad white space at a page breaks (floating figures) so by design introduces ugly white space unless you manually position the figure at a good place in the source to get a good page break. It is opting for manual control and should only be used in exceptional cases.\pagenumbering{roman}
then later\pagenumbering{arabic}
will do your page numbers.