Questions tagged [fmtcount]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4
votes
3answers
131 views

How to — properly — underline the ordinal masculine and feminine?

There are languages, Portuguese being one of them, where the ordinals (masculine and feminine) are always supposed to be underlined. About half of fonts do not provide underlined-ordinals, leaving up ...
1
vote
1answer
75 views

name of chapter in separate line from number of chapter in title of chapters

What do I want: chapter one introduction What I have already: chapter one introduction Code I used: \begin{document} \newpage \renewcommand*\contentsname{List of Content} \addcontentsline{toc}{...
3
votes
2answers
46 views

Compilation error is removed by compiling again

Following up this answer, the first run of compilation results in the following error: Undefined control sequence. This exam contains \textbf{\NAMEquestions} which has to be eliminated by running ...
3
votes
1answer
123 views

exam: Conditionally printing singular/plural form of marks/questions/pages

Following-up this answer, I would like to know to make \NAMEquestions print the word "questions" in case of multiple questions exam and "question" in case of a single question exam? For example, in a ...
2
votes
1answer
342 views

exam: Converting number to string and capitalizing the result

Here, \bfseries\MakeUppercase{\numberstringnum\numpoints} results in one5 instead of FIFTEEN. Additionally, the capitalization doesn't work for the rest of the elements (e.g. \MakeUppercase{\...
3
votes
1answer
76 views

Use Numberstring in cref call

Trying to conform to what my GF wants in her thesis: she would like chapter references as "Chapter One", "Chapter Two", etc. I found this answer, which looks to work, but I was hoping to use these ...
2
votes
2answers
470 views

get the litteral number of a section reference

I try to put the literal number of section instead of the digital number (“ten” instead of ”10”) when I get his number by \ref{} command. So, to transform a digital number into a literal number I use ...
5
votes
2answers
283 views

Conflict between fmtcount and longtable packages?

I have quite happily been using the two together for years, with fmtcount included in a \RequirePackage in my class definition, and longtable included as a \usepackage in the document files themselves....
2
votes
1answer
154 views

How to use number to text conversion functions in TikZ multipart shapes

I would like to use foreach constructions to draw lines between multipart nodes. But I find the problem that multipart anchors are declared with a textual names: one, two, ... instead of numbers. I'...
1
vote
1answer
55 views

Custom command expands counter again

I am trying to create two custom commands, that create subsections with labels and custom numbering. But when I use \nameref to get the title of the reference, it expands \decimal{reqCounter} again so ...
1
vote
2answers
102 views

Uppercase the very first letter with fmtcount

I want to convert a number to string at the beginning of a sentence. Using the builtin functions in memoir class works fine… in english only. Thus I use the fmtcount package. However string from ...
1
vote
0answers
204 views

fmtcount out of date?

I'm new in latex and need some help. I've got a project with some extra packages manually stored in a folder. Compiler gets them via makefile. After compilation I get extra first page with text: ...
2
votes
1answer
62 views

ORDINALstring in fmtcount generates wrong number

I am trying to redefine the format of Part in Lyx (in Italian), it should look as follows: SEZIONE PRIMA TESTO DEL TITOLO, RIGA 1 TESTO DEL TITOLO, RIGA 2 i.e.: FIRST SECTION TEXT OF TITLE, LINE1 ...
1
vote
1answer
160 views

Cross reference chapter number as string

I'm trying to print the chapter number of a cross referenced labelled chapter, not as an Arabic or Roman numeral, but written out as a word. I have managed to find some information here, which ...
1
vote
1answer
265 views

How to get the fmtcount ordinal(num) suffix?

The fmtcount package provides the \ordinalnum{⟨number⟩} command which displays ⟨number⟩ followed by its suffix, the latter depending on the current (babel or polyglossia) language. For instance in ...
2
votes
1answer
377 views

numberstringnum{counter}: “Missing number” error

I'm experiencing problems to use fmtcount. The code bellow return "Missing number, treated as zero" error. \numberstringnum{count} \usepackage{fmtcount} \usepackage[brazil]{babel} \newcounter{count}...
5
votes
2answers
2k views

Convert numbers in string to string

I store some strings in a variable \def\nomVAR{A12Z4E} and I want to create some other command using the content of \nomVAR. LaTeX doesn't accept to declare variable with number in its name. So the ...
4
votes
1answer
303 views

Fancyref with fmtcount

When I use fancyref with the vario package option: \usepackage[vario]{fancyref} \newcommand{\figvref}[1]{\figurename~\vref{#1}} \newcommand{\tabvref}[1]{\tablename~\vref{#1}} The above would produce ...
3
votes
1answer
73 views

Using fmtcount Commands in PDF Bookmarks/Index

Instead of having the arabic numerals, I want the number for each section in the text and in the bookmarks to be displayed as written-out text (thirty-four instead of 34). I'm trying to do this using ...
5
votes
1answer
264 views

Include Graphics using fmtcount \padzeros to determine filename

I'm trying to include a lot of images to document and decided to use a counter to generate the filenames. A minimal (not working) example would look something like this: \documentclass{article} \...
0
votes
1answer
232 views

Writing the number of questions in exam class using words [duplicate]

I am creating an exam using the exam class. To conform with the standard format, I need to be able to count the number of questions (which can be done using \numquestions) and display them as words (i....
2
votes
1answer
147 views

Maintain hyperref using refcount and fmtcount

I am using a combination of refcount and fmtcount to allow chapter references to produce a string (based on the solution to Macro to generate ordinal words from numbers?). However, I have found that ...
5
votes
1answer
209 views

fmtcount package error on gender option

I'm trying to change \thechapter using fmtcount to appear the count with ordinal number. The code I am using is: \let\ordinal\relax % to avoid a spurious warning \usepackage{fmtcount} \renewcommand{\...
2
votes
1answer
96 views

Number to text - error results with fraction

When I use integer with following code, it works correctly. But fraction (say 4.7) is used, errors result. \documentclass{minimal} \usepackage{fmtcount} \begin{document} \numberstringnum{4} \...
3
votes
1answer
384 views

ordinalnum & roman small-capitals numbers

I'm using ordinalnum command many times in a big command, this is very helpful. I would have like my ordinal number in small caps & romannumeral according french norm of typography for centuries ...
2
votes
1answer
146 views

fmtcount problems with french & newcommand

I built & used a complex command \qd this spring who requires datetime package and therefore fmtcount. I start again to use my command these days, but occurred some changes. I suspect updates of ...
3
votes
2answers
705 views

numberstringnum or numberstring in lowercase

I have tried a lot to use the \numberstringnum and \numberstring macros but it appears incomplete or even do not appear on the text. So I tested in the female version, like below: \numberstringnum{\...
9
votes
1answer
1k views

Memoir class conflict with datetime

Hi I'm running into a warning when trying to call the datetime package within a document using the memoir class. MWE is: \documentclass{memoir} \usepackage{datetime} \begin{document} Hello World \...
4
votes
1answer
779 views

part number (1, 2, 3) as word (one, deux, trois)?

Can someone please explain to me, why I get: Part ONE but then: Part DEUX Part TROIS In addition to an explanation, any successful solution to this rather odd phenomenon would be highly ...
6
votes
2answers
608 views

Fmtcount and Australian Babel

How can I get fmtcount to work when babel is loaded with the Australian option? Consider the following code which doesn't compile, due to babel australian not being supported: \documentclass{minimal}...