General ⇒ contents and chapter headings at the center
contents and chapter headings at the center
Thanks.
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: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
contents and chapter headings at the center
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}
Re: contents and chapter headings at the center
Cheers.
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
Re: contents and chapter headings at the center
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