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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10348
- 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: 10348
- 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: 10348
- 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?!?!
Code: Select all
\titleformat{\chapter}{}
{frame}
Code: Select all
Runaway argument?
! Paragraph ended before \ttl@format@ii was complete.
<to be read again>
\par
l.40
? ^C! Interruption.
l.40
- Stefan Kottwitz
- Site Admin
- Posts: 10348
- 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: 10348
- 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