0

I'm having problems with a pst-3dplot example under XeLaTeX on Ubuntu 14.04 and all later versions.

The problem apparently is a matrix transformation error:

** WARNING ** Transformation matrix not invertible.
** WARNING ** --- M = [-154.772 0 0 0 6447.73 -40.3858]

Here is a MWE that produced the error on my machine (Xubuntu 14.04 64bit, TeXLive 2014 and all later versions):

\documentclass{standalone}
\usepackage{pst-all}
\usepackage{pst-3dplot}
\begin{document}
\begin{pspicture}(-4,-4)(3,4)
\psset{Alpha=30}
\pstThreeDCoor[xMin=-4,yMin=-4,zMin=-4]
\pstPlanePut[plane=xy](0,0,-3){\fbox{\Huge\red xy plane}}
%\pstPlanePut[plane=xy](0,0,0){\fbox{\Huge\red xy plane}}
%\pstPlanePut[plane=xy](0,0,3){\fbox{\Huge\red xy plane}}
\end{pspicture}
\end{document}

I had previously posted to problem on the TeX.SX site here. But people don't know what to do or simply don't care. I'm migrating from OS X and my decision for/against Ubuntu depends on this mere detail, since I use it professionally.

1 Answers1

0

So I have been able to find out most of what is going on here:

  1. An up-to-date version of TeXLive is necessary. For some reason the TL version shipped with Ubuntu 14.04 LTS from the repository is not recent enough. It is possible to get the latest version (TeXLive 2015) via the install scripts from CTAN mirror (see this answer on SX) or from a Ubuntu specific script (see another answer on SX )
  2. Run the latex file with latex->dvips->ps2pdf to get the desired results. It appears that XeLaTeX encounters a bug when placing 3D objects (compare this on SX) -- so that does not work at the moment. Doing latex->dvips->ps2pdf will successfully translate to this: ![latex-dvips-ps2pdf-result][4]