1

I am learning to use PStricks. For that matter, I am trying to reproduce the code in this answer but I get a black word in standard font, without changes in style whatsoever. The only bit I can change is the text.

My code is (for the third example in the referred answer):

\documentclass{article}
\usepackage{pst-all}
\usepackage{pst-light3d}

\begin{document}

\begin{pspicture}(0,-1)(8,2)
\DeclareFixedFont{\Rmb}{T1}{ptm}{m}{n}{3cm}
\PstLightThreeDText[fillstyle=solid,fillcolor=blue!100!red!70,
LightThreeDAngle=60,LightThreeDYLength=0.1]{\Rmb Example}
\end{pspicture}

\end{document}

All I get is:

enter image description here

I am compiling with xelatex in TexStudio, using xelatex -interaction=nonstopmode %.tex as code.

The compilation message is:

Process started: xelatex -interaction=nonstopmode "test pstrick".tex

GPL Ghostscript

9.19: Unrecoverable error, exit code 1

Process exited normally

What is the problem?

luchonacho
  • 4,161
  • it is only possible with latex->dvips->ps2pdf –  Nov 18 '16 at 15:40
  • @luconado: You can also compile with xelatex. Or you can compile with pdflatex if you load auto-pst-pdf (after pstricks) and compile with the switch --enable-write18 (MiKTeX) or -shell-escape (TeX Live MacTeX). – Bernard Nov 18 '16 at 22:56
  • @Bernard: In this case you can not compile with xelatex –  Nov 19 '16 at 08:50
  • @Herbert: You're perfectly right (as usual…). I should have tested this compiler – I only did so for pdflatex. – Bernard Nov 19 '16 at 10:17

1 Answers1

1

The output with latex->dvips->ps2pdf:

enter image description here

There are some examples which will not work with the xdvipdfmx driver from xelatex