Text Formatting ⇒ titlestyle of chapter
titlestyle of chapter
my problem is simple: i want change the style of the title of chapter
i want that the style is custom
how can I this?!?! how can i create a new style?!?!
I'm not inglese user.
I apologize for my English
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: 10329
- Joined: Mon Mar 10, 2008 9:44 pm
titlestyle of chapter
welcome to the board!
The titlesec package would be useful for you, see its documentation.
Here's an complex example using titlesec and TikZ: Fancy chapter headings with TikZ. But try the documentation and examples of titlesec first, that packages provides many good features.
Stefan
Re: titlestyle of chapter
- Stefan Kottwitz
- Site Admin
- Posts: 10329
- Joined: Mon Mar 10, 2008 9:44 pm
Re: titlestyle of chapter
Stefan
Re: titlestyle of chapter
but the format, what is it?!?!
in the shape i can write \large etc... but in format?!?! and sep?
- Stefan Kottwitz
- Site Admin
- Posts: 10329
- Joined: Mon Mar 10, 2008 9:44 pm
titlestyle of chapter
sep is a length, like 20pt. format contains formatting commands like \normalfont\huge\bfseries. shape ist a general option like hang, display or frame. The documentation contains more explanation and examples.
Stefan
titlestyle of chapter

why this code create an error?!?! this is the error:
Code: Select all
Runaway argument?! Paragraph ended before \ttl@format@ii was complete.<to be read again>\parl.40? ^C! Interruption.l.40
- Stefan Kottwitz
- Site Admin
- Posts: 10329
- Joined: Mon Mar 10, 2008 9:44 pm
titlestyle of chapter
Code: Select all
\documentclass[a4paper,10pt]{book}\usepackage{titlesec}\titleformat{\chapter}[frame]{\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}\begin{document}\chapter{This is just a test chapter}\end{document}
Re: titlestyle of chapter
i didn't see []

and how can i put a image?!?! for example a rectangle
- Stefan Kottwitz
- Site Admin
- Posts: 10329
- Joined: Mon Mar 10, 2008 9:44 pm
titlestyle of chapter
Like at other places, you could use the command \includegraphics of the graphicx package. Or do you mean a symbol or a LaTeX-drawing instead of an external image?allevo wrote: and how can i put a image?
Stefan