![在 beamer 框架中使用 pgtgantt 和 babel 包](https://linux22.com/image/431100/%E5%9C%A8%20beamer%20%E6%A1%86%E6%9E%B6%E4%B8%AD%E4%BD%BF%E7%94%A8%20pgtgantt%20%E5%92%8C%20babel%20%E5%8C%85.png)
我想用装有法语的 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 一起工作吗?