Latest news 2025-07-01: Ebook Sale July 2025. Cybercrime fiction short stories Unsocial Media and Smile for the Camera free; crime fiction short story The Briefcase free; short story noir crime fiction I’ve Heard the Mermaid Sing free; crime fiction novel The Private Enemy US$1.99; illustrated children’s story The Foolish Hedgehog US$0.99.

fmtcount package (out-of-date) FAQ

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}

2013-12-09 09:38:48


Permalink: https://www.dickimaw-books.com/faq.php?id=143
Alternative link: https://www.dickimaw-books.com/faq.php?itemlabel=ftmrefcount

Category: fmtcount package (out-of-date)
Topic: General Queries