
Table of Contents
Introduction
Today, I found an interesting (LaTeX) package, pgfgantt. This package provides a ganttchart environment and, as its name indicates, can produce Gantt charts.
Usage
The framework of using the package can be illustrated as
usepackage{pgfgantt}
...
begin{ganttchart}[OPTIONS]{STARTING}{ENDING}
TITLE
CHARTELEMENT
end{ganttchart}
where
OPTIONScan betime slot formatwith candidates:simple/isodate/isodate-yearmonth/isodate-year/little-endian/middle-endian/big-endian.newline shortcutcan turn\into a new line break, equivalent toganttnewline.vgrid/hgridspecifies the presence and appearance of the vertical/horizontal grids.todaycan indidate the current day/month/year by a vertical rule at the provided time.today labelcan specify the label fortoday.inlinecan put the labels inside the corresponding bars.x unit/y unitx unit title/y unit titlex unit chart/y unit chartexpand chartcan automatically expand the chart horizontally, e.g.,textwidth.
STARTINGis the starting date of the chart.ENDINGis the ending date of the chart.TITLEcan begantttitle[OPTIONS]{LABEL}{NUMBEROFTIMESLOTS}gantttitlelist[OPTIONS]{LABELLIST}{LENGTHOFEACHELEMENT}defines a series ofgantttitlein a batch way.gantttitlecalendar[OPTIONS]{CALENDARLINES}withCALENDARLINESa comma-separated list of lines, e.g.,decade,year,month=name/shortname,day,week,weekday=name/shortname, etc.gantttitlecalendar*[OPTIONS]{STARTING}{ENDING}{CALENDARLINES}is similar togantttitlecalendar[OPTIONS]{CALENDARLINES}but constrained to a range defined bySTARTINGandENDING.
CHARTELEMENTis predefined chart elements as follows.ganttgroup[OPTIONS]{LABEL}{STARTING}{ENDING}combines several subtasks (bars) into a single task.ganttbar[OPTIONS]{LABEL}{STARTING}{ENDING}indicates the duration of a task/subtask.ganttmilestone[OPTIONS]{LABEL}{TIME}signifies a milestone, e.g., the completion of a task.ganttlinkedgroup[OPTIONS]{LABEL}{STARTING}{ENDING}is similar toganttgroup[OPTIONS]{LABEL}{STARTING}{ENDING}but additionally draws a link from the previous element.ganttlinkedbar[OPTIONS]{LABEL}{STARTING}{ENDING}is similar toganttbar[OPTIONS]{LABEL}{STARTING}{ENDING}but additionally draws a link from the previous element.ganttlinkedmilestone[OPTIONS]{LABEL}{TIME}is similar toganttmilestone[OPTIONS]{LABEL}{TIME}but additionally draws a link from the previous element.
CHARTELEMENThas an interesting optionprogress, whose value can benone/today/PERCENTILE.




近期评论