[pstricks] pst-solides3d

Poul Riis Poul.Riis at skolekom.dk
Sun Aug 22 22:34:21 CEST 2010


The project below works, despite the following error message:
("C:\Programmer\MiKTeX 2.7\tex\latex\amsfonts\umsb.fd")
! You can't use `macro parameter character #' in restricted horizontal
mode.
\in@ #1#2->\def \in@@ ##1#1##
                             2##3\in@@ {\ifx \in@ ##2\in at false \else
\in at tru...
l.19 \begin{pspicture}[solidmemory](-4,-5)(7,4)
                                               
! You can't use `macro parameter character #' in restricted horizontal
mode.
\in@ #1#2->\def \in@@ ##1#1##2##
                                3\in@@ {\ifx \in@ ##2\in at false \else
\in at tru...
l.19 \begin{pspicture}[solidmemory](-4,-5)(7,4)
                                               
! Extra \else.
\XKV at ch@ckch at ice ... at tempa \@firstofone \fi \else 
                                                  \ifXKV at pl
\XKV at addtomacro@...
l.19 \begin{pspicture}[solidmemory](-4,-5)(7,4)
                                               

! 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.19 \begin{pspicture}[solidmemory](-4,-5)(7,4)
                                               
! 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.19 \begin{pspicture}[solidmemory](-4,-5)(7,4)
                                               
! Extra \fi.
\XKV at f@r ...two \else #2\expandafter \XKV at f@r \fi 
                                                  #1{#2}
l.19 \begin{pspicture}[solidmemory](-4,-5)(7,4)


But I dislike error messages, so I would like to know what is wrong.

Poul Riis


\documentclass{article}
\parindent0pt
\pagestyle{empty}
\textwidth12cm
\usepackage[x11names]{xcolor}
\usepackage[gray,cmyk,x11names]{pstricks}
\usepackage{pst-3dplot}
\usepackage{pst-func}
\usepackage{pst-solides3d}

\usepackage{pstricks-add}
\usepackage{amsmath,amsfonts}
\definecolor{pureblack}{cmyk}{0 0 0 1}
\usepackage{siunitx}
\usepackage{comma}

\begin{document}

\begin{pspicture}[solidmemory](-4,-5)(7,4)
\psset{viewpoint=50 -40 10
rtp2xyz,Decran=50,linecolor=Red2,lightsrc=viewpoint}
\psset{solidmemory}
\pstVerb{/phi 30 def /cosphi phi cos def /sinphi phi sin def /nx sinphi
def /ny 0 def /nz cosphi def /rcyl 3 sqrt 4 mul def /hcut rcyl sinphi mul
cosphi div def /hcyl hcut 2 mul def /h1 1.5 def /dh 0.25 def /h2 h1 dh add
def}
\psset{ngrid=1 30}
\psSolid[object=cylindre,r=rcyl,h=hcyl,plansepare={[nx ny nz
0]},name=partiescylindre,action=none](0,0,hcut neg)
%\psSolid[object=load,load=partiescylindre1,fillcolor={[rgb]{0.7 1 0.7
}},fcol=0 (1 1 0.7 setrgbcolor),opacity=0.5]
\psSolid[object=load,load=partiescylindre1,fillcolor={[rgb]{0.7 1 0.7
}},fcol=0 (1 1 0.7 setrgbcolor)]
\psSolid[object=cylindre,r=rcyl,h=hcyl,plansepare={[nx ny nz
0]},name=partiescylindre,action=none](0,0,h2 neg)
\psSolid[object=load,load=partiescylindre1,fillcolor={[rgb]{0.7 1
0.4}},fcol=0 (0.8 1 0.4 setrgbcolor)]
%\psSolid[object=load,load=partiescylindre1,fillcolor={[rgb]{0.7 1
0.4}},fcol=0 (0.8 1 0.4 setrgbcolor),opacity=0.7]
\psSolid[object=cylindre,r=rcyl,h=hcyl,plansepare={[nx ny nz
0]},name=partiescylindre,action=none](0,0,h1 neg)
\psSolid[object=load,load=partiescylindre1,fillcolor={[rgb]{0.7 1 0.7
}},fcol=0 (1 1 0.7 setrgbcolor)]
\end{pspicture}

\end{document}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20100822/e5c2dcae/attachment.html>


More information about the PSTricks mailing list