ガントチャートに非標準週と現在の「サイクル」を表示する

ガントチャートに非標準週と現在の「サイクル」を表示する

私の仕事の週は土曜日から金曜日の夜までで、すべてをサイクルと週番号に基づいてスケジュールします。各サイクルはちょうど 4 週間です (昨年はずれを修正するために閏週がありました...)。サイクル 2 の 4 週目の終わりは 2016 年 2 月 26 日です。

私はプロジェクトの詳細を示すガントチャートを作成しようとしています。いつもの1 週間内に収まるもの(土曜日から金曜日までですが、30% は複数週にまたがり、週の途中で終了または開始します。これらは不規則な性質があるため、私にとっては特に計画を立てることが重要です。

また、土曜日と日曜日を緑色で表示し、金曜日を赤色で表示するようにしています。スタイルは十分ですが、何も揃っておらず、今後の月のためにこれを更新する必要があるたびに再調整するのは面倒です。この作業例を次の場所に保存しました。 https://www.overleaf.com/read/cfcjfvcxxcqn

\documentclass[12pt,letterpaper]{article}
\usepackage[a4paper,landscape,margin=3cm]{geometry}
\usepackage{pgfkeys,pgfcalendar}
\usepackage{pgfgantt}
\usepackage{advdate}
\usepackage{scrdate}
\usepackage{datenumber}

\begin{document}

\begin{ganttchart}[
    time slot format=isodate,
    hgrid=true,
    vgrid={ {*{3}{blue, dashed}},  *2{red}, *1{green}, *{5}{blue, dashed}},
    today={\the\year-\the\month-\the\day}
    ]{2016-01-26}{2016-02-26}
 \gantttitlecalendar{month=name} \\

\gantttitle{C.3}{3}
\gantttitle{C.4}{26}\\
%
\gantttitle{W 1}{6} 
\gantttitle{W 2}{7} 
\gantttitle{W 3}{7} 
\gantttitle{W 4}{7} \\
%

\ganttbar{Item 1}{2016-01-30}{2016-02-05} \\
\ganttbar{Item 2}{2016-01-30}{2016-02-05} 
\ganttnewline[thick, blue]
\ganttbar{Item 3}{2016-02-06}{2016-02-12} \\
\ganttbar{Item 4}{2016-02-06}{2016-02-12} 
\ganttnewline[thick, blue]
\ganttbar{Item 5}{2016-02-13}{2016-02-19} \\
\ganttbar{Item 6}{2016-02-13}{2016-02-19}
\ganttnewline[thick, blue]
\ganttbar{Item 7}{2016-02-20}{2016-02-26}\\
\ganttbar{Item 8}{2016-02-20}{2016-02-26}

\end{ganttchart}
\end{document}

関連情報