Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
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. –  Werner Nov 4 '11 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 Witherden Nov 4 '11 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 '11 at 22:11

1 Answer 1

up vote 7 down vote accepted

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}​
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.