[pstricks] pst-gantt hack to turn it into a "timeline"?

Hubert Lam hubert at lamfamily.info
Mon Oct 28 23:34:18 CET 2013


Herbert,

You are a national treasure! Thank you!

[cid:Image925.png at 1420133bd4639e]

Sent from Windows Mail

From: Herbert Voss<mailto:Herbert.Voss at FU-Berlin.DE>
Sent: ‎Tuesday‎, ‎29‎ ‎October‎ ‎2013 ‎12‎:‎22‎ ‎AM
To: pstricks at tug.org<mailto:pstricks at tug.org>

Am 28.10.2013 06:05, schrieb Hubert Lam:

> A quick question: has anyone been able to place different \PstGanttTask sequentially after one another, i.e. not on the next line? (see attached PDF)
>
> I realise doing this would not make it a Gantt Chart at all but rather a stacked horizontal column chart. However, the fact that pst-gantt properly calculates distances for dates etc is so handy for it to be turned into a time line.

\documentclass{report}
\usepackage{pst-gantt}
\makeatletter
\def\Reset{%
   \advance\pst at GanttTaskCnt by \@ne}
\makeatother
\begin{document}

  \begin{PstGanttChart}[yunit=1.5,
  ChartUnitIntervalName=KW,ChartUnitBasicIntervalName=KW,
  ChartModulo,ChartModuloValue=52,
  TaskUnitIntervalValue=14,TaskUnitType=KW,ChartStartInterval=49,
  ChartShowIntervals]{3}{8}
  \PstGanttTask[TaskInsideLabel={Task 1}]{0}{1}\Reset
  \PstGanttTask[TaskInsideLabel={Task 2}]{3}{4}
  \PstGanttTask[TaskInsideLabel={Task 3}]{2}{2}
  \PstGanttTask[TaskInsideLabel={Task 4}]{3}{5}
  \end{PstGanttChart}

\end{document}


Herbert

_______________________________________________
PSTricks mailing list
PSTricks at tug.org
http://tug.org/mailman/listinfo/pstricks
archive: http://www.tug.org/pipermail/pstricks/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20131028/cc9e62a6/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Image925.png
Type: image/png
Size: 158708 bytes
Desc: Image925.png
URL: <http://tug.org/pipermail/pstricks/attachments/20131028/cc9e62a6/attachment-0001.png>


More information about the PSTricks mailing list