Recent news (2017-06-16): Blog post "Norfolk".

# fmtcount package FAQ

 Search: Category: All datatool datetime datetime2 flowfram flowframtk fmtcount glossaries private-enemy probsoln regular expression Search Tips

This is the FAQ for the fmtcount package. See also the package documentation and https://github.com/nlct/fmtcount.

## General Queries

### Is there multilingual support?

Currently there is multilingual support for English, French, Spanish, Portuguese and German.

Top

### Why is there only limited multilingual support?

Because there is a limit to the number of languages I can speak! If you like, you can volunteer to write and maintain a language file for fmtcount.

Top

### How do I get septente instead of soixante-dix?

If the currently selected language is French, you can select the Swiss or Belgium variants using:
\fmtcountsetoptions{french=swiss}

or
\fmtcountsetoptions{french=belgium}


Top

### How do I get the feminine form instead of the masculine?

Use the optional argument f to \ordinal etc.

Top

### How can I set up a different set of default package options?

Create a file called fmtcount.cfg, and put the appropriate commands in it. Then save it to somewhere on the TeX path. However, if you share your document code with other people, make sure you also supply your custom fmtcount.cfg file if it's important that they replicate your date and time format. (Note that if you are also using the datetime package, datetime.cfg will override fmtcount.cfg.)

Top

### How do I get the ordinal suffix to be level instead of a superscript?

Use:
\fmtcountsetoptions{fmtord=level}


Top

### How do I use the value of a label in \numberstring, \ordinalstring etc?

Try using Heiko Oberdiek's refcount package which provides commands that will set a counter to the number given by a label. You can then pass that counter to \numberstring etc. For example:
\documentclass{article}

\usepackage{fmtcount}
\usepackage{refcount}

\begin{document}
\newcounter{myctr}\setcounterpageref{myctr}{pg:last}
First page. This document has \numberstring{myctr} pages.

\newpage
Second page.\label{pg:last}
\end{document}


Top

## Package Errors

### The fmtcount package conflicts with the memoir class

You need to use at least version 1.04 of the fmtcount package and use \FCordinal to access fmtcount's version of \ordinal and use \ordinal to use memoir's version of that command.

Top

### Unknown language 'english' error

Make sure you are using at least version 1.07 of the fmtcount package.

Top

This bug appeared in version 1.06. You need to upgrade to a later version.

Top

## Unexpected Output

### \padzeroes is a digit short with \decimal

This was fixed in version 1.05.

Top

### \MakeUppercase doesn't work with \ordinalstring etc

This is caused by the way \MakeUppercase expands its argument. (see, e.g. \count reference breaks \MakeUppercase or Case-changing oddities). As from version 1.09, you can use one of the commands \ORDINALstring, \NUMBERstring etc, which will convert the text to upper case.

Top

### Spaces are ignored after \numberstring, \ordinalstring etc

This was fixed in version 1.2.