[pstricks] PStricks + LuaTex + fontspec does not work?

Herbert Voss Herbert.Voss at FU-Berlin.DE
Fri Feb 18 09:39:48 CET 2011


Am 18.02.2011 03:50, schrieb stefano franchi:
> I am trying out PST-gannt on one of the  examples files from the
> manual, with fontspec font selection added and compiled with lualatex
> -shell-escape. It does not work. Here is the sample file:

fontspec gives an error message if not called with lua(la)tex
I suppose, that we should update the package auto-pst-pdf to
choose a different machine as latex. However, this should work:

\listfiles
\documentclass[letterpaper,10pt]{memoir}
\usepackage{ifluatex}
\ifluatex
  \usepackage{fontspec}
  \setsansfont{Myriad Pro}
  \setmainfont{Minion Pro}
\else
  \usepackage{Myriad}
  \usepackage{MinionPro}
\fi
\usepackage{pst-gantt}
\usepackage{auto-pst-pdf}

\begin{document}
...
\end{document}

 *File List*
  memoir.cls    2011/02/13 v3.6h configurable book, report, article
document cl
ass
   ifpdf.sty    2010/01/28 v2.1 Provides the ifpdf switch (HO)
 ifxetex.sty    2010/09/12 v0.6 Provides ifxetex conditional
ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)
...


Herbert



More information about the PSTricks mailing list