1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!--Converted with LaTeX2HTML 2002 (1.67)
original version by: Nikos Drakos, CBLU, University of Leeds
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>fmtcount.sty v1.31: Displaying the Values of LaTeX Counters</TITLE>
<META NAME="description" CONTENT="fmtcount.sty v1.31: Displaying the Values of LaTeX Counters">
<META NAME="keywords" CONTENT="fmtcount-manual">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="LaTeX2HTML v2002">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
</HEAD>
<BODY >
<P>
<H1 ALIGN="CENTER">fmtcount.sty v1.31: Displaying the Values of
LaTeX Counters</H1>
<P ALIGN="CENTER"><STRONG>Nicola L.C. Talbot
<BR>
<BR>
School of Computing Sciences
<BR>
University of East Anglia
<BR>
Norwich. NR4 7TJ.
<BR>
United Kingdom.
<BR> <TT><A NAME="tex2html1"
HREF="http://theoval.cmp.uea.ac.uk/~nlct/">http://theoval.cmp.uea.ac.uk/~nlct/</A></TT></STRONG></P>
<P ALIGN="CENTER"><STRONG>2nd October 2009</STRONG></P>
<BR>
<H2><A NAME="SECTION00010000000000000000">
Contents</A>
</H2>
<!--Table of Contents-->
<UL>
<LI><A NAME="tex2html17"
HREF="fmtcount-manual.html#SECTION00020000000000000000">Introduction</A>
<LI><A NAME="tex2html18"
HREF="fmtcount-manual.html#SECTION00030000000000000000">Installation</A>
<LI><A NAME="tex2html19"
HREF="fmtcount-manual.html#SECTION00040000000000000000">Available Commands</A>
<LI><A NAME="tex2html20"
HREF="fmtcount-manual.html#SECTION00050000000000000000">Package Options</A>
<LI><A NAME="tex2html21"
HREF="fmtcount-manual.html#SECTION00060000000000000000">Multilingual Support</A>
<LI><A NAME="tex2html22"
HREF="fmtcount-manual.html#SECTION00070000000000000000">Configuration File fmtcount.cfg</A>
<LI><A NAME="tex2html23"
HREF="fmtcount-manual.html#SECTION00080000000000000000">LaTeX2HTML style</A>
<LI><A NAME="tex2html24"
HREF="fmtcount-manual.html#SECTION00090000000000000000">Acknowledgements</A>
<LI><A NAME="tex2html25"
HREF="fmtcount-manual.html#SECTION000100000000000000000">Troubleshooting</A>
</UL>
<!--End of Table of Contents-->
<H1><A NAME="SECTION00020000000000000000">
Introduction</A>
</H1>
The <TT>fmtcount</TT> package provides commands to display
the values of LaTeX counters in a variety of formats. It also
provides equivalent commands for actual numbers rather than
counter names. Limited multilingual support is available.
Currently, there is only support for English, French (including
Belgian and Swiss variations), Spanish, Portuguese, German and
Italian.
<P>
<H1><A NAME="SECTION00030000000000000000">
Installation</A>
</H1>
<P>
This package is distributed with the files <TT>fmtcount.dtx</TT>
and <TT>fmtcount.ins</TT>. To extract the code do:
<PRE>
latex fmtcount.ins
</PRE>
This will create the files <TT>fmtcount.sty</TT> and
<TT>fmtcount.perl</TT>, along with several <TT>.def</TT> files.
Place <TT>fmtcount.sty</TT> and the <TT>.def</TT> files somewhere
where LaTeX will find them (e.g.
<TT>texmf/tex/latex/fmtcount/</TT>) and place <TT>fmtcount.perl</TT>
somewhere where LaTeX2HTML
will find it (e.g. <TT>latex2html/styles</TT>). Remember to refresh
the TeX database (using <TT>texhash</TT> or <TT>mktexlsr</TT>
under Linux, for
other operating systems check the manual.)
<P>
<H1><A NAME="SECTION00040000000000000000">
Available Commands</A>
</H1>
<P>
The commands can be divided into two categories: those that
take the name of a counter as the argument, and those
that take a number as the argument.
<P>
<P>
<TT>\ordinal{</TT><EM>counter</EM><TT>}[</TT><EM>gender</EM><TT>]</TT>
<P>
This will print the value of a LaTeX counter <I>counter</I> as an
ordinal, where the macro
<P>
<TT>\fmtord{</TT><EM>text</EM><TT>}</TT>
<P>
is used to format the st, nd, rd, th bit. By default the ordinal is
formatted as a superscript, if the package option <TT>level</TT> is
used, it is level with the text. For example, if the current section
is 3, then <code>\ordinal{section}</code> will produce the output:
3<SUP>rd</SUP>. Note that the optional argument <I>gender</I>
occurs <I>at the end</I>. This argument may only take one of
the following values: <TT>m</TT> (masculine), <TT>f</TT>
(feminine) or <TT>n</TT> (neuter.) If <I>gender</I> is omitted,
or if the given gender has no meaning in the current language,
<TT>m</TT> is assumed.
<P>
<B>Notes:</B>
<OL>
<LI>the <TT>memoir</TT> class also defines a command called
<TT>\ordinal</TT> which takes a number as an argument instead of a
counter. In order to overcome this incompatiblity, if you want
to use the <TT>fmtcount</TT> package with the <TT>memoir</TT> class
you should use <TT>\FCordinal</TT> to access
<TT>fmtcount</TT>'s version of <TT>\ordinal</TT>, and use
<TT>\ordinal</TT> to use <TT>memoir</TT>'s version of that command.
<P>
</LI>
<LI>As with all commands which have an optional argument as the
last argument, if the optional argument is omitted, any spaces
following the final argument will be ignored. Whereas, if the
optional argument is present, any spaces following the optional
argument won't be ignored. so <code>\ordinal{section} !</code>
will produce: 3<SUP>rd</SUP>! whereas
<code>\ordinal{section}[m] !</code> will produce:
3<SUP>rd</SUP> !
</LI>
</OL>
<P>
<P>
<TT>\ordinalnum{</TT><EM>n</EM><TT>}[</TT><EM>gender</EM><TT>]</TT>
<P>
This is like <TT>\ordinal</TT> but takes an actual number rather than a
counter as the argument. For example: <code>\ordinalnum{3}</code> will
produce: 3<SUP>rd</SUP>.
<P>
<P>
<TT>\numberstring{</TT><EM>counter</EM><TT>}[</TT><EM>gender</EM><TT>]</TT>
<P>
This will print the value of <I>counter</I> as text. E.g. <code>\numberstring{section}</code> will produce: three. The optional
argument is the same as that for <TT>\ordinal</TT>.
<P>
<P>
<TT>\Numberstring{</TT><EM>counter</EM><TT>}[</TT><EM>gender</EM><TT>]</TT>
<P>
This does the same as <TT>\numberstring</TT>, but with initial letters in
uppercase. For example, <code>\Numberstring{section}</code> will produce:
Three.
<P>
<P>
<TT>\NUMBERstring{</TT><EM>counter</EM><TT>}[</TT><EM>gender</EM><TT>]</TT>
<P>
This does the same as <TT>\numberstring</TT>, but converts the string to
upper case. Note that
<code>\MakeUppercase{\NUMBERstring{</code><I>counter</I><code>}}</code> doesn't
work, due to the way that <TT>\MakeUppercase</TT> expands its
argument<A NAME="tex2html2"
HREF="#foot518"><SUP>1</SUP></A>.
<P>
<P>
<TT>\numberstringnum{</TT><EM>n</EM><TT>}[</TT><EM>gender</EM><TT>]</TT>
<P>
<P>
<TT>\Numberstringnum{</TT><EM>n</EM><TT>}[</TT><EM>gender</EM><TT>]</TT>
<P>
<P>
<TT>\NUMBERstringnum{</TT><EM>n</EM><TT>}[</TT><EM>gender</EM><TT>]</TT>
<P>
Theses macros work like
<TT>\numberstring</TT>, <TT>\Numberstring</TT> and <TT>\NUMBERstring</TT>,
respectively, but take an actual number
rather than a counter as the argument. For example:
<code>\Numberstringnum{105}</code> will produce: One Hundred and Five.
<P>
<P>
<TT>\ordinalstring{</TT><EM>counter</EM><TT>}[</TT><EM>gender</EM><TT>]</TT>
<P>
This will print the value of <I>counter</I> as a textual ordinal.
E.g. <code>\ordinalstring{section}</code> will produce: third. The
optional argument is the same as that for <TT>\ordinal</TT>.
<P>
<P>
<TT>\Ordinalstring{</TT><EM>counter</EM><TT>}[</TT><EM>gender</EM><TT>]</TT>
<P>
This does the same as <TT>\ordinalstring</TT>, but with initial letters in
uppercase. For example, <code>\Ordinalstring{section}</code> will produce:
Third.
<P>
<P>
<TT>\ORDINALstring{</TT><EM>counter</EM><TT>}[</TT><EM>gender</EM><TT>]</TT>
<P>
This does the same as <TT>\ordinalstring</TT>, but with all words in upper
case (see previous note about <TT>\MakeUppercase</TT>).
<P>
<P>
<TT>\ordinalstringnum{</TT><EM>n</EM><TT>}[</TT><EM>gender</EM><TT>]</TT>
<P>
<P>
<TT>\Ordinalstringnum{</TT><EM>n</EM><TT>}[</TT><EM>gender</EM><TT>]</TT>
<P>
<P>
<TT>\ORDINALstringnum{</TT><EM>n</EM><TT>}[</TT><EM>gender</EM><TT>]</TT>
<P>
These macros work like <TT>\ordinalstring</TT>, <TT>\Ordinalstring</TT> and
<TT>\ORDINALstring</TT>, respectively, but take an actual number rather
than a counter as the argument. For example,
<code>\ordinalstringnum{3}</code> will produce: third.
<P>
As from version 1.09, textual representations can be stored for
later use. This overcomes the problems encountered when you
attempt to use one of the above commands in <TT>\edef</TT>.
<P>
Each of the following commands takes a label as the first argument,
the other arguments are as the analogous commands above. These
commands do not display anything, but store the textual
representation. This can later be retrieved using
<P>
<TT>\FMCuse{</TT><EM>label</EM><TT>}</TT>
<P>
Note: with <TT>\storeordinal</TT> and <TT>\storeordinalnum</TT>, the
only bit that doesn't get expanded is <TT>\fmtord</TT>. So, for
example, <code>\storeordinalnum{mylabel}{3}</code> will be stored as
<code>3\relax \fmtord{rd}</code>.
<P>
<P>
<TT>\storeordinal{</TT><EM>label</EM><TT>}{</TT><EM>counter</EM><TT>}[</TT><EM>gender</EM><TT>]</TT>
<P>
<P>
<TT>\storeordinalstring{</TT><EM>label</EM><TT>}{</TT><EM>counter</EM><TT>}[</TT><EM>gender</EM><TT>]</TT>
<P>
<P>
<TT>\storeOrdinalstring{</TT><EM>label</EM><TT>}{</TT><EM>counter</EM><TT>}[</TT><EM>gender</EM><TT>]</TT>
<P>
<P>
<P>
<TT>\storeORDINALstring{</TT><EM>label</EM><TT>}{</TT><EM>counter</EM><TT>}[</TT><EM>gender</EM><TT>]</TT>
<P>
<P>
<TT>\storenumberstring{</TT><EM>label</EM><TT>}{</TT><EM>counter</EM><TT>}[</TT><EM>gender</EM><TT>]</TT>
<P>
<P>
<TT>\storeNumberstring{</TT><EM>label</EM><TT>}{</TT><EM>counter</EM><TT>}[</TT><EM>gender</EM><TT>]</TT>
<P>
<P>
<TT>\storeNUMBERstring{</TT><EM>label</EM><TT>}{</TT><EM>counter</EM><TT>}[</TT><EM>gender</EM><TT>]</TT>
<P>
<P>
<TT>\storeordinalnum{</TT><EM>label</EM><TT>}{</TT><EM>number</EM><TT>}[</TT><EM>gender</EM><TT>]</TT>
<P>
<P>
<TT>\storeordinalstring{</TT><EM>label</EM><TT>}{</TT><EM>number</EM><TT>}[</TT><EM>gender</EM><TT>]</TT>
<P>
<P>
<TT>\storeOrdinalstringnum{</TT><EM>label</EM><TT>}{</TT><EM>number</EM><TT>}[</TT><EM>gender</EM><TT>]</TT>
<P>
<P>
<TT>\storeORDINALstringnum{</TT><EM>label</EM><TT>}{</TT><EM>number</EM><TT>}[</TT><EM>gender</EM><TT>]</TT>
<P>
<P>
<TT>\storenumberstring{</TT><EM>label</EM><TT>}{</TT><EM>number</EM><TT>}[</TT><EM>gender</EM><TT>]</TT>
<P>
<P>
<TT>\storeNumberstring{</TT><EM>label</EM><TT>}{</TT><EM>number</EM><TT>}[</TT><EM>gender</EM><TT>]</TT>
<P>
<P>
<TT>\storeNUMBERstring{</TT><EM>label</EM><TT>}{</TT><EM>number</EM><TT>}[</TT><EM>gender</EM><TT>]</TT>
<P>
<P>
<P>
<TT>\binary{</TT><EM>counter</EM><TT>}</TT>
<P>
This will print the
value of <I>counter</I> as a binary number.
E.g. <code>\binary{section}</code> will produce: 11. The declaration
<P>
<TT>\padzeroes[</TT><EM>n</EM><TT>]</TT>
<P>
will ensure numbers are written to <I>n</I> digits, padding with
zeroes if necessary. E.g. <code>\padzeroes[8]\binary{section}</code>
will produce: 00000011. The default value for <I>n</I> is 17.
<P>
<P>
<TT>\binary{</TT><EM>n</EM><TT>}</TT>
<P>
This is like <TT>\binary</TT> but takes an actual number rather than a
counter as the argument. For example: <code>\binarynum{5}</code> will
produce: 101.
<P>
<P>
<TT>\octal{</TT><EM>counter</EM><TT>}</TT>
<P>
This will print the value of <I>counter</I> as an octal number. For
example, if you have a counter called, say <TT>mycounter</TT>, and
you set the value to 125, then <code>\octal{mycounter}</code> will produce:
177. Again, the number will be padded with zeroes if necessary,
depending on whether <TT>\padzeroes</TT> has been used.
<P>
<P>
<TT>\octalnum{</TT><EM>n</EM><TT>}</TT>
<P>
This is like <TT>\octal</TT> but takes an actual number rather than a
counter as the argument. For example: <code>\octalnum{125}</code> will
produce: 177.
<P>
<P>
<TT>\hexadecimal{</TT><EM>counter</EM><TT>}</TT>
<P>
This will print the value of <I>counter</I> as a hexadecimal number.
Going back to the counter used in the previous example,
<code>\hexadecimal{mycounter}</code> will produce: 7d. Again, the number
will be padded with zeroes if necessary, depending on whether
<TT>\padzeroes</TT> has been used.
<P>
<P>
<TT>\Hexadecimal{</TT><EM>counter</EM><TT>}</TT>
<P>
This does the same thing, but uses uppercase characters, e.g. <code>\Hexadecimal{mycounter}</code> will produce: 7D.
<P>
<P>
<TT>\hexadecimalnum{</TT><EM>n</EM><TT>}</TT>
<P>
<P>
<TT>\Hexadecimalnum{</TT><EM>n</EM><TT>}</TT>
<P>
These are like <TT>\hexadecimal</TT> and <TT>\Hexadecimal</TT>
but take an actual number rather than a counter as the
argument. For example: <code>\hexadecimalnum{125}</code> will
produce: 7d, and <code>\Hexadecimalnum{125}</code> will
produce: 7D.
<P>
<P>
<TT>\decimal{</TT><EM>counter</EM><TT>}</TT>
<P>
This is similar to <TT>\arabic</TT> but the number can be padded with
zeroes depending on whether <TT>\padzeroes</TT> has been used. For
example: <code>\padzeroes[8]\decimal{section}</code> will produce:
00000005.
<P>
<P>
<TT>\decimalnum{</TT><EM>n</EM><TT>}</TT>
<P>
This is like <TT>\decimal</TT> but takes an actual number rather than a
counter as the argument. For example:
<code>\padzeroes[8]\decimalnum{5}</code> will produce: 00000005.
<P>
<P>
<TT>\aaalph{</TT><EM>counter</EM><TT>}</TT>
<P>
This will print the value of <I>counter</I> as: a b ... z aa bb
... zz etc. For example, <code>\aaalpha{mycounter}</code> will
produce: uuuuu if <TT>mycounter</TT> is set to 125.
<P>
<P>
<TT>\AAAlph{</TT><EM>counter</EM><TT>}</TT>
<P>
This does the same thing, but uses uppercase characters, e.g. <code>\AAAlph{mycounter}</code> will produce: UUUUU.
<P>
<P>
<TT>\aaalphnum{</TT><EM>n</EM><TT>}</TT>
<P>
<P>
<TT>\AAAlphnum{</TT><EM>n</EM><TT>}</TT>
<P>
These macros are like <TT>\aaalph</TT> and <TT>\AAAlph</TT>
but take an actual number rather than a counter as the
argument. For example: <code>\aaalphnum{125}</code> will
produce: uuuuu, and <code>\AAAlphnum{125}</code> will
produce: UUUUU.
<P>
<P>
<TT>\abalph{</TT><EM>counter</EM><TT>}</TT>
<P>
This will print the value of <I>counter</I> as: a b ... z aa ab
... az etc. For example, <code>\abalpha{mycounter}</code> will
produce: du if <TT>mycounter</TT> is set to 125.
<P>
<P>
<TT>\ABAlph{</TT><EM>counter</EM><TT>}</TT>
<P>
This does the same thing, but uses uppercase characters, e.g. <code>\ABAlph{mycounter}</code> will produce: DU.
<P>
<P>
<TT>\abalphnum{</TT><EM>n</EM><TT>}</TT>
<P>
<P>
<TT>\ABAlphnum{</TT><EM>n</EM><TT>}</TT>
<P>
These macros are like <TT>\abalph</TT> and <TT>\ABAlph</TT>
but take an actual number rather than a counter as the
argument. For example: <code>\abalphnum{125}</code> will
produce: du, and <code>\ABAlphnum{125}</code> will
produce: DU.
<P>
<H1><A NAME="SECTION00050000000000000000">
Package Options</A>
</H1>
<P>
The following options can be passed to this package:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT"><TT>raise</TT></TD>
<TD ALIGN="LEFT">make ordinal st,nd,rd,th appear as superscript</TD>
</TR>
<TR><TD ALIGN="LEFT"><TT>level</TT></TD>
<TD ALIGN="LEFT">make ordinal st,nd,rd,th appear level with rest of
text</TD>
</TR>
</TABLE>
<P>
These can also be set using the command:
<P>
<P>
<TT>\fmtcountsetoptions</TT><code>{fmtord=</code><I>type</I><code>}</code>
<P>
where <I>type</I> is either <TT>level</TT> or
<TT>raise</TT>.
<P>
<H1><A NAME="SECTION00060000000000000000">
Multilingual Support</A>
</H1>
<P>
Version 1.02 of the <TT>fmtcount</TT> package now has
limited multilingual support. The following languages are
implemented: English, Spanish, Portuguese, French, French (Swiss)
and French (Belgian). German support was added in version
1.1.<A NAME="tex2html3"
HREF="#foot463"><SUP>2</SUP></A>Italian support was added in version 1.31.<A NAME="tex2html4"
HREF="#foot464"><SUP>3</SUP></A>
<P>
The package checks to see if the command <TT>\l@</TT><I>language</I> is
defined<A NAME="tex2html5"
HREF="#foot519"><SUP>4</SUP></A>,
and will load the code for those languages. The commands
<TT>\ordinal</TT>, <TT>\ordinalstring</TT> and <TT>\numberstring</TT> (and their
variants) will then be formatted in the currently selected language.
<P>
If the French language is selected, the French (France) version
will be used by default (e.g. soxiante-dix for 70). To
select the Swiss or Belgian variants (e.g. septente for 70) use:
<code>\fmtcountsetoptions{french=</code><I>dialect</I><code>}</code>
where <I>dialect</I> is either <TT>swiss</TT> or <TT>belgian</TT>.
You can also use this command to change the action of
<TT>\ordinal</TT>.
<code>\fmtcountsetoptions{abbrv=true}</code> to produce ordinals
of the form 2<SUP>e</SUP> or
<code>\fmtcountsetoptions{abbrv=false}</code> to produce ordinals
of the form 2<SUP>eme</SUP> (default).
<P>
The <TT>french</TT> and <TT>abbrv</TT> settings only have an
effect if the French language has been defined.
<P>
The male gender for all languages is used by default, however the
feminine or neuter forms can be obtained by passing <TT>f</TT> or
<TT>n</TT> as an optional argument to <TT>\ordinal</TT>,
<TT>\ordinalnum</TT> etc. For example:
<code>\numberstring{section}[f]</code>. Note that the optional argument
comes <I>after</I> the compulsory argument. If a gender is
not defined in a given language, the masculine version will
be used instead.
<P>
Let me know if you find any spelling mistakes (has been known
to happen in English, let alone other languages with which I'm not so
familiar.) If you want to add support for another language,
you will need to let me know how to form the numbers and ordinals
from 0 to 99999 in that language for each gender.
<P>
<H1><A NAME="SECTION00070000000000000000">
Configuration File <TT>fmtcount.cfg</TT></A>
</H1>
<P>
You can save your preferred default settings to a file called
<TT>fmtcount.cfg</TT>, and place it on the TeX path. These
settings will then be loaded by the <TT>fmtcount</TT>
package.
<P>
Note that if you are using the <TT>datetime</TT> package,
the <TT>datetime.cfg</TT> configuration file will override
the <TT>fmtcount.cfg</TT> configuration file.
For example, if <TT>datetime.cfg</TT> has the line:
<PRE>
\renewcommand{\fmtord}[1]{\textsuperscript{\underline{#1}}}
</PRE>
and if <TT>fmtcount.cfg</TT> has the line:
<PRE>
\fmtcountsetoptions{fmtord=level}
</PRE>
then the former definition of <TT>\fmtord</TT> will take
precedence.
<P>
<H1><A NAME="SECTION00080000000000000000">
LaTeX2HTML style</A>
</H1>
<P>
The LaTeX2HTML style file <TT>fmtcount.perl</TT> is provided.
The following limitations apply:
<P>
<UL>
<LI><TT>\padzeroes</TT> only has an effect in the preamble.
<P>
</LI>
<LI>The configuration file
<TT>fmtcount.cfg</TT> is currently ignored. (This is because
I can't work out the correct code to do this. If you
know how to do this, please let me know.) You can however
do:
<PRE>
\usepackage{fmtcount}
\html{\input{fmtcount.cfg}}
</PRE>
This, I agree, is an unpleasant cludge.
<P>
</LI>
</UL>
<P>
<H1><A NAME="SECTION00090000000000000000">
Acknowledgements</A>
</H1>
<P>
I would like to thank my mother for the French and Portuguese
support and my Spanish dictionary for the Spanish support.
Thank you to K. H. Fricke for providing me with the German
translations and to Edoardo Pasca for providing me with the
Italian translations.
<P>
<H1><A NAME="SECTION000100000000000000000">
Troubleshooting</A>
</H1>
<P>
There is a FAQ available at:
<TT><A NAME="tex2html6"
HREF="http://theoval.cmp.uea.ac.uk/~nlct/latex/packages/faq/">http://theoval.cmp.uea.ac.uk/~nlct/latex/packages/faq/</A></TT>.
<P>
<BR><HR><H4>Footnotes</H4>
<DL>
<DT><A NAME="foot518">...
argument</A><A
HREF="fmtcount-manual.html#tex2html2"><SUP>1</SUP></A></DT>
<DD>See all the various postings to
<TT>comp.text.tex</TT> about <TT>\MakeUppercase</TT>
</DD>
<DT><A NAME="foot463">...
1.1.</A><A
HREF="fmtcount-manual.html#tex2html3"><SUP>2</SUP></A></DT>
<DD>Thanks to K. H. Fricke for supplying the information.
</DD>
<DT><A NAME="foot464">... 1.31.</A><A
HREF="fmtcount-manual.html#tex2html4"><SUP>3</SUP></A></DT>
<DD>Thanks to
Edoardo Pasca for supplying the information.
</DD>
<DT><A NAME="foot519">...
defined</A><A
HREF="fmtcount-manual.html#tex2html5"><SUP>4</SUP></A></DT>
<DD>this will be true if you have loaded <TT>babel</TT>
</DD>
</DL>
<BR><HR>
<ADDRESS>
<A href="http://theoval.cmp.uea.ac.uk/~nlct/">Nicola L. C. Talbot</A>.
<A HREF="http://www.cmp.uea.ac.uk/">School of Computing Sciences</A>.
<A HREF="http://www.uea.ac.uk/">University of East Anglia.</A>
Last Modified: 2009-10-02
</ADDRESS>
</BODY>
</HTML>
|