skafdasschaf / latex-pgfgantt

A LaTeX package for drawing gantt charts
LaTeX Project Public License v1.3c
27 stars 0 forks source link

Real World Application Example #11

Open bgarisn-work opened 3 years ago

bgarisn-work commented 3 years ago

It would be really nice to have in the document a real-world example of say a project that takes up a year or is multi-year so that various settings could be understood better.

The questions below are all issues I've struggled with when using this package:

%------------------------------------------------------------ % chart %------------------------------------------------------------ \begin{ganttchart} {2021.01.01} % start date {2022.12.31} % end date %-------------------------------------------------- % year title bar \gantttitlecalendar[ title label font={\bfseries} ] {2021.01.01} % start date {2022.12.31} % end date
{year} \ %-------------------------------------------------- % month title bar \gantttitlecalendar
[ title label font={\itshape\scriptsize} ] {2021.01.01} % start date {2022.12.31} % end date
{month=shortname} \ %-------------------------------------------------- % group \ganttgroup[ group/.append style={draw=black, fill=blue!50} ] {Group 1} {2021.01.01} % start date {2021.03.01} % end date \ %-------------------------------------------------- % bar \ganttbar[ bar/.append style={draw=black, fill=blue!25} ] {Task 1} {2021.01.15} {2021.02.15} \
%-------------------------------------------------- % milestone \ganttmilestone[ milestone/.append style={draw=black, fill=blue!25} ] {Milestone 1} {2021.04.15} \ %-------------------------------------------------- % group w/ continuation \ganttgroup[ group/.append style={draw=black, fill=green!50} ] {Group 2} {2021.01.01} % start date {2021.03.01} % end date \ganttgroup[ group/.append style={draw=black, fill=green!50} ] {} {2021.05.01} % start date {2022.06.01} % end date \ %-------------------------------------------------- % bar w/ continuation \ganttbar[ bar/.append style={draw=black, fill=green!25} ] {Task 2} {2021.06.15} {2022.02.15} \ganttbar[ bar/.append style={draw=black, fill=green!25} ] {} {2022.04.15} {2022.05.15} \ %-------------------------------------------------- % milestone w/ continuation \ganttmilestone[ milestone/.append style={draw=black, fill=green!25} ] {Milestone 2} {2022.04.15} \ganttmilestone[ milestone/.append style={draw=black, fill=green!25} ] {} {2022.05.15} \ %-------------------------------------------------- \end{ganttchart}



I am not bad at programming but the LaTeX coding of packages is still something I struggle with.