[pstricks] PStricks and LuaTeX?

stefano franchi stefano.franchi at gmail.com
Wed Feb 16 21:45:13 CET 2011


Hi Herbert,

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?

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

\begin{document}

\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{document}

When I try to compile with
>lualatex -shell-escape file.tex

I get 23 ""unrecognized PsPicture"" warnings and then  the following error:

! Too many }'s.
\PstGanttChart ...lse \Addto at Envbody {#1\end {#2}}
                                                  \fi \process at envbody
l.17 \end{PstGanttChart}

Stefano

2011/2/16 Herbert Voss <Herbert.Voss at fu-berlin.de>:
> Am 16.02.2011 20:04, schrieb stefano franchi:
>> Is there any way to use PSTricks with Lua(la)TeX? I know about the
>> favorite dvi>dvips route and the compatibility with the latest
>> versions of XeTeX, but I have a project set up in LuaTex and I would
>> love to use some of the PSTricks packages. I looked on the PSTricks
>> website for "extraction" tools
>> (http://tug.org/PSTricks/main.cgi?file=pdf/pdfoutput), but I am a bit
>> overwhelmed by the number of choices. Has anyone managed to do it?
>
> use
>
> \usepackage{pstricks}
> \usepackage{auto-pst-pdf}
>
> and then run it with "lualatex -shell-escape file "
> and everything should be fine. On Windows you need an installed Perl.
>
> Herbert
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
> archive: http://www.tug.org/pipermail/pstricks/
>


More information about the PSTricks mailing list