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
