Page LayoutPagination + subsubsection on table of contents

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
maranatha
Posts: 13
Joined: Tue May 03, 2011 9:08 pm

Pagination + subsubsection on table of contents

Post by maranatha »

Hello

My document class is book. I want to change the pagination style.
1. I want the page numbering to be arabic for the table of contents plus I want this page number to be on the middle top of the page.
2. I have set the tocdepth to 3. The subsections are displayed on the TOC but they are not numbered on neither the TOC nor on the body. any idea?
Last edited by maranatha on Thu May 05, 2011 1:48 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

maranatha
Posts: 13
Joined: Tue May 03, 2011 9:08 pm

Re: Pagination + subsubsection on table of contents

Post by maranatha »

I have actually solved the the second equation about subsubsection numbering by:
\setcounter{secnumdepth}{4}
maranatha
Posts: 13
Joined: Tue May 03, 2011 9:08 pm

Pagination + subsubsection on table of contents

Post by maranatha »

I have got a solution for the roman numbering of preface pages in my document. I just uncomment the

Code: Select all

\frontmatter
command and put

Code: Select all

\mainmatter
command where I want the arabic numbering to start as below and it works well.

Code: Select all

\documentclass[11pt,a4paper]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\renewcommand*{\contentsname}{TABLE OF CONTENTS}
\renewcommand*{\listfigurename}{LIST OF FIGURES}
\renewcommand*{\listtablename}{LIST OF TABLES}
\renewcommand*{\bibname}{REFERENCES}

\begin{document}
  \frontmatter % switches page numbering to Roman numerals 
  \mainmatter  % resets the page numbering to 1 with Arabic numbers 
  \backmatter
  \tableofcontents
  \listoffigures
  \listoftables

  \begin{thebibliography}{9}
    \bibitem{key} Bibliography Item
  \end{thebibliography}
\end{document}
Post Reply