[pstricks] two questions about pstrick and pst-3dplot

Christoph Bersch usenet at bersch.net
Tue Apr 22 12:18:31 CEST 2008


Hubert Lam schrieb:
> I have little experience with pst-3dplot, but when doing computations,
> isn't it necessary to use
> 
> (!2\PhiI\space cos mul 1.5 add \PhiI\space sin 0)

No, this is the syntax for the common 2D graphics. For pst-3dplot macros 
the three coordinates must be comma separated, but can contains 
Postscript code (see below)
> 
> On Mon, 21 Apr 2008 19:35:00 +0200, "Doris Wagner"
> <doris.wagner at mac.com> said:
>> 
>>> Placing a \space after the macros should solve your problem:
>>>
>>> \pstThreeDLine0,0,0)(2 \PhiI\space cos mul 1.5 add, \PhiI\space sin,  
>>> 0)
>>
>> did you try this out???? in my case there occurs an error

After your reply I tried this at home and also got a Postscript error. 
However, in the office the following example works:

\listfiles
\documentclass{article}
\usepackage{pst-3dplot}

\begin{document}
\def\PhiI{70}
\begin{pspicture}(5,5)
\pstThreeDLine(0,0,0)(2 \PhiI\space cos mul 1.5 add, \PhiI\space sin,0)
\end{pspicture}
\end{document}

  *File List*
  article.cls    2005/09/16 v1.4f Standard LaTeX document class
   size10.clo    2005/09/16 v1.4f Standard LaTeX file (size option)
pst-3dplot.sty    2006/02/07 package wrapper for pst-3dplot.tex (hv)
pstricks.sty    2008/01/24 v0.37 LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex    2008/01/01 v1.20 `PSTricks' (tvz)
   xcolor.sty    2005/12/21 v2.09 LaTeX color extensions (UK)
    color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive
    dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
pst-3dplot.tex    2007/10/03 v1.78 `PST-3dplot' (hv)
pst-xkey.tex    2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
  xkeyval.sty    2006/11/18 v2.5f package option processing (HA)
  xkeyval.tex    2006/11/18 v2.5f key=value parser (HA)
pst-3dplot.pro
  ***********

Christoph



More information about the PSTricks mailing list