I am using the "twoside" option but the page number is still just written in the bottom in the middle of a page. I would like the page number to alternate between being on the left bottom corner and right as this will be printed as a book.

Here is the main.tex -file


% Load custom course package





%Packages I added myself

\usepackage{lmodern}  % for bold teletype font
\usepackage{amsmath}  % for \hookrightarrow
\usepackage{xcolor}   % for \textcolor


% Change to standard Microsoft Word margins

% Change to 1.5 line spacing

% Set thousands separator in numbers
\npthousandsep{ }

% Fix overfull lines in bibliography


% Front page


% Contents and lists


\chapter{Background Theory}\label{cha:problemDomain}

\chapter{Related Work}\label{cha:relatedWork}






  • 3
    possibly you want \pagestyle{headings} (or use the fancyhdr package to set up a more specific heading. Your example code doesn't really help us to answer as no one can run it, it would have been better to make a smaller example with no \input of files that we don't have. – David Carlisle May 18 at 4:34
  • 2
    If I try to make a compilable MWE out of your code, I get a document with the page numbers in the header with odd page numbers on the right and even page numbers on the left. The reason for the page numbering you describe must be hidden in some code you did not show. Therefore, please make a minimal working example (MWE) that allows others to reproduce the issue you describe. Please also include the source of digsi.sty. I could not find it on CTAN. – leandriis May 18 at 9:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.