Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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!

share|improve this question
    
Use the silence package for avoiding the warning. –  egreg Oct 18 '12 at 10:40

1 Answer 1

up vote 8 down vote accepted

You need to protect \formatdate:

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

Result

share|improve this answer
    
thanks! never had anything that's required a \protect before, they should occur to me now... –  Sam Mason Oct 19 '12 at 12:40

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.