Text Formatting ⇒ titlestyle of chapter
titlestyle of chapter
hello!!!
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
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
- Stefan Kottwitz
- Site Admin
- Posts: 10290
- Joined: Mon Mar 10, 2008 9:44 pm
titlestyle of chapter
Hi Allevo,
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
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
LaTeX.org admin
Re: titlestyle of chapter
for create new style of chapter'heading i use \titleformat. is correct?!?!
- Stefan Kottwitz
- Site Admin
- Posts: 10290
- Joined: Mon Mar 10, 2008 9:44 pm
Re: titlestyle of chapter
Yes, that's correct. At the end of the documentation there are examples how the standard chapter/section styles could be created, that would be a good start.
Stefan
Stefan
LaTeX.org admin
Re: titlestyle of chapter
thanks!!!!
but the format, what is it?!?!
in the shape i can write \large etc... but in format?!?! and sep?
but the format, what is it?!?!
in the shape i can write \large etc... but in format?!?! and sep?
- Stefan Kottwitz
- Site Admin
- Posts: 10290
- Joined: Mon Mar 10, 2008 9:44 pm
titlestyle of chapter
That's described on page 3 and 4 of the documentation.
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
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
LaTeX.org admin
titlestyle of chapter
thank
why this code create an error?!?!
this is the error:
the line 40 is the line that follow "{frame}" and is empty

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: 10290
- Joined: Mon Mar 10, 2008 9:44 pm
titlestyle of chapter
\titleformat has more parameters, you have provided only 3 parameters. Here's a complete working example:
Stefan
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}
LaTeX.org admin
Re: titlestyle of chapter
ops excuse me...
i didn't see []
and how can i put a image?!?! for example a rectangle
i didn't see []

and how can i put a image?!?! for example a rectangle
- Stefan Kottwitz
- Site Admin
- Posts: 10290
- 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
LaTeX.org admin