Currently I am using scrreprt
for my document with the option chapterprefix=true
. I wish for my chapters prefixes to be of the form: "CHAPTER ONE" as opposed to "Chapter 1". Now, I know that fmtcounter
and moreenum
can convert numbers to words but am unsure how to go about formatting the prefix.
-
2Possible duplicate: tex.stackexchange.com/questions/29568/…. If this does not help solve your problem, please state why by rephrasing your question appropriately via an edit.– Werner ♦Nov 4, 2011 at 21:56
-
Yep, seems to be a duplicate -- although I did not realize that chapters in KOMA worked the same way as usual chapters.– Freddie WitherdenNov 4, 2011 at 22:07
-
@FreddieWitherden: They work similar, however they provide more features for customizing format and spacing. So I hope the KOMA commands below are a good addition which is not covered by the other question.– Stefan Kottwitz ♦Nov 4, 2011 at 22:11
1 Answer
The answer to the question
shows a way changing the chapter number in all places:
\usepackage{fmtcount}
\renewcommand{\thechapter}{\Numberstring{chapter}}
However, this affects also cross-references, and section numbering such as poducing One.1 instead of 1.1, which is consistent could be undesired. If you would like to change the prefix and number in the headings, not changing the general presentation of the counter, you could redefine \chapterformat
. Furthermore, if you would like to change the marks in the header in the same way, you could adjust \chaptermarkformat
.
\documentclass[chapterprefix=true]{scrreprt}
\usepackage{fmtcount}
\renewcommand*{\chapterformat}{%
\mbox{\chapappifchapterprefix{\nobreakspace}\Numberstring{chapter}\autodot\enskip}%
}
\renewcommand*\chaptermarkformat{\chapappifchapterprefix{\ }%
\Numberstring{chapter}\autodot\enskip}
\pagestyle{headings}
\begin{document}
\chapter{First Chapter}
\label{chap:1}
This is chapter \ref{chap:1}.
\clearpage
text
\clearpage
text
\end{document}