Page LayoutPage is numbered on ToC but not on the page itself

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
queca
Posts: 2
Joined: Fri Dec 13, 2013 3:31 am

Page is numbered on ToC but not on the page itself

Post by queca »

Hi, you guys. I am working on my thesis and facing an annoying issue: I have to number the pre-Chapter1 pages with roman numbers and, after that, with arabian numbers. I've already tried several solutions and I don't know what else to do.

My header is:

Code: Select all

\documentclass[ruledheader]{abnt}

\usepackage[portuguese,ruled,vlined,linesnumbered]{algorithm2e}
\usepackage{hyperref}
\usepackage[portuguese]{babel}
\usepackage[latin1]{inputenc}
\usepackage[pdftex]{color,graphicx}
\usepackage{abnt-alf}
\usepackage[alf]{abntcite}
\usepackage{epsfig}
\usepackage{amssymb}
\usepackage{textcomp}
\usepackage{listings}
\usepackage{float}
\setcounter{secnumdepth}{5}
\setcounter{tocdepth}{5}

\begin{document}

\DeclareGraphicsExtensions{.jpg,.pdf,.mps,.png}
\hypersetup{pageanchor=false}

\include{capa}
\include{folharosto}
These 'includes' on the last two lines are the page 1 and 2. I am also using the abnt document class, since it is the class that defines the brazilian thesis rules.

So, I've tried the default configuration:

Code: Select all

\tableofcontents
\pagenumbering{roman}
\listoffigures
\listoftables
\listofalgorithms

\begin{resumo}
...
\end{resumo}

\begin{abstract}
...
\end{abstract}

\pagenumbering{arabic}
\setcounter{page}{1}
\chapter{Introdução}
...
However, the toc is showing roman and arabic mixed together, before the Chapter 1. Also, I didn't get the numbers on the lof and lot pages. Only the loa, resumo and abstract pages have numbers, but arabian ones:
jeito1.jpg
jeito1.jpg (18.86 KiB) Viewed 3257 times
The only way I get a correct toc is this one:

Code: Select all

\tableofcontents
\pagenumbering{roman}
\listoffigures
\listoftables
\listofalgorithms
\pagenumbering{roman}
\setcounter{page}{5}

\begin{resumo}
...
\end{resumo}

\begin{abstract}
...
\end{abstract}
\clearpage

\pagenumbering{arabic}
\setcounter{page}{1}
\chapter{Introdução}
...
And I get this:
jeito2.jpg
jeito2.jpg (18.57 KiB) Viewed 3257 times
But even this way, the lof and lot don't have roman numbers on their pages. Actually these two never get page numbers, even when they have them on toc. The loa, resumo and abstract pages have them in roman. What should I do in order to get the roman numbers on lof and lot pages?

Regards,

Davi.

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

queca
Posts: 2
Joined: Fri Dec 13, 2013 3:31 am

Page is numbered on ToC but not on the page itself

Post by queca »

Solved! The command order did the trick. So, if anyone else eventually face this kind of situation, just change the commands order. In my case, this order solved the issue:

Code: Select all

...
\tableofcontents    
\listofalgorithms
\pagenumbering{roman}
\listoffigures
\listoftables
...
Post Reply