[pstricks] PStricks and LuaTeX?

Herbert Voss Herbert.Voss at FU-Berlin.DE
Wed Feb 16 22:02:55 CET 2011


Am 16.02.2011 21:45, schrieb stefano franchi:

> I must be doing something wrong. Or perhaps I aksed the wrong
> question.  I am trying the Gantt example from the docs, and it does
> not compile. Should I wrap the \PstGanttChart environment inside a
> PsPicture environment?

Stefano,

if there is no pspicture environment, then put everything into
a postscript environment:

\documentclass[letterpaper,10pt]{memoir}
\usepackage{pst-gantt}
\usepackage{auto-pst-pdf}

\begin{document}

\begin{postscript}
\newpsstyle{Important}{fillstyle=solid,fillcolor=red}
\newpsstyle{NotImportant}{fillstyle=vlines}
\begin{PstGanttChart}[unit=2,TaskOutsideLabelMaxSize=1,ChartShowIntervals]{5}{7}
\PstGanttTask[TaskOutsideLabel={Task 1}]{0}{3}
\PstGanttTask[TaskOutsideLabel={Task 2},TaskUnitType=Day]{15}{3} %3 days
start at 15
\PstGanttTask[TaskStyle=Important,TaskOutsideLabel={Task 3},
    TaskInsideLabel={\Large\textcolor{white}{\textbf{Important}}}]{2}{5}
\PstGanttTask[TaskStyle=NotImportant,TaskOutsideLabel={Task 4}]{4}{2}
\PstGanttTask[TaskOutsideLabel={Task 5}]{5}{2}
\end{PstGanttChart}
\end{postscript}

\end{document}

Herbert


More information about the PSTricks mailing list