Page LayoutFormat of Chapter Heading

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
Moruk
Posts: 18
Joined: Sun Jun 12, 2011 2:00 pm

Format of Chapter Heading

Post by Moruk »

Hi,

How can I formate the \chapter like this screenshot?

With this, I am agree:

Code: Select all

\titleformat{\chapter}[hang]{\Huge\color{blue}}{
\bfseries \quad
}{0pt}{\flushright{
\fontsize{110pt}{}\selectfont\color{grey}\thechapter
\vspace{0.1cm}
\begin{rotate}{90}
\hspace{0.4cm}
\fontsize{25pt}{}\selectfont \color{grey}Chapter
\end{rotate}
}\\}
But.. The format should not be applied to the title of the index. The formatting should apply only if the chapter-item has a point in the index.

Can you help me?
Attachments
Bildschirmfoto.2.png
Bildschirmfoto.2.png (13.29 KiB) Viewed 9493 times
Last edited by Stefan Kottwitz on Sat Sep 10, 2011 4:01 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
5gon12eder
Posts: 126
Joined: Sun Feb 13, 2011 8:36 pm

Format of Chapter Heading

Post by 5gon12eder »

Put your redefinition of the \chapter style into a command, say \coolchapters, and write another command, say \simplechapters, with the definition of the alternative chapter style. Then switch between the styles by inserting \coolchapters and \simplechapters at the respective places in your document where you want to switch the style.

Best
I'm using pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian).
Moruk
Posts: 18
Joined: Sun Jun 12, 2011 2:00 pm

Format of Chapter Heading

Post by Moruk »

Code: Select all

\newcommand\coolchapter{
\titleformat{\chapter}[hang]{\Huge\color{blue}}{
\bfseries \quad
}{0pt}{\flushright{
\fontsize{110pt}{}\selectfont\color{grey}\thechapter
\vspace{0.1cm}
\begin{rotate}{90}
\hspace{0.4cm}
\fontsize{25pt}{}\selectfont \color{grey}Chapter
\end{rotate}
}\\}
}

Code: Select all

\coolchapter{My Cool Chapter}
Now, the Chapter "My Cool Chapter" has no style...
Moruk
Posts: 18
Joined: Sun Jun 12, 2011 2:00 pm

Re: Format of Chapter Heading

Post by Moruk »

no idea?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Format of Chapter Heading

Post by Stefan Kottwitz »

\coolchapter should be a switch, used without argument. It's not intended to replace \chapter.

Such as:

Code: Select all

\coolchapter
\chapter{My Cool Chapter}
...
\chapter{Another one}
...
\simplechapter
\chapter{A simple chapter}
Stefan
LaTeX.org admin
Moruk
Posts: 18
Joined: Sun Jun 12, 2011 2:00 pm

Format of Chapter Heading

Post by Moruk »

Perfect :D

(you can mark it as solved)
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Format of Chapter Heading

Post by Stefan Kottwitz »

Moruk wrote:(you can mark it as solved)
Moruk, do you expect moderators to go around marking topics as solved? Please kindly do that yourself.

Stefan
LaTeX.org admin
Moruk
Posts: 18
Joined: Sun Jun 12, 2011 2:00 pm

Re: Format of Chapter Heading

Post by Moruk »

No, but "You waited too long, after some time (a week) a post cannot be edited." ;)
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Re: Format of Chapter Heading

Post by Stefan Kottwitz »

I see, also this post is already old and reactivated today... :roll:

Stefan
LaTeX.org admin
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Format of Chapter Heading

Post by localghost »

It would be very kind if you mention when doing a crossposting [1]*. This is only fair because it prevents others from double efforts and waste of time.

* According to the rules you are obliged to do so.

[1] Kapitelüberschrift formatieren .:. goLaTeX — Mein LaTeX-Forum


Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Post Reply