<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Times New Roman, Times, serif">Dear PSTrickers,<br>
<br>
I recently downloaded the pst-gantt package to try and create a
gantt chart. However, I am<br>
having problems getting started. I typed in one of the examples from
the user guide and put<br>
what I thought was the correct latex around it as follows:<br>
<br>
\documentclass[12pt]{article}<br>
\usepackage{pst-gantt}<br>
\begin{document}<br>
\begin{PstGanttChart}[yunit=1.5,ChartUnitIntervalName=Year,<br>
ChartUnitBasicIntervalName=Month,<br>
TaskUnitIntervalValue=12,TaskUnitType=Year,<br>
ChartShowIntervals]{4}{4}<br>
\PstGanttTask[TaskInsideLabel={Task 1}]{0}{1}<br>
\PstGanttTask[TaskInsideLabel={Task 2},TaskUnitType=Month]{6}{24}<br>
\PstGanttTask[TaskInsideLabel={Task 3}]{2}{2}<br>
\PstGanttTask[TaskInsideLabel={Task 4}]{3}{1}<br>
\end{PstGanttChart}<br>
\end{document}<br>
<br>
When I run the code through latex, I get the following output and error:<br>
<br>
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)<br>
entering extended mode<br>
(./testg.tex<br>
LaTeX2e <2003/12/01><br>
Babel <v3.8d> and hyphenation patterns for american, french,
german, ngerman, b<br>
ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch,
esperanto, e<br>
stonian, finnish, greek, icelandic, irish, italian, latin, magyar,
norsk, polis<br>
h, portuges, romanian, russian, serbian, slovak, slovene, spanish,
swedish, tur<br>
kish, ukrainian, nohyphenation, loaded.<br>
(/sw/share/texmf-dist/tex/latex/base/article.cls<br>
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class<br>
(/sw/share/texmf-dist/tex/latex/base/size12.clo))<br>
(/sw/share/texmf-dist/tex/latex/pstricks/pst-gantt.tex<br>
(/sw/share/texmf-dist/tex/generic/pstricks/pstricks.tex<br>
`PSTricks' v1.04 <2004/06/22> (tvz)<br>
(/sw/share/texmf-dist/tex/generic/pstricks/pstricks.con))<br>
(/sw/share/texmf-dist/tex/generic/pstricks/pst-node.tex<br>
v97 patch 11, 2000/11/09)<br>
(/sw/share/texmf-dist/tex/generic/pstricks/pst-grad.tex v1.04,
2004/06/24)<br>
(/sw/share/texmf-dist/tex/generic/xkeyval/pst-xkey.tex<br>
(/sw/share/texmf-dist/tex/latex/xkeyval/xkeyval.sty<br>
(/sw/share/texmf-dist/tex/generic/xkeyval/xkeyval.tex<br>
(/sw/share/texmf-dist/tex/generic/xkeyval/keyval.tex))))<br>
(/sw/share/texmf-dist/tex/generic/multido/multido.tex v1.41,
2004/05/18 <tvz>)<br>
`pst-gantt' v0.2, 2009/05/12 (Denis Girou and Herbert Voss)<br>
<br>
! LaTeX Error: Missing \begin{document}.<br>
<br>
See the LaTeX manual or LaTeX Companion for explanation.<br>
Type H <return> for immediate help.<br>
... <br>
<br>
l.37 \define@boolkey[psset]{pst-gantt}[P<br>
st@]{PstPicture}[true]{}<br>
?<br>
<br>
Have I set up the calling file incorrectly? Am I missing something?<br>
<br>
I am using the tetex package which comes via fink under mac OS 10.5.<br>
<br>
Any insights would be much appreciated.</font><br>
<br>
Thank you,<br>
<br>
Peter Johnston.<br>
<pre class="moz-signature" cols="78">-------------------------------------------------------------------------
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
</pre>
</body>
</html>