Document Classes ⇒ Two types of title
Two types of title
the document class i'm writing is a book. I am using the quotchap package for the titles of my sections as I like them too much but using them my figure index, tables index and so on get affected. I would like the all the sections that are not chapters (as the ones enumered) to maintain the inicial settings.
I'm getting mad trying to solve it... you'd now realise I am not any good at it... but please any help would save my life by now.
Thank you very very much to all you!
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
Two types of title
Code: Select all
\documentclass{book}
\usepackage{lipsum}
\usepackage{titlesec}
\usepackage{quotchap}
\begin{document}
{% don’t forget this curly brace
\titleformat{\chapter}{\huge\bfseries}{}{0pt}{}
\tableofcontents
\listoffigures
}% don’t forget this curly brace
\chapter{A chapter}
\begin{figure}\centering
\rule{3cm}{2ex}
\caption{A figure}
\end{figure}
\lipsum[1-2]
\section{A section}
\lipsum[1-2]
\end{document}
Re: Two types of title
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Two types of title
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10