[XeTeX] bug fmtcount with xelatex?

Ulrike Fischer news3 at nililand.de
Wed Nov 5 14:18:57 CET 2014


Am Tue, 4 Nov 2014 17:34:04 +0100 schrieb François Patte:

> Try this MWE: with pdflatex the result is correct, with xelatex for
> the second chapter I get:
 
> DEUXIèME instead of: DEUXIÈME
 
> How to correct this?

\`e is expanded to a \char command before \uppercase can see it and
\uppercase/MakeUppercase don't affect \char. 

Imho the relevant  \`e in fc-french.def should be protected, but you
can also make the commands yourself robust:

\documentclass[11pt,twoside]{report}
\usepackage{ifluatex}
\ifluatex
\usepackage{fontspec}
\else
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\fi

\usepackage[french]{babel}
\usepackage[french]{fmtcount}
\usepackage{etoolbox}

\begin{document}
\uppercase{éè \'e \`e \char "00E8} 

\ORDINALstringnum{2}

\robustify\`
\robustify\'

\ORDINALstringnum{2}
\end{document}




-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/



More information about the XeTeX mailing list