KOMA-Script scrbook: chapter titles right-aligned, between lines, chapter number on top in words [RESOLVED]
Rich Shepard
rshepard at appl-ecosys.com
Fri Jul 14 19:25:23 UTC 2023
On Fri, 14 Jul 2023, Herbert Voss wrote:
> Write into the documents preamble:
>
> \usepackage{fmtcount}
> \setkomafont{chapter}{\huge}
>
> \renewcommand\chapterlinesformat[3]{%
> \ifx\relax#2\relax\else\makebox[\linewidth]{%
> \numberstringnum{\thechapter}}\\\smallskip\fi\rule{\linewidth}{1pt}\par
> \ifx\relax#2\relax\smallskip\else\bigskip\fi
> \parbox{\linewidth}{\raggedchapter\raggedleft#3}%
> \par\medskip\rule{\linewidth}{1pt}%
> }%
Herbert,
Wow! How simple. I need to go back and read my basic LaTeX book again.
I thought that \raggedchapter\raggedleft would left-align the heading while
it obviouly doesn't in the above.
Again I'm humbled by the reality of having so much to learn.
Best regards,
Rich
More information about the lyx-users
mailing list