# French with Elsarticle.cls

Good night,

I use the package elsarticle for a publication in an Elsevier journal. I have problem handling French.

\documentclass[review]{elsarticle}
\usepackage[T1]{fontenc}
\usepackage[english,francais]{babel}


Which cause the error message :

Package frenchb.ldf Warning: Figures' and tables' captions might look like
(frenchb.ldf)                Figure 1:' which is wrong in French.
(frenchb.ldf)                Check your class or packages to change this;
(frenchb.ldf)                reported on input


What should I do ? Thanks for your help.

• Did you try \frenchbsetup{CustomiseFigTabCaptions=true} in your preamble? – Bernard May 28 '16 at 22:41

I'm not sure if elsarticle is meant to be used with languages different from English, because several English words are hard coded in it.

Here is a possibly not complete patch for making the class into using French for the tags.

\documentclass{elsarticle}
\usepackage[T1]{fontenc}
\usepackage[english,francais]{babel}

\usepackage{regexpatch}

\makeatletter
\xpatchcmd{\abstract}{Abstract}{\abstractname}{}{}
\regexpatchcmd*{\@makecaption}{:}{\cA:}{}{}
\xpatchcmd*{\keyword}{Keywords}{Mots cl\'es}{}{}
\regexpatchcmd*{\keyword}{:}{\cA:}{}{}
\xpatchcmd{\printFirstPageNotes}
{}{}
\xpatchcmd{\printFirstPageNotes}
{}{}
\regexpatchcmd*{\printFirstPageNotes}{:}{\cA:}{}{}
\makeatother

\begin{document}
\begin{frontmatter}
\title{Titre}
\author{Auteur}
\begin{abstract}
Le r\'esum\'e
\end{abstract}
\begin{keyword}
Les mots cl\'es
\MSC{AAA}
\end{keyword}
\end{frontmatter}

\section{Aaa}

Texte

\begin{figure}[htp]
\caption{L\'egende}
\end{figure}

\begin{table}[htp]
\caption{L\'egende}
\end{table}
\end{document}


The annoying warning will still show up. You can remove it by adding also

\usepackage{silence}

\WarningFilter{frenchb.ldf}{Figure}
`