Creating a Gantt chart using the pgfgantt package, with days of the weeks as the titles, can be done using title list options as demonstrated in the package manual. But it doesn't seem to agree with beamer:
\documentclass{beamer}
%\documentclass{article}
\usepackage{pgfgantt}
\usepackage{pgfcalendar}
\begin{document}
\begin{frame}
\begin{ganttchart}[x unit = 3em]{7}
\gantttitlelist[title list options={var=\y, evaluate=\y as \x using "\pgfcalendarweekdayshortname{\y}"}]{0,...,6}{1}\\
\end{ganttchart}
\end{frame}
\end{document}
Error message:
! Use of \\gantttitlelist doesn't match its definition.
\kernel@ifnextchar ...rved@d =#1\def \reserved@a {
#2}\def \reserved@b {#3}\f...
l.11 \end{frame}
? x
Is there any workarounds?