我有这个 :
\documentclass[translator={frenchb}]{beamer}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[frenchb]{babel}
\PassOptionsToPackage{frenchb}{translator}
\usepackage{pgfgantt}
\usepackage{tikz}
%\usepackage{concrete}
\usetheme{Goettingen}
\begin{document}
\begin{frame}[fragile]
\uselanguage{French}
\languagepath{French}
\scalebox{.42}{
\begin{tikzpicture} % optional
\begin{ganttchart}[x unit=2.2mm,
y unit chart=1.2cm,
time slot format=isodate,
]
{2014-04-14}{2014-07-11}
\gantttitlecalendar{month=name} \\
\end{ganttchart}
\end{tikzpicture}
}
\end{frame}
\end{document}
我无法用法语打印月份名称。通常我只能使用选项加载translator
包frenchb
(查看这个答案)。此包已由 beamer 加载,我尝试过,\PassOptionsToPackage{frenchb}{translator}
但不起作用。我该如何修复?
答案1
\PassOptionsToPackage
必须使用前包已加载:
\PassOptionsToPackage{frenchb}{translator}
\documentclass{beamer}
或者frenchb
可以作为全局选项给出:
\documentclass[frenchb]{beamer}