Hi out there. How do you achieve putting the chapter heading and table of contents heading the center with different font size.
Thanks.
General ⇒ contents and chapter headings at the center
NEW: TikZ book now 40% off at Amazon.com for a short time.
- Stefan Kottwitz
- Site Admin
- Posts: 10321
- Joined: Mon Mar 10, 2008 9:44 pm
contents and chapter headings at the center
Hi,
this could be done using the titlesec package, for instance
Stefan
this could be done using the titlesec package, for instance
Code: Select all
\documentclass{book}
\usepackage{titlesec}
\titleformat{\chapter}[display]
{\centering\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}
\begin{document}
\tableofcontents
\chapter{Test}
\end{document}
LaTeX.org admin
Re: contents and chapter headings at the center
Thank you very much! It worked very well and I am learning more by extending it to other contexts.
Cheers.
Cheers.
- Stefan Kottwitz
- Site Admin
- Posts: 10321
- Joined: Mon Mar 10, 2008 9:44 pm
Re: contents and chapter headings at the center
I'm glad to read that it helped.
Just a remark, don't forget to mark the topic as "solved" if the question has been solved to improve the readability of the board. It can be done by editing the first post of the topic and choosing the checkmark.
Stefan
Just a remark, don't forget to mark the topic as "solved" if the question has been solved to improve the readability of the board. It can be done by editing the first post of the topic and choosing the checkmark.
Stefan
LaTeX.org admin