On Mon, Dec 17, 2001 at 09:54:22AM +0100, Helgi Örn wrote:
> Hello all!
> 
> For a while I've been trying to figure out how to format the chapter titles 
> the way I want them in a book am writing, but I can't get it right at all. I 
> have taken a look at <http://www.lyx.org/help/layouts/chapter.php> several 
> times and it doesn't help me at all *use the koma class* f.ex. doesn't tell 
> me anything.  *With the option nochapterprefix in layout->document->extra 
> option* isn't of help either since there isn't any *options* in 
> layout->document->extra (1.1.6fix3)!
> 
> What I want is only the chapter number (without a leading *chapter*), I want 
> it to be centered vertically and I don't want the next chapter to start on a 
> new page. Is this possible to do?

Using the _standard_ book class, add the following lines to the preamble:

\AtBeginDocument{\renewcommand{\chaptername}{}}
\usepackage[center]{titlesec}
\renewcommand\chapter{%
  \global\@topnum\z@
  \@afterindentfalse
  \secdef\@chapter\@schapter}
                                                            

Reply via email to