Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

koma-script: Chapter Style Design

166 views
Skip to first unread message

Leo

unread,
Feb 12, 2009, 1:55:39 PM2/12/09
to
Hi there,

After searching the manual for koma-script many times, I seem to get the
impression that koma-script is not flexible in supporting chapter style
design. There is only one option: \chapterformat and \chapterprefix.

For example how to achieve the following without using external packages
such as titlesec.

* The chapter counter is put in its own line and aligned to the right.
* The actual chapter title is aligned to the left.

BTW, I use titlesec at the moment and it stops some commands in
koma-script from working.

Thank you.
--
.: Leo :. [ sdl.web AT gmail.com ] .: I use Emacs :.

Philipp Stephani

unread,
Feb 14, 2009, 1:59:52 PM2/14/09
to
Leo schrieb:

> Hi there,
>
> After searching the manual for koma-script many times, I seem to get the
> impression that koma-script is not flexible in supporting chapter style
> design. There is only one option: \chapterformat and \chapterprefix.
>
> For example how to achieve the following without using external packages
> such as titlesec.
>
> * The chapter counter is put in its own line and aligned to the right.
> * The actual chapter title is aligned to the left.

There are several different ways to achieve this:

\documentclass[headings=chapterprefix]{scrreprt}

% And then one of:
\addtokomafont{chapterprefix}{\raggedleft}

\renewcommand*\chapterformat{\aftergroup\raggedleft\chapapp\ \thechapter}

\renewcommand*\chapterformat{\hspace{0pt plus 1filll}\chapapp\ \thechapter}

The last one is probably the cleanest.

0 new messages