GeneralTypeset LoT as Section, not as Chapter

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
bjorn victor
Posts: 28
Joined: Fri Apr 13, 2007 11:17 am

Typeset LoT as Section, not as Chapter

Post by bjorn victor »

Hi,

I want to access the collective wisdom of the LaTeX experts here.

When using \tableofcontents, \listoffigures and \listoftables in the book class, they are displayed as chapters. This is usually fine, but now I need to mimic a Word template and it would be great if I could set them as sections.
-> essentially I would like to do this: \section{\listoftables}

I know how to make a section look like a chapter in the ToC, but I want the actual \listoftables to be typeset like a section in the document, not as a chapter.

I hope I was clear enough...

Cheers,
Bjorn

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: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Typeset LoT as Section, not as Chapter

Post by Stefan Kottwitz »

Hi Bjorn,

no problem. If patching by etoolbox would be ok for you, this works:

Code: Select all

\usepackage{etoolbox}
\newcommand*{\patchlist}[1]{\patchcmd{#1}{\chapter*}{\section*}{}{}}
\patchlist{\tableofcontents}
\patchlist{\listoffigures}
\patchlist{\listoftables}
Stefan
LaTeX.org admin
Post Reply