I want to compile a letter in French using KOMAScript (2018/03/30 v3.25) and choosing 'french' as an option for babel. When I am running the following minimal example using TeXLive 2018 on a Mac,
\documentclass[parskip=full+]{scrlttr2}
\usepackage[french]{babel}
\begin{document}
\begin{letter}{Destinataire}
\opening{Bonjour,}
blablabla
\end{letter}
\end{document}
I am getting the following error messages:
(/usr/local/texlive/2018/texmf-dist/tex/generic/babel/txtbabel.def))
-29- Attention : le moteur TeX en utilisation avec des fontes CM
(comme dans ce format TeX) est insuffisant pour la cÈsure
des mots accentuÈs (comme en franÁais).
-52- Erreur : e-french package ne fonctionne pas avec une classe de document si minimaliste, dÈsolÈ !
) ) ) )
(\end occurred when \ifx on line 459 was incomplete)
(\end occurred when \ifx on line 459 was incomplete)
No pages of output.
Is there any known incompatibility between the french babel option and scrlttr2 and what needs to be done to use scrlttr2 with the french option ? I don't have any issues using english or german as options.
\usepackage[T1]{fontenc}
I can even get rid of the only warning (only if you use pdfLaTeX, with LuaLaTeX or XeLaTeX that should not be necessary). The output looks fine. Is your system up to date (your KOMA script is recent, but maybe other packages are outdated), i.e. did you check for updates? – moewe Nov 5 '18 at 15:41KOMA-Script
manual states (p. 499): “If you use thebabel
package to switch tofrench
, problems can occasionally occur. Withbabel
, however, you can usually deactivate changes to a language in a targeted manner.” I’m not sure if this helps. – Ruixi Zhang Nov 5 '18 at 15:49frenchb
in place offrench
and report if it changes something. – user4686 Nov 5 '18 at 16:35