In document class Article, the normal page numbering, for example is
1
I would like to have the page number look like:
Page first
instead of:
1
How can I do it?
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityIn document class Article, the normal page numbering, for example is
1
I would like to have the page number look like:
Page first
instead of:
1
How can I do it?
This uses the ordinal string of the ordinal number, i.e. 1st
is first
, etc, set in the page footer, using fmtcount
and fancyhdr
.
Do I recommend such a numbering style? No, it does not look nice, but I am not from the Federal Bureau of Aesthetics ;-)
\documentclass{article}
\usepackage{fmtcount}
\usepackage{blindtext}
\usepackage{fancyhdr}
\renewcommand{\headrulewidth}{0pt}
\fancypagestyle{plain}{%
\fancyhf{}
\cfoot{Page \ordinalstring{page}}
}
\begin{document}
\pagestyle{plain}
\blindtext[50]
\end{document}
Like this:
.....
\usepackage{fmtcount}
.....
\begin{document}
.....
Page\,\ordinal{page}
.....
Of course, as Christian Hupfer pointed, you normally use such a code when setting the headers/footers formatting with fancyhdr
or titleps
. Note that fmtcount
is language-aware for some languages: english, french, german; italian, portuguese, spanish.
I'll give the titleps
way:
\usepackage{babel}
......
\renewpagestyle{plain}
\setfoot{}{\pagename\,\ordinal{page}}{}
\pagestyle{plain}
.....
\Page
? Did I miss a command named \Page
? (+1)
– user31729
Jan 10 '17 at 22:11
babel
.
– Bernard
Jan 10 '17 at 22:19
Page second
andPage third
etc? This can get really tedious. Using something likefmtcount
package andfancyhdr
it is easier. – user31729 Jan 10 '17 at 22:03