vincentb1 / fmtcount

Source for LaTeX fmtcount package
11 stars 5 forks source link

Error in portuguese language for lowercase numberstring #10

Closed sara-rodriguez closed 10 years ago

sara-rodriguez commented 10 years ago

the numberstring - in lowercase do not works for me

Here is my code:

\documentclass[a4paper,12pt]{article}

\usepackage[utf8]{inputenc} \usepackage[portuguese]{babel} \usepackage[T1]{fontenc}

\usepackage{fmtcount}

\begin{document}

\Numberstring{page}[f] \Numberstringnum{1}[f] \Numberstringnum{2}[f] \Numberstringnum{3}[f] \Numberstringnum{4}[f]

\numberstring{page}[f] \numberstringnum{1}[f] \numberstringnum{2}[f] \numberstringnum{3}[f] \numberstringnum{4}[f]

\Numberstring{page}[m] \Numberstringnum{1}[m] \Numberstringnum{2}[m] \Numberstringnum{3}[m] \Numberstringnum{4}[m]

\numberstring{page}[m] \numberstringnum{1}[m] \numberstringnum{2}[m] \numberstringnum{3}[m] \numberstringnum{4}[m]

\end{document} And the anwer:

Uma Uma Duas Três Quatro uma uma duas três quatro Um Um Dois Três Quatro The error:

Error in main.tex (line 30): Argument of \@unitstring has an extra }. <inserted text> \par l.30 \numberstring{page}[m]

I've run across a }' that doesn't seem to match anything. For example,\def\a#1{...}' and \a}' would produce this error. If you simply proceed now, the\par' that I've just inserted will cause me to report a runaway argument that might be the root of the problem. But if your }' was spurious, just type2' and it will go away.

nlct commented 10 years ago

The problem was in the definition of \@@unitstringportuges It should be defined as having only one argument. I've fixed in in the source. The bug should be gone in version 2.04