About
Shop
LaTeX
Free Software
Books
News
Contact
Blog
News (2017-09-10): New application bib2gls for use with glossaries-extra.sty.

fmtcount package FAQ

Search: Category:
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.

Last Modified: 2013-12-09 09:29:13

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.

Last Modified: 2013-12-09 09:32:03

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}

Last Modified: 2013-12-09 09:32:45

Top

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

Use the optional argument f to \ordinal etc.

Last Modified: 2013-12-09 09:33:27

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.)

Last Modified: 2013-12-09 09:35:57

Top

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

Use:
\fmtcountsetoptions{fmtord=level}

Last Modified: 2013-12-09 09:37:42

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}

Last Modified: 2013-12-09 09:38:48

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.

Last Modified: 2013-12-09 09:40:25

Top

Unknown language 'english' error

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

Last Modified: 2013-12-09 09:41:10

Top

Command \@ordinalMenglish already defined

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

Last Modified: 2013-12-09 09:42:18

Top

Unexpected Output

\padzeroes is a digit short with \decimal

This was fixed in version 1.05.

Last Modified: 2013-12-09 09:43:28

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.

Last Modified: 2013-12-09 09:45:31

Top

Spaces are ignored after \numberstring, \ordinalstring etc

This was fixed in version 1.2.

Last Modified: 2013-12-09 09:46:13

Top

LaTeX2HTML Support

Why does LaTeX2HTML ignore fmtcount.cfg?

Because I haven't found a way to implement it.

Last Modified: 2013-12-09 09:47:22

Top

© 2012 Dickimaw Books. "Dickimaw", "Dickimaw Books" and the Dickimaw parrot logo are trademarks. The Dickimaw parrot was painted by Magdalene Pritchett.

Terms of Use Privacy Policy Site Map FAQs