[texhax] changing chapter (+ code)
Christian Deindl
deindl at soziologie.uzh.ch
Sat Jan 10 17:43:59 CET 2009
dear uwe,
thanks a lot for your help.
it works fine!
I've a small follow up question: the changes don't affect the table of
contents, etc.
is there a way to change them as well?
thanks in advance,
christian
On Sat, 10 Jan 2009 02:01:42 +0100
Uwe Lueck <uwe.lueck at web.de> wrote:
> "Christian Deindl" <deindl at soziologie.uzh.ch> schrieb am 09.01.2009
>14:37:59:
>> I'm about to finish a report and I want to change the positon of the
>> chapter-headlines. the default is a large gap between the page and the
>> headline while I want the headline to start without this gap.
> [snip]
>> secondly I want to suppress a pagenumer on the first page of each chapter.
>
> Copy this into your preamble and play with `50':
>
> \makeatletter
> \renewcommand\chapter{\if at openright\cleardoublepage\else\clearpage\fi
> \thispagestyle{empty}% WAS plain
> \global\@topnum\z@
> \@afterindentfalse
> \secdef\@chapter\@schapter}
> \def\@makechapterhead#1{%
> \vspace*{50\p@}% PLAY WITH THE NUMBER
> {\parindent \z@ \raggedright \normalfont
> \ifnum \c at secnumdepth >\m at ne
> \huge\bfseries \@chapapp\space \thechapter
> \par\nobreak
> \vskip 20\p@
> \fi
> \interlinepenalty\@M
> \Huge \bfseries #1\par\nobreak
> \vskip 40\p@
> }}
> \makeatother
>
> HTH -- Uwe.
More information about the texhax
mailing list