Here is my document from the beginning:
\documentclass{book}
\usepackage[utf8]{inputenc}
\usepackage[a4paper, margin=1in]{geometry}
\usepackage{amsmath,amsfonts,amssymb}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{lipsum}
\usepackage{tocloft}
\usepackage{titlesec}
\begin{document}
\newgeometry{top=1.75in,hmargin=1in, bottom=1in}
\pagenumbering{gobble}
And here is the part that when I added to the document the numbering of the pages changed from the footer to the header (left and right alternatively):
\titleformat{\chapter}[display]
{\normalfont\LARGE\bfseries}
{\titleline{}\vspace{5pt}\titleline{}\vspace{1pt}%
\MakeUppercase{\chaptertitlename} \thechapter}
{1pc}
{\titleline{}\vspace{0.5pc}}
\chapter{BIOLOGICAL STRUCTURE}
The main results of this chapter is to give
\section{PRELIMINARIES}
I also wanted to say that I used to use documentclass{article}
when my numbering was in the footer.
Can anyone tell me please what changed the place of the page numbering? and how can I keep the documentclass{book}
and keep the page numbers in the footer?
\titleformat
that changed the location. It was changing from\documentclass{article}
to\documentclass{book}
that changed the location of the page numbers. However, if you're using\pagenumbering{gobble}
, there should be no page numbers.documentclass{book}
do you have any suggestions for that?fancyhead
withfancyfoot
for the page numbers.