[pstricks] setting up pst-solides3d
Zbigniew Nitecki
zbigniew.nitecki at tufts.edu
Mon Jan 5 03:36:56 CET 2009
%!TEX TS-program = latex
\listfiles
\documentclass[11pt]{article}
%\usepackage{amsmath, amssymb}
\usepackage[dvipsnames, svgnames]{pstricks}
\usepackage{pst-plot, pst-math, pst-3dplot}
\usepackage{pst-grad, pst-func, pst-text}
\usepackage{pstricks-add}
\usepackage{pst-solides3d}
%\usepackage{graphicsmacros}
%\usepackage{basicmacros}
%\usepackage{calculusmacros}
\title{Brief Article}
\author{The Author}
\begin{document}
\maketitle
\begin{figure}[htbp]
\begin{center}
\begin{pspicture}(-6,-3)(6,3)
\psset{unit=1.5}
\defFunction{mobius}(u,v)
{2 u v Cos mul add 2 v mul Cos mul}
{2 u v Cos mul add 2 v mul Sin mul}
{u v Sin mul}
\psset[pst-solides3d]{viewpoint=20 10 5,Decran=40,lightsrc=20 10 10}
\psSolid[object=surfaceparametree,linewidth=0.75\pslinewidth,
base=0.2 0.25 0 pi,linewidth=0.1,
function=mobius,
ngrid=.025]
\psSolid[object=surfaceparametree,linewidth=0.75\pslinewidth,
base=-0.25 -0.2 0 pi,linewidth=0.1,
function=mobius,
ngrid=.05]
\end{pspicture}
\caption{Moebius Band}
\label{fig:Moebius}
\end{center}
\end{figure}
\end{document}
OUTPUT (Console):
### This is /usr/texbin/simpdftex, Version 20070809
### /usr/texbin/latex pst3dTest.tex
This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7)
%&-line parsing enabled.
entering extended mode
(./pst3dTest.tex
LaTeX2e <2005/12/01>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax,
dumylang, noh
yphenation, german-x-2008-06-18, ngerman-x-2008-06-18, ancientgreek,
ibycus, ar
abic, basque, bulgarian, catalan, pinyin, coptic, croatian, czech,
danish, dutc
h, esperanto, estonian, farsi, finnish, french, galician, german,
ngerman, mono
greek, greek, hungarian, icelandic, indonesian, interlingua, irish,
italian, la
tin, mongolian, mongolian2a, bokmal, nynorsk, polish, portuguese,
romanian, rus
sian, sanskrit, serbian, slovak, slovenian, spanish, swedish, turkish,
ukenglis
h, ukrainian, uppersorbian, welsh, loaded.
(/usr/local/texlive/2008/texmf-dist/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(/usr/local/texlive/2008/texmf-dist/tex/latex/base/size11.clo))
(/Users/zbigniewnitecki/Library/texmf/tex/latex/pstricks/pstricks.sty
(/Users/zbigniewnitecki/Library/texmf/tex/generic/pstricks/pstricks.tex
`PSTricks' v1.21 <2008/02/01> (tvz)
(/Users/zbigniewnitecki/Library/texmf/tex/generic/pstricks/
pstricks.con))
(/Users/zbigniewnitecki/Library/texmf/tex/latex/xcolor/xcolor.sty
(/usr/local/texlive/2008/texmf/tex/latex/config/color.cfg)
(/usr/local/texlive/2008/texmf-dist/tex/latex/graphics/dvips.def)
(/usr/local/texlive/2008/texmf-dist/tex/latex/graphics/dvipsnam.def)
(/Users/zbigniewnitecki/Library/texmf/tex/latex/svgnam.def)))
(/Users/zbigniewnitecki/Library/texmf/tex/latex/pstricks/pst-plot.sty
(/Users/zbigniewnitecki/Library/texmf/tex/generic/pstricks/pst-plot.tex
(/usr/local/texlive/2008/texmf-dist/tex/generic/multido/multido.tex
v1.41, 2004/05/18 <tvz>) v1.01, 2008/01/26))
(/Users/zbigniewnitecki/Library/texmf/tex/latex/pst-math/pst-math.sty
(/Users/zbigniewnitecki/Library/texmf/tex/generic/pst-math/pst-math.tex
`pst-math' v0.2 (Rev 1.0, 2004-06-15 22:29:36+02), C.Jorssen))
(/Users/zbigniewnitecki/Library/texmf/tex/latex/pst-3dplot/
pst-3dplot.sty
(/Users/zbigniewnitecki/Library/texmf/tex/generic/pst-3dplot/
pst-3dplot.tex
(/Users/zbigniewnitecki/Library/texmf/tex/generic/pst-3d/pst-3d.tex
(/Users/zbigniewnitecki/Library/texmf/tex/latex/xkeyval/pst-xkey.tex
(/Users/zbigniewnitecki/Library/texmf/tex/latex/xkeyval/xkeyval.sty
(/Users/zbigniewnitecki/Library/texmf/tex/latex/xkeyval/xkeyval.tex
(/Users/zbigniewnitecki/Library/texmf/tex/latex/xkeyval/keyval.tex))))
`PST-3d' v1.00, 2005/09/03 (tvz))
(/Users/zbigniewnitecki/Library/texmf/tex/generic/pstricks-add/
pstricks-add.tex
(/Users/zbigniewnitecki/Library/texmf/tex/generic/pstricks/pst-node.tex
v1.00, 2007/10/16) `pstricks-add' v3.01, 2008/01/26 (dr,hv))
(/usr/local/texlive/2008/texmf-dist/tex/generic/multido/multido.tex
v1.41, 2004/05/18 <tvz>) `PST-3dplot' v1.80, 2008/02/08 (HV,DL)))
(/Users/zbigniewnitecki/Library/texmf/tex/latex/pst-grad/pst-grad.sty
(/Users/zbigniewnitecki/Library/texmf/tex/generic/pst-grad/pst-grad.tex
`pst-grad' v1.06, 2006/11/27 (tvz,dg,hv)))
(/Users/zbigniewnitecki/Library/texmf/tex/latex/pst-func/pst-func.sty
(/Users/zbigniewnitecki/Library/texmf/tex/latex/pst-func/pst-func.tex
`PST-func' v0.55, 2008/06/12 (hv)))
(/Users/zbigniewnitecki/Library/texmf/tex/latex/pst-text/pst-text.sty
(/Users/zbigniewnitecki/Library/texmf/tex/generic/pst-text/pst-text.tex
v1.00, 2006/11/05(tvz,hv)))
(/Users/zbigniewnitecki/Library/texmf/tex/latex/pstricks-add/pstricks-
add.sty
(/Users/zbigniewnitecki/Library/texmf/tex/generic/pstricks-add/
pstricks-add.tex
))
(/Users/zbigniewnitecki/Library/texmf/tex/latex/pst-solide3d/pst-
solides3d.sty
(/Users/zbigniewnitecki/Library/texmf/tex/generic/pst-solide3d/pst-
solides3d.te
x `PSTSOLIDESIIID' v3.02, 2008/01/15
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.118 \psset{SphericalCoor=false}
? r
OK, entering \nonstopmode...
! You can't use `macro parameter character #' in horizontal mode.
\in@ #1#2->\def \in@@ ##1#1##
2##3\in@@ {\ifx \in@ ##2\in at false \else
\in at tru...
l.118 \psset{SphericalCoor=false}
! You can't use `macro parameter character #' in horizontal mode.
\in@ #1#2->\def \in@@ ##1#1##2##
3\in@@ {\ifx \in@ ##2\in at false \else
\in at tru...
l.118 \psset{SphericalCoor=false}
! Extra \else.
\XKV at ch@ckch at ice ... at tempa \@firstofone \fi \else
\ifXKV at pl
\XKV at addtomacro@...
l.118 \psset{SphericalCoor=false}
! Package xkeyval Error: value `\def \XKV at resa {false}\@firstofone '
is not all
owed.
See the xkeyval package documentation for explanation.
Type H <return> for immediate help.
...
l.118 \psset{SphericalCoor=false}
! Extra \else.
\XKV at s@tk at ys ...XKV at tfam \XKV at s@tk at ys@ {#3}}\else
\XKV at whilist
\XKV at fams \XK...
l.118 \psset{SphericalCoor=false}
! Extra \fi.
\XKV at f@r ...two \else #2\expandafter \XKV at f@r \fi
#1{#2}
l.118 \psset{SphericalCoor=false}
)) (./pst3dTest.aux) [1] [2] (./pst3dTest.aux)
*File List*
article.cls 2005/09/16 v1.4f Standard LaTeX document class
size11.clo 2005/09/16 v1.4f Standard LaTeX file (size option)
pstricks.sty 2008/01/24 v0.37 LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex 2008/02/01 v1.21 `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)
dvipsnam.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
svgnam.def 2005/12/21 v2.09 Predefined colors according to SVG
1.1 (UK)
pst-plot.sty 2004/07/15 package wrapper for pst-plot.tex
pst-plot.tex 2008/01/26 1.01 `pst-plot' (tvz)
pst-math.sty 2004/03/20 package wrapper for PSTricks pst-math.tex
pst-math.pro
pst-3dplot.sty 2006/02/07 package wrapper for pst-3dplot.tex (hv)
pst-3dplot.tex 2008/02/08 v1.80 `PST-3dplot' (hv)
pst-xkey.tex 2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
xkeyval.sty 2005/11/25 v2.5e package option processing (HA)
xkeyval.tex 2005/11/25 v2.5e key=value parser (HA)
pst-grad.sty 2004/07/15 package wrapper for pst-grad.tex (hv)
pst-grad.tex 2006/11/27 1.06 `pst-grad' (tvz)
pst-func.sty 2008/03/21 package wrapper for pst-func.tex (hv)
pst-func.tex 2008/06/12 v0.55 `PST-func' (hv)
pst-func.pro 2008/03/21 v. 0.08, PostScript prologue file (hv)
pst-text.sty 2006/01/01 package wrapper for pst-text.tex (hv)
pst-text.tex 2006/11/05 1.00 `pst-text' (tvz)
pstricks-add.sty 2007/09/03 v. 0.11 package wrapper for pstricks-
add.tex (hv
)
pstricks-add.tex 2006/11/05 v1.00 `PSTricks-add' (hv)
pst-solides3d.sty 2007/10/12 package wrapper for pst-solides3d
pst-solides3d.tex 2008/01/15 v3.02 `PST-solides3D'
***********
)
(see the transcript file for additional information)
Output written on pst3dTest.dvi (2 pages, 5312 bytes).
Transcript written on pst3dTest.log.
### WARNING: TeX returned non zero exit status
### /usr/texbin/dvips -R -Poutline -o /tmp/altpdflatex.
1658-1231122877/pst3dTest.ps pst3dTest.dvi
This is dvips(k) 5.97 Copyright 2008 Radical Eye Software (www.radicaleye.com
)
' TeX output 2009.01.04:2134' -> /tmp/altpdflatex.1658-1231122877/
pst3dTest.ps
</usr/local/texlive/2008/texmf/dvips/base/tex.pro>
</Users/zbigniewnitecki/Library/texmf/dvips/pstricks/pstricks.pro>
</Users/zbigniewnitecki/Library/texmf/dvips/pstricks/pst-algparser.pro>
</Users/zbigniewnitecki/Library/texmf/dvips/pstricks/pst-dots.pro>
</Users/zbigniewnitecki/Library/texmf/dvips/pst-math/pst-math.pro>
</Users/zbigniewnitecki/Library/texmf/dvips/pstricks/pst-node.pro>
</Users/zbigniewnitecki/Library/texmf/dvips/pstricks-add/pstricks-
add.pro>
</Users/zbigniewnitecki/Library/texmf/dvips/pst-3dplot/pst-3dplot.pro>
</Users/zbigniewnitecki/Library/texmf/dvips/pst-grad/pst-grad.pro>
</Users/zbigniewnitecki/Library/texmf/dvips/pst-func/pst-func.pro>
</Users/zbigniewnitecki/Library/texmf/dvips/pst-text/pst-text.pro>
</Users/zbigniewnitecki/Library/texmf/dvips/pst-solide3d/solides.pro>
</usr/local/texlive/2008/texmf/dvips/base/texps.pro>
</usr/local/texlive/2008/texmf/dvips/base/special.pro>
</usr/local/texlive/2008/texmf/dvips/base/color.pro>.
</usr/local/texlive/2008/texmf-dist/fonts/type1/bluesky/cm/cmr12.pfb>
</usr/local/texlive/2008/texmf-dist/fonts/type1/bluesky/cm/cmr17.pfb>
</usr/local/texlive/2008/texmf-dist/fonts/type1/bluesky/cm/
cmr10.pfb>[1] [2]
### ps2pdf13 /tmp/altpdflatex.1658-1231122877/pst3dTest.ps /tmp/
altpdflatex.1658-1231122877/pst3dTest.pdf
Error: /undefinedresult in --div--
Operand stack:
dx 0.05 0
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --
nostringval-- 2 %stopped_push --nostringval-- --
nostringval-- --nostringval-- false 1 %stopped_push 1905
1 3 %oparray_pop 1904 1 3 %oparray_pop 1888 1 3
%oparray_pop 1771 1 3 %oparray_pop --nostringval--
%errorexec_pop .runexec2 --nostringval-- --nostringval-- --
nostringval-- 2 %stopped_push --nostringval-- --
nostringval-- --nostringval--
Dictionary stack:
--dict:1148/1684(ro)(G)-- --dict:0/20(G)-- --dict:
116/200(L)-- --dict:385/450(L)-- --dict:178/300(L)-- --dict:38/200(L)--
--dict:158/200(L)-- --dict:385/450(L)-- --dict:9/10(L)--
Current allocation mode is local
Last OS error: 2
Current file position is 290866
GPL Ghostscript 8.62: Unrecoverable error, exit code 1
### FAILED to generate /tmp/altpdflatex.1658-1231122877/pst3dTest.pdf ()
Zbigniew Nitecki
Department of Mathematics
Tufts University
Medford, MA 02155
telephones:
Office (617)627-3843
Dept. (617)627-3234
Dept. fax (617)627-3966
http://www.tufts.edu/~znitecki/
On Jan 4, 2009, at 16:38, Herbert Voss wrote:
> zbigniew nitecki schrieb:
>> I am trying for the first time to use pst-solides3d. To this end, I
>> copied what I thought was relevant from the posting of Dec 18 by
>> Manuel Luque. Here is my complete code (including \usepackage calls
>> to things I often use: the last three are my own macro packages):
>
>> When I run this on TeXShop using TeX and Ghostscript, I get the
>> following error message:
>> *****************************************************************************************************
>>
>> ! LaTeX Error: Missing \begin{document}.
>>
>> See the LaTeX manual or LaTeX Companion for explanation.
>> Type H <return> for immediate help.
>> ...
>>
>> l.118 \psset{SphericalCoor=false}
>> *****************************************************************************************
>> What am I doing wrong? (Clearly, I do have a \begin{document}, but
>> somehow the program doesn't recognize it).
>
>
> please put _always_ \l,istfiles at first line in every document
> and then send the file list (at the end of the log file), too.
> I suppose you have an old pst-solides3d.tex file. Get the latest
> from tex and pro file from
>
> http://www.dante.de/~herbert/PSTricks-TDS/tex/generic/pst-solides3d/pst-solides3d.tex
> http://www.dante.de/~herbert/PSTricks-TDS/dvips/pst-solides3d/solides.pro
>
> Herbert
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/pstricks/attachments/20090104/1996703c/attachment-0001.html
More information about the PSTricks
mailing list