[pstricks] Question regarding pst-gantt
Peter Johnston
p.johnston at griffith.edu.au
Mon Jan 25 10:33:35 CET 2010
Dear PSTrickers,
I recently downloaded the pst-gantt package to try and create a
gantt chart. However, I am
having problems getting started. I typed in one of the examples from the
user guide and put
what I thought was the correct latex around it as follows:
\documentclass[12pt]{article}
\usepackage{pst-gantt}
\begin{document}
\begin{PstGanttChart}[yunit=1.5,ChartUnitIntervalName=Year,
ChartUnitBasicIntervalName=Month,
TaskUnitIntervalValue=12,TaskUnitType=Year,
ChartShowIntervals]{4}{4}
\PstGanttTask[TaskInsideLabel={Task 1}]{0}{1}
\PstGanttTask[TaskInsideLabel={Task 2},TaskUnitType=Month]{6}{24}
\PstGanttTask[TaskInsideLabel={Task 3}]{2}{2}
\PstGanttTask[TaskInsideLabel={Task 4}]{3}{1}
\end{PstGanttChart}
\end{document}
When I run the code through latex, I get the following output and error:
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
entering extended mode
(./testg.tex
LaTeX2e <2003/12/01>
Babel <v3.8d> and hyphenation patterns for american, french, german,
ngerman, b
ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch,
esperanto, e
stonian, finnish, greek, icelandic, irish, italian, latin, magyar,
norsk, polis
h, portuges, romanian, russian, serbian, slovak, slovene, spanish,
swedish, tur
kish, ukrainian, nohyphenation, loaded.
(/sw/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(/sw/share/texmf-dist/tex/latex/base/size12.clo))
(/sw/share/texmf-dist/tex/latex/pstricks/pst-gantt.tex
(/sw/share/texmf-dist/tex/generic/pstricks/pstricks.tex
`PSTricks' v1.04 <2004/06/22> (tvz)
(/sw/share/texmf-dist/tex/generic/pstricks/pstricks.con))
(/sw/share/texmf-dist/tex/generic/pstricks/pst-node.tex
v97 patch 11, 2000/11/09)
(/sw/share/texmf-dist/tex/generic/pstricks/pst-grad.tex v1.04, 2004/06/24)
(/sw/share/texmf-dist/tex/generic/xkeyval/pst-xkey.tex
(/sw/share/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/sw/share/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/sw/share/texmf-dist/tex/generic/xkeyval/keyval.tex))))
(/sw/share/texmf-dist/tex/generic/multido/multido.tex v1.41, 2004/05/18
<tvz>)
`pst-gantt' v0.2, 2009/05/12 (Denis Girou and Herbert Voss)
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.37 \define at boolkey[psset]{pst-gantt}[P
st@]{PstPicture}[true]{}
?
Have I set up the calling file incorrectly? Am I missing something?
I am using the tetex package which comes via fink under mac OS 10.5.
Any insights would be much appreciated.
Thank you,
Peter Johnston.
-------------------------------------------------------------------------
Assoc. Prof. Peter Johnston
Associate Professor in Applied Mathematics Phone (07) 3735 7748
School of Biomolecular and Physical Science Fax (07) 3735 7656
Griffith University
Nathan
Queensland 4111
AUSTRALIA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20100125/d48e2793/attachment.html>
More information about the PSTricks
mailing list