I would like to insert silly quotes before the chapter headline. I am using scrbook / KOMAScript -- unfortunately in version 3.17a (texlive 2015).
I would also like to insert a rule below the chapter headline.
This is a small example:
\documentclass[chapterprefix=true]{scrbook}
\usepackage{blindtext}
\usepackage{scrhack}
\begin{document}
\setchapterpreamble{
\begin{flushright}
MySillyQuote
\end{flushright}}
\chapter{MyChapter}
\Blinddocument
\end{document}
What I would like to have is something like this:
The preamble should be moved up (red) and there should be a line (highlighted in green, but should be regular black). Only chapters that have chapter-prefixes have chapter-preambles in my document and those chapters without prefixes should not reserve extra space for a preamble. For the remaining chapters it would be OK to hard-code the space for the chapter-preamble to e.g. 3 lines (although dynamic fit would obviously be preferable).
I have tried a few things using \chapterformat
but they don't seem to work, because my KOMAScript is too old.
EDIT: no longer interested in the rule.
\setchapterpreamble[o]{...}
?\rule
there is too much spacing between headline and rule... anyway to change that?