进度条卡在 pgfgantt 中

进度条卡在 pgfgantt 中

我在little-endian格式ganttchart环境中遇到了进度条的一些意外行为。例如,以下 MWE:

\documentclass[crop]{standalone}

\usepackage{tikz}
\usepackage{pgfgantt}

\begin{document}
\begin{ganttchart}[
expand chart=30cm,
time slot format=little-endian
]{01-10-2023}{01-12-2024}

        \ganttbar[inline,progress=10]{}{01-11-2023}{01-10-2024}\\
        \ganttbar[inline,progress=20]{}{01-11-2023}{01-10-2024}\\
        \ganttbar[inline,progress=30]{}{01-11-2023}{01-10-2024}\\
        \ganttbar[inline,progress=40]{}{01-11-2023}{01-10-2024}\\
        \ganttbar[inline,progress=50]{}{01-11-2023}{01-10-2024}\\
        \ganttbar[inline,progress=60]{}{01-11-2023}{01-10-2024}\\
        \ganttbar[inline,progress=70]{}{01-11-2023}{01-10-2024}\\
        \ganttbar[inline,progress=80]{}{01-11-2023}{01-10-2024}\\

\end{ganttchart}
\end{document}

我发现以下输出: 在此处输入图片描述

显示的进度条已经达到最大值,不是请求的进度,日志包含以下错误:

! Dimension too large.
<recently read> \pgfmath@x 
    
l.20 ...ine,progress=50]{}{01-11-2023}{01-10-2024}
                                                  \\  
I can't work with sizes bigger than about 19 feet.
Continue and I'll use the largest value I can.

所有受影响的 ganttbar 调用都会重复出现此错误。对于expand chart我能想到的所有合理尺寸(即厘米级)和所有合理的图表限制(即年份级),问题仍然存在。我无法为以整数测量的图表(例如等)重现此问题\begin{ganttchart}[...]{1}{5}。非常感谢大家的帮助,谢谢!

相关内容