Document ClassesTwo types of title

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
Avin
Posts: 2
Joined: Mon Nov 22, 2010 1:51 pm

Two types of title

Post by Avin »

Hello everybody,

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!

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

meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Two types of title

Post by meho_r »

Check what "initial" settings are, and then use titlesec package to redefine them for certain parts of your document (in this case, for TOC and LOF). E.g.:

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}

Avin
Posts: 2
Joined: Mon Nov 22, 2010 1:51 pm

Re: Two types of title

Post by Avin »

Thank you really much!! It is already solved!
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Two types of title

Post by localghost »

Now that the problem is obviously solved, please be so kind and mark the topic (not the last post) accordingly as clearly written in the Board Rules (to be read before posting). Please keep that in mind for the future so that further reminders will not be necessary.


Best regards and welcome to the board
Thorsten
Post Reply