while working on a project I noticed that some pages have a slight indent over the pages above them. you'll notice that all text on page 12, for example, is slightly more indented than page 11.
I also have another issue with the title(above the horizontal line) at the very top of every page being sometimes the title of the section but I want the title to always be the title of the chapter
How do I fix these 2 issues?
This is my MWE:
\documentclass{book}
\setcounter{secnumdepth}{4}
\usepackage{graphicx}
\usepackage{subfig}
\usepackage{authblk}
\usepackage{fancyhdr}
\graphicspath{ {figures/} }
\usepackage{array}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{tikz}
\usepackage{lipsum}
\pagestyle{fancy}
\fancyhead[ER]{\nouppercase\leftmark}
\fancyhead[OR]{\nouppercase\rightmark}
\fancyhead[ER,OR]{\thepage}
%opening
\title{MWE}
\author{A1}
\begin{document}
\maketitle
\section{intro 1}
\lipsum
\section {intro 2}
\lipsum
\makeatletter
\tableofcontents
\listoffigures
\listoftables
\chapter{Introduction}
\section{Introduction}
\subsection{Something1}
\lipsum
\subsection{Motivation}
\lipsum
%SURVEY DETAILS
\subsection{Something 2}
\lipsum
\end{document}
bookclass assumes a two sided document by default, which means that left and right pages have different left and right margins. Use the option[oneside]if you don't want that. For your second question see `fancyhdr` to include just Chapter in header. – Alan Munn Jun 11 '19 at 22:26