Page LayoutPage number stops at abstract page.

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
ahmedlasheen
Posts: 43
Joined: Wed Oct 27, 2010 10:25 pm

Page number stops at abstract page.

Post by ahmedlasheen »

Hi all,
I am using Latex to write my thesis. I used the Roman numerals page numbers for the first few pages (title, table of content, list of figures and tables and the abstract).

Code: Select all

\pagenumbering{roman} %
\setcounter{page}{2}
and then, I used Arabic numerals page numbers for the rest of the thesis.

Code: Select all

\pagenumbering{arabic} %
.

The abstract page which is supposed the last page has a roman page number has no number included.
Any idea about how to enforce page on this.

Thanks a lot

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Page number stops at abstract page.

Post by Johannes_B »

As always, hard to tell without seeing a minimal working example. Good thing, a minimal working example is independant of spoken language. No need to describe the output now and how it is suppossed to be, anybody can judge based on code.


Do you set the pagestyle to empty for a single page or the whole document?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
ahmedlasheen
Posts: 43
Joined: Wed Oct 27, 2010 10:25 pm

Page number stops at abstract page.

Post by ahmedlasheen »

Thanks,
I did not set page style at all in the thesis.
I attached a minimal example.
Thanks a lot

Code: Select all

\documentclass[12pt,a4paper]{report}
\usepackage[square,  comma, sort&compress]{natbib}
\usepackage{delarray}
\usepackage{listings}
\usepackage{geometry}%be careful, do not load packages twice
\usepackage{float}
\usepackage{subfig}
\usepackage{multirow}
\captionsetup{lofdepth=1}
%JB: if you want the subsections in the lof
\usepackage{hyperref}
\hypersetup{urlcolor=blue, colorlinks=true,citecolor=blue,linkcolor=blue}
\usepackage[usenames,dvipsnames]{color}
\geometry{a4paper,left=1.5in, right=1in, top=1in, bottom=1in }
\linespread{1.5}
\usepackage{setspace}
%%%%%%%%%%%%%%%%%%%%% Begin Document %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
\begin{document}

\title{precipitation and climate mode}

\begin{titlepage}
    \begin{center}
        \vspace*{1cm}
        \Large
        \textbf{Precipitation and climate mode}     \\   
        \vspace{0.5cm}
        \normalsize
      %  Thesis Subtitle \\ 
        \vspace{1.5cm}
        \textbf{By \\ Author}
        \vfill
        A thesis \\ Submitted to the University at example, State University of example \\ In partial fulfillment of the requirements  for  \\
        the Degree of \\ Master of Science \\
        \vspace{0.8cm}
        
        College of Arts and Science \\
        Department of Atmospheric and Environmental science\\
        May, 2015
    \end{center}
\end{titlepage}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%5
%\maketitle
\pagenumbering{roman} %
\setcounter{page}{2}

\tableofcontents % Write out the Table of Contents
\listoffigures
\listoftables % Write out the List of Tables

%%%%%%%%%%%%%%%%%% Abbreviation page %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\clearpage % Start a new page
\textbf{\emph{\Huge{ Acronyms}}} % Set the left side page header to "Abbreviations"
\\ \\  \\ \\ 
\textbf{CMAP}  \textbf{CPC} \textbf{M}erged \textbf{A}nalysis of \textbf{P}recipitation \\
\textbf{SWIO}  \textbf{S}outhern  \textbf{W}estern  \textbf{I}ndian \textbf{O}cean  \\



\begin{abstract}
This is my abstract.  
This is my abstract.  
This is my abstract.  
This is my abstract.  
This is my abstract.  
This is my abstract.  
This is my abstract.  
\end{abstract}

\pagenumbering{arabic} % restart page numbers at one, now in arabic style

\chapter{Chapter name}
this is chapter 1. \\
this is chapter 1. \\
this is chapter 1. \\
this is chapter 1. \\
this is chapter 1. \\
this is chapter 1. \\
this is chapter 1. \\
this is chapter 1. \\

\end{document}
Attachments
main.tex
(2.37 KiB) Downloaded 647 times
Last edited by Johannes_B on Mon Mar 23, 2015 10:49 pm, edited 1 time in total.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Page number stops at abstract page.

Post by Johannes_B »

You should use a package like the modern acro to deal with acronyms. Right now, if you are still beginning, you might end up in a mess.


The abstract of reports is set using the titlepage-environment, which uses the empty pagestyle. You can change this by issuing \thispagestyle{plain}. Surprise, the page number appears, but it is one. What happended there?
Well, that was a design decision made by Leslie Lamport a long time ago and is kept for compatibility reasons. The more modern classes of memoir and KOMA do not have this special flaw.
We can come around this using package etoolbox and patch the original commands.

Code: Select all

\documentclass[12pt,a4paper]{report}
\usepackage{etoolbox}
\patchcmd{\abstract}{\titlepage}{\clearpage}{}{}
\patchcmd{\andabstract}{\endtitlepage}{\clearpage}{}{}
\newcommand{\newacronym}[2]{#1&#2\tabularnewline}
\usepackage{unnumberedtotoc}%https://github.com/johannesbottcher/unnumberedtotoc
\usepackage{blindtext}
\usepackage{array}
\begin{document}

\title{precipitation and climate mode}
\pagenumbering{roman} 
\setcounter{page}{2}

\tableofcontents 
\listoffigures
\listoftables 

    
\clearpage % Start a new page
\addchap{Acronyms}%provided by unnumberedtotoc

\begin{tabular}{>{\bfseries}ll}
		\newacronym{CMAP}{\textbf{CPC} \textbf{M}erged \textbf{A}nalysis of \textbf{P}recipitation}
		\newacronym{SWIO}{\textbf{S}outhern  \textbf{W}estern  \textbf{I}ndian \textbf{O}cean}
\end{tabular}



\begin{abstract}
	\blindtext
\end{abstract}


\cleardoublepage%%%very important
\pagenumbering{arabic} % restart page numbers at one, now in arabic style

\chapter{Chapter name}
\blindtext
\blinddocument
\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
ahmedlasheen
Posts: 43
Joined: Wed Oct 27, 2010 10:25 pm

Re: Page number stops at abstract page.

Post by ahmedlasheen »

Thanks a lot for the solution. Actually, it was a weird problem. It is working fine now. I update my acronyms according to your suggestion.
Thanks a gain.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Page number stops at abstract page.

Post by Johannes_B »

Right now, the acronyms are dealt with semi-manually. Makes a later change a little easier. Depending on how far you already are with your work, a change to the automatic approach with package acro or even glossaries would make sense.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
ahmedlasheen
Posts: 43
Joined: Wed Oct 27, 2010 10:25 pm

Re: Page number stops at abstract page.

Post by ahmedlasheen »

Ya, sure. Actually, this is helpful. It also appears in the table of content. It is nice package.
Thanks a lot.
Post Reply