![Pgfgant 删除月份标签](https://linux22.com/image/472808/Pgfgant%20%E5%88%A0%E9%99%A4%E6%9C%88%E4%BB%BD%E6%A0%87%E7%AD%BE.png)
我的项目持续 6 年,我想实现一个在 A4 页面宽度下仍可读的纵向格式的甘特图。
我想删除甘特图月份行中的标签(数字),只保留图表中的空单元格pgfgantt
。
\documentclass{article}
\RequirePackage{pgfgantt}
\begin{document}
\begin{ganttchart}[time slot format=isodate-yearmonth,
vgrid={dotted,draw=none,draw=none}, %hgrid=true,
x unit=0.22cm, % NOTE: width for a single month
y unit chart = 0.6cm, bar height=0.6,
y unit title = 0.5cm, title height=1,
include title in canvas=false,
time slot unit=month
]{2024-09}{2030-09} %project duration
% temporal marks
\gantttitlecalendar[title/.style={fill=black!30,draw=black}]{year} \\
\gantttitlecalendar[title/.style={fill=black!20,draw=black}]{month} \\
\end{ganttchart}
\end{document}