Page LayoutNo Roman Page Numbers for LoF

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
Tanu
Posts: 1
Joined: Sun Aug 07, 2011 12:29 am

No Roman Page Numbers for LoF

Post by Tanu »

I had to hard code my table of contents, list of tables, list of figures instead of using \tableofcontents and \listoftables because I had to align the headers properly (latex was not doing the proper alignment when the toc or lof extended to more than 1 page). That's a different issue. The issue I am having now is with page numbering.
I want these pages to have roman numeral page numbers. I have used the following

Code: Select all

\pagenumbering{roman}
This works fine for numbering abstract, toc, list of tables. But the list of figures start with arabic numbering.
I have explicitly tried doing the following before hard coding the list of figures:

Code: Select all

\thispagestyle{myheadings}
\pagenumbering{roman}
But it still didn't help.
NOTE - I do have a \newpage before the list of figures start.

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

No Roman Page Numbers for LoF

Post by localghost »

Unfortunately you didn't write anything about the document class you are using. So the information you give is a bit poor. Here's a possible solution for the book class.

Code: Select all

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

\newpagestyle{front}{%
  \headrule
  \sethead[\thepage][][\chaptertitle]{\chaptertitle}{}{\thepage}
}
\newpagestyle{main}[\small\sffamily\rm]{%
  \headrule
  \sethead[\thepage][][\thesection\enspace\sectiontitle]{\thechapter\enspace\chaptertitle}{}{\thepage}
}
\newpagestyle{back}[\small\sffamily\rm]{%
  \headrule
  \sethead[\thepage][][\chaptertitle]{\chaptertitle}{}{\thepage}
}

\begin{document}
  \frontmatter
  \pagestyle{front}
  \tableofcontents
  \listoffigures
  \listoftables

  \mainmatter
  \pagestyle{main}
  \blinddocument

  \backmatter
  \pagestyle{back}
  \begin{thebibliography}{9}
    \bibitem{key} Bibliogrpahy Item
  \end{thebibliography}
  \newpage~   % This is only for generating a second page for the bibliography, can be deleted in a real document
\end{document}
For other classes the solution surely will differ. The blindtext package is only for creating dummy text, thus is not part of the solution.


Best regards and welcome to the board
Thorsten
Post Reply