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):

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

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.

  • A little bit complicated: This is my error messag, if a test your example: Undefined control sequence. \pstPlanePut – A.B. Jun 4 '15 at 15:58
  • I'm not sure what has happened to you here. \pstPlanePut is a function defined in the pst-3dplot package, see the manual here: https://www.ctan.org/pkg/pst-3dplot. It may be a linking problem.. – user413671 Jun 4 '15 at 17:59
  • I have TeXLive 2015 installed (Ubuntu 15.04) which includes PSTricks 2.57. To this version the \pstPlanetPut function is unknown. This function is not referenced in the User's Guide and neither does it show in the project home page. I would advise you to contact the package mantainer inquiring how to obtain a version of PSTricks that includes this particular function. This question is therefore misplaced at AskUbuntu. – Luís de Sousa Jun 17 '15 at 7:44
  • The function \pstPlanetPut is part of the pst-3dplot package and properly documented there. My question is Ubuntu specific as the problem did not turn up on my osx machine. – user413671 Jun 17 '15 at 18:17

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]
  • not enought reputation to add image -- will add it asap. – user413671 Jun 30 '15 at 19:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy