我想用装有法语的 babel 包在 beamer 框架中放置一个甘特图。
\documentclass[10pt,fleqn]{beamer}
\usepackage[french]{babel}
\usepackage{pgfgantt}
\begin{document}
\begin{frame}
\frametitle{Gantt charts}
\begin{ganttchart}[
x unit=0.22cm,
y unit title=0.5cm,
y unit chart=0.5cm,
title label font=\fontsize{4}{5}\selectfont,
bar label font=\tiny,
group label font=\tiny\bfseries,
milestone label font=\tiny\itshape,
]{1}{40}
\gantttitle{2020}{4}
\gantttitle{2021}{12}
\gantttitle{2022}{12}
\gantttitle{2023}{12}
\\
\gantttitlelist{1,...,40}{1} \\
\ganttgroup{Groupe 1}{1}{7} \\
\ganttbar{Tâche 1}{1}{2} \\
\ganttlinkedbar{Tâche 2}{3}{7} \ganttnewline
\ganttmilestone{Publication}{7} \ganttnewline \\
\ganttbar{Tâche 3}{8}{12}
\ganttlink{elem2}{elem3}
\ganttlink{elem3}{elem4}
\end{ganttchart}
\end{frame}
\end{document}
\end{frame}
Babel 不能与 beamer 框架中的 pgfgantt 一起工作吗?