I get this warning:
No support for \ordinal for language 'UKenglish' on input line xxx
The input line refers to the generated *.toc file:
\contentsline {chapter}{Bibliography}{117}{hiddenchapter.2}
There are lots of similar lines in that file, only this one (it is the last line of the file) causes the warning. So I am unsure whether it is directly caused by this line, of the referenced input line is incorrect...
I tried looking around on the Internet for clues, but could not any details about this warning.
So, what does this warning exactly mean? What might be the cause of it? And how can I prevent it? (I do not like having warnings, so I would really like to get rid of it, if possible!)
A minimal example that triggers the warning is:
\documentclass[UKenglish]{book}
\listfiles
\usepackage{babel,datetime,fancyhdr}
\fancyfoot[CO,CE]{\today}
\pagestyle{fancy}
\let\monthnameUKenglish\monthnameenglish
\let\dayofweeknameUKenglish\dayofweeknameenglish
\let\dayofweeknameidUKenglish\dayofweeknameidenglish
\begin{document}
\newpage
\today
\end{document}
The \listfiles
output of this minimal example is:
*File List*
book.cls 2007/10/19 v1.4h Standard LaTeX document class
bk10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
babel.sty 2013/05/16 v3.9f The Babel package
english.ldf 2012/08/20 v3.3p English support from the babel system
datetime.sty 2010/09/21 v2.58 Date Time Package
fmtcount.sty 2012/10/24 v2.02
ifthen.sty 2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)
keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
etoolbox.sty 2011/01/03 v2.1 e-TeX tools for LaTeX
etex.sty 1998/03/26 v2.0 eTeX basic definition package (PEB)
fcprefix.sty 2012/09/28
fcnumparser.sty 2012/09/28
amsgen.sty 1999/11/30 v2.0
fc-english.def 2012/06/18
dt-UKenglish.def 2010/07/07
fancyhdr.sty
fc-UKenglish.def 2012/06/18
pdfTeX is version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian)
Additional notes:
- Not using the
datetime
package seems to get rid of the warning..? - Specifying the language in
\documentclass
instead of\usepackage{babel}
and usingenglish
instead ofUKenglish
solves the warning. But obviously, I would like to use theUKenglish
orbritish
settings.
\ordinal
is not a command defined by the latex kernel, so you need to load some package that defines it, e.g.fmtcount
or same class that defines it, e.g.memoir
. The usage and syntax of these commands is different, so we need to know what your code looks like to be able to answer the question.datetime
loadsfmtcount
\tableofcontents
command the warning disappears as well. It looks like it has also something to do with the amount of pages as well: I can 'solve' the warning by removing any of the chapters..?!