7

Using the \formatdate macro from the datetime package within a \date definition seems to break when using the memoir class. Is this just something strange that I'm doing because it seems reasonable. A minimal example of this is:

\documentclass{memoir}
\usepackage{datetime}
\title{Dummy}
\date{\formatdate{1}{1}{2001}}
\begin{document}
\maketitle
\end{document}

causes pdflatex to complain saying:

Package fmtcount Warning: \ordinal already defined use \FCordinal instead. on input line 430.

(/usr/local/texlive/2012/texmf-dist/tex/latex/fmtcount/fc-english.def))))
! Incomplete \iffalse; all text was ignored after line 4.

I'm obviously doing something more complicated in reality and can work around this bug, but it's a bit unexpected!

1
  • Use the silence package for avoiding the warning.
    – egreg
    Oct 18, 2012 at 10:40

1 Answer 1

9

You need to protect \formatdate:

\documentclass{memoir}
\usepackage{datetime}
\title{Dummy}
\date{\protect\formatdate{1}{1}{2001}}
\begin{document}
\maketitle
\end{document}

Result

1
  • thanks! never had anything that's required a \protect before, they should occur to me now...
    – Sam Mason
    Oct 19, 2012 at 12:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .