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.

In LaTeX, how do I change the chapter number to display as text? eg:

CHAPTER ONE not CHAPTER 1;

CHAPTER THIRTEEN not CHAPTER 13.

share|improve this question

migrated from stackoverflow.com Sep 26 '11 at 16:03

This question came from our site for professional and enthusiast programmers.

    
Related question: Convert any number to corresponding word –  diabonas Sep 26 '11 at 16:15
    
Welcome to TeX.sx! Your question was migrated here from StackOverflow. Please register on this site, too, and make sure that both accounts are associated with each other, otherwise you won't be able to comment on or accept answers or edit your question. –  Werner Sep 26 '11 at 19:49

3 Answers 3

Short answer: put the following code before \begin{document}.

\usepackage{fmtcount,etoolbox}
\makeatletter
\patchcmd{\@makechapterhead}{\thechapter}{\Numberstring{chapter}}{}{}
\patchcmd{\chaptermark}{\thechapter}{\NUMBERstring{chapter}}{}{}
\makeatother

Change \Numberstring into \numberstring if you don't want the number name capitalized.

A longer answer requires more information from you, that you can add to your question.

A quick solution would be also

\usepackage{fmtcount}
\renewcommand{\thechapter}{\Numberstring{chapter}}

but this will have some consequences on the typesetting of the Table of Contents (but also of headers). Choosing a strategy depends on the actual needs (and also on the class used).

share|improve this answer
    
If you have more than 100,000 chapters, this will break. This isn't a huge problem, I don't think. But it is a limitation in fmtcount. –  Seamus Nov 3 '11 at 8:47
2  
Quite a big book it would be. :) Also my package for spelling out numbers in Italian (fmtcount's support for Italian is very buggy) has a limitation to 9999 for cardinal numbers and to 999 for ordinals. But one can survive it, I believe. –  egreg Nov 3 '11 at 14:10
    
@egreg : How can I use your short answer (not the quick solution) with parts instead of chapters? –  ClintEastwood Jun 12 '13 at 20:28
    
@ClintEastwood For parts I would go with redefining \thepart –  egreg Jun 12 '13 at 20:32

The memoir documentclass provides this by default for some of the chapter styles. Consider reading the documentation; specifically section 6.5.1. Defining a chapter style (p 83).

Alternatively, also view some of the self-created code on Vincent Zoonekynd's LaTeX page for Chapters.

share|improve this answer
    
The numname package takes the code from the memoir class and makes it available separately. The documentation is non-existent, but see this answer for details. –  Seamus Nov 3 '11 at 8:49

You can also try fncychap package.

share|improve this answer

Your Answer

 
discard

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