Skip to main content

Questions tagged [fmtcount]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
115 views

Help finding strange space

I have faked my way through writing a Swedish language file (see bottom) for fmtcount. It has served me well, but now I have started noticing strange spaces appearing before numbers. I am a bit out of ...
Fredrik P's user avatar
  • 1,418
1 vote
0 answers
152 views

ConTeXt: Numbers as verbal strings (e.g. 1=“first”)

With LaTeX, I can use the fmtcount package to typeset numbers as verbal strings and print e.g. “one”, “One”, “first” or “First” instead of 1 and “twenty-two”, “Twenty-two”, “twenty-second” or “Twenty-...
Fredrik P's user avatar
  • 1,418
3 votes
3 answers
156 views

Change page numbering in preamble - latex counter modification - hexadecimal conversion

EDIT2: Sorry for this real time updates, but I am really going crazy. I added at the bottom the new code that is compiling correctly with showhexapagesStepOne I edited the question trying to give ...
AlessandroParma's user avatar
2 votes
1 answer
49 views

Can't all-caps the chapter number string

My MWE generates "One" for the chapter number. I want the "One" to be "ONE". I tried everything I could think of including \renewcommand{\thechapter}{\MakeUppercase{\...
buttonsrtoys's user avatar
1 vote
0 answers
29 views

fmtcount problem after polyglossia update

I'm seeing strange behaviour in a package (cooking-units) that internally uses fmtcount to convert numbers to their respective names. The same problem also occurs when using fmtcount directly. I can't ...
takrl's user avatar
  • 531
3 votes
2 answers
128 views

Can't capitalize Swedish letters (å, ä, ö) with pdfTeX

I'm working on a Swedish language file to fmtcount and, to support some of fmtcount's commands (e.g. \Numberstring and NUMBERstring), I need to make strings containing the Swedish characters å, ä and ...
Fredrik P's user avatar
  • 1,418
0 votes
0 answers
26 views

Cannot use \aa in \eappto with pdfLaTeX [duplicate]

I'm working on a Swedish language file to fmtcount. There I have to concatenate strings to form numerals. As the Swedish words for two and eight ("två" and "åtta") contain the ...
Fredrik P's user avatar
  • 1,418
2 votes
1 answer
61 views

Errors from using \MakeLowercase with fmtcount's commands

When I try to use \MakeLowercase and fmtcount's different number formatting commands I get all kinds of errors. I'm primarily interested in getting rid of the error message from the first version of \...
Fredrik P's user avatar
  • 1,418
0 votes
1 answer
83 views

Load custom language for fmtcount?

I have written a file fc-swedish.def to make fmtcount support Swedish numbers. Is there some way for me to load that file locally without copying the entire package to my working directory?
Fredrik P's user avatar
  • 1,418
3 votes
2 answers
123 views

Convert any number WITH DECIMALS to corresponding word

I want to put in words a value that has a decimal part. I am using numberstringnum, it works fine without decimals, any one can help me? \documentclass[12pt,a4paper,times,hidelinks,unicode]{report} \...
Carlos's user avatar
  • 31
1 vote
1 answer
31 views

Padding Zero to Chapter Heading in Table of Contents in amsbook class

It is possible to pad zero to chapter heading in table of contents. It is getting reflected in Chapter pages but not in table of contents Here is the code. \documentclass{amsbook} \usepackage[...
user61681's user avatar
  • 1,769
3 votes
3 answers
1k 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 ...
TeX Apprentice's user avatar
1 vote
1 answer
394 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}{...
user201291's user avatar
3 votes
2 answers
82 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 ...
Diaa's user avatar
  • 9,689
3 votes
1 answer
192 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 ...
Diaa's user avatar
  • 9,689
2 votes
1 answer
550 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{\...
Diaa's user avatar
  • 9,689
3 votes
1 answer
130 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 ...
etiene's user avatar
  • 43
4 votes
2 answers
1k 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 ...
fauve's user avatar
  • 2,531
5 votes
2 answers
360 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....
RLK's user avatar
  • 95
2 votes
1 answer
423 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'...
Ignasi's user avatar
  • 137k
1 vote
1 answer
86 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 ...
Florin Hillebrand's user avatar
1 vote
2 answers
149 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 ...
NBur's user avatar
  • 5,136
1 vote
0 answers
268 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: ...
Morgan's user avatar
  • 11
2 votes
1 answer
107 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 ...
Attilio's user avatar
  • 123
1 vote
1 answer
203 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 ...
stephanie.anderson's user avatar
3 votes
1 answer
554 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 ...
Denis Bitouzé's user avatar
3 votes
1 answer
458 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}...
Camilla's user avatar
  • 33
5 votes
2 answers
4k 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 ...
Guuk's user avatar
  • 1,495
4 votes
1 answer
359 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 ...
Nicholas Hamilton's user avatar
3 votes
1 answer
89 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 ...
Mike Pierce's user avatar
5 votes
1 answer
359 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} \...
jrast's user avatar
  • 586
0 votes
1 answer
298 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....
AloneAndConfused's user avatar
3 votes
1 answer
253 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 ...
Tom Brien's user avatar
  • 771
5 votes
1 answer
262 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{\...
Jean Pimenta's user avatar
2 votes
1 answer
144 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} \...
Vaibhav's user avatar
  • 6,685
3 votes
2 answers
543 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 ...
Zouib's user avatar
  • 857
2 votes
1 answer
177 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 ...
Zouib's user avatar
  • 857
3 votes
2 answers
1k 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{\...
Sara Rodriguez's user avatar
10 votes
1 answer
2k 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 \...
Tom Brien's user avatar
  • 771
4 votes
1 answer
920 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 ...
ClintEastwood's user avatar
6 votes
2 answers
800 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}...
Nicholas Hamilton's user avatar