GeneralChange chapter* layout

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
profox
Posts: 2
Joined: Mon Oct 06, 2008 11:24 am

Change chapter* layout

Post by profox »

Hi, currently I am working on a project report with the use of LaTeX. Therefore I am writing my own sty file. Now I am trying to redefine the chapter command, to alter the default layout.

This is my current code:

Code: Select all

\def\@makechapterhead#1{
    { 
    \renewcommand{\headrulewidth}{{0pt}}
    \begin{minipage}{1.0\textwidth}
        \begin{flushright}
            \fontsize{100}{140}\selectfont \color{karnemelkrood}\thechapter
        \end{flushright}
    \end{minipage}\\[0.25in]
    \color{karnemelkrood}\fontsize{35}{50}\selectfont#1 \\
    \par\nobreak
    \bigskip
    }
}
This gives me the following result (just the way I want it):

Image

But when I am using \chapter*{} instead of \chapter{} it falls back into the default style, as seen below:

Image

How can I define a rewrite for the \chapter*{} command?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

balf
Posts: 158
Joined: Sat Jan 12, 2008 1:11 am

Change chapter* layout

Post by balf »

You can try the titlesec package : it lets you specify two versions of sectioning commands, a normal one and one using the numberless key.

B.A.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Re: Change chapter* layout

Post by Stefan Kottwitz »

Hi profox,

welcome to the board!
\@makeschapterhead is the corresponding macro for \chapter*, you could redefine it too.

Stefan
LaTeX.org admin
profox
Posts: 2
Joined: Mon Oct 06, 2008 11:24 am

Change chapter* layout

Post by profox »

Stefan_K wrote:Hi profox,

welcome to the board!
\@makeschapterhead is the corresponding macro for \chapter*, you could redefine it too.

Stefan
Thank you that did the trick
bjorn victor
Posts: 28
Joined: Fri Apr 13, 2007 11:17 am

Re: Change chapter* layout

Post by bjorn victor »

maybe you can use the quotchap package?

just put \usepackage{quotchap} in the preamble.

Doesn't do exactly what you want, but if you like it anyway, you don't have to redefine everything.
just an idea...

bjorn
Post Reply