Page Layoutcustomizing page numbers

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
komal
Posts: 14
Joined: Thu Jun 02, 2011 1:57 pm

customizing page numbers

Post by komal »

Except for the title page, number all pages which come before the first page of the body chapters consecutively with lower case roman numerals (i, ii, iii, iv…). The first page with Arabic numeral (1, 2, 3, and so on) starts from the first page of Chapter 1, but it is mentioned from page 2 onwards. Mention the page numbers on the top right of the page. The first page of each chapter will not carry the page number; however the page number will be counted for the proceeding page.

Is this possible ?
Last edited by komal on Wed Jun 08, 2011 8:56 pm, edited 1 time in total.

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

Stefan Kottwitz
Site Admin
Posts: 10334
Joined: Mon Mar 10, 2008 9:44 pm

customizing page numbers

Post by Stefan Kottwitz »

Hi!

Regarding the numbering, you can declare lower case roman by

Code: Select all

\pagenumbering{roman}
and switch to Arabic, beginning from 1, by

Code: Select all

\pagenumbering{arabic}
Page numbers are always counted, even if they are not visible. The first page of a chapter usually carries the page number at the bottom, which is plain page style, while other pages can be numbered at the top. The plain style is very common, however it can be changed to empty if you really wish that.

For printing page numbers and possibly running headers, you can use fancyhdr.

Stefan
LaTeX.org admin
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

customizing page numbers

Post by localghost »

Page numbering can be altered with some simple switches (but by default only in the »book« class). Page styles (and much more other things) can easily be done with the titlesec package. See the below example for some inspiration.

Code: Select all

\documentclass[11pt,a4paper,english]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage[raggedright,pagestyles]{titlesec}
\usepackage{blindtext}

\author{komal}
\title{Page numbers customized easily}

\assignpagestyle{\chapter}{empty}

\begin{document}
  \maketitle
    
  \frontmatter
  \tableofcontents
  \listoffigures
  \listoftables

  \mainmatter	
  \blinddocument
	
	\appendix
	\blinddocument
	
	\backmatter
	\begin{thebibliography}{9}
    \bibitem{key} Bibliography Item
  \end{thebibliography}
\end{document}
Note that the commands \frontmatter, \mainmatter and \backmatter do more than only to alter the page numbering. \frontmatter and \backmatter also turn off chapter numbering.

The blindtext package is only for creating dummy text, thus no part of the solution.


Thorsten
Post Reply