Hi
I wish to have a different counter depth for TOC than for LO (tables, figures, ...). This comes from the fact that for a book, I only want to show thte chapter title (depth 0), but still want to have a non-empty list of tables...
Is it possible to define two different counters? Do I need to redefine some list of tables commands?
Thanks!!
Matthieu
General ⇒ Different Depth for ToC and LoF/LoT?
Different Depth for ToC and LoF/LoT?
Last edited by Matifou on Thu Feb 24, 2011 2:13 pm, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Different Depth for ToC and LoF/LoT?
It can never do any harm to provide a minimal example.
Code: Select all
\documentclass[11pt,a4paper,english]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{blindtext}
\setcounter{tocdepth}{0}
\begin{document}
\tableofcontents
\setcounter{tocdepth}{2}
\listoffigures
\listoftables
\blinddocument
\begin{figure}[!ht]
\centering
\rule{6.4cm}{3.6cm}
\caption{Dummy figure}\label{fig:dummy}
\end{figure}
\blinddocument
\begin{table}[!ht]
\centering
\rule{6.4cm}{3.6cm}
\caption{Dummy table}\label{tab:dummy}
\end{table}
\end{document}
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Different Depth for ToC and LoF/LoT?
Great! It was actually quite simple, just introducing the command twice!
Thanks a lot, and sorry for not providing a minimal example!
Thanks a lot, and sorry for not providing a minimal example!