5

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.

3
  • 2
    Possible 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. Commented 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. Commented Nov 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. Commented Nov 4, 2011 at 22:11

1 Answer 1

7

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}​

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.