Graphics, Figures & Tablesgraphic in chapter title

Information and discussion about graphics, figures & tables in LaTeX documents.
snowbb451
Posts: 11
Joined: Tue Jan 12, 2010 12:39 am

Re: graphic in chapter title

Post by snowbb451 »

So, now I have the problem that I want there to be a "Afterwords" chapter, and I don't want a picture there, but it shows up automatically. How do I return to the font of the preface?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

graphic in chapter title

Post by gmedina »

You can group (using braces, for example) the chapters the will be affected by the heading redefinition, keeping the changes local.

The following schematic code illustrates this:

Code: Select all

\documentclass{memoir}
\usepackage{titlesec}

\begin{document}

\chapter{Chapter with standard heading}
(chapter contents...)

{% by grouping you can keep the heading change local
\titleformat{\chapter}[hang]
  {}{\fontsize{62pt}{132pt}\selectfont\thechapter}
  {20pt}{}
\titlespacing*{\chapter} 
  {0pt}{20pt}{0pt} 

\chapter{A chapter with modified heading}
(chapter contents...)

\chapter{Another chapter with modified heading}
(chapter contents...)
}

\chapter{Another chapter with standard heading}
(chapter contents...)

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply