[pstricks] slanted text

Juergen Gilg gilg at acrotex.net
Sat Apr 11 21:20:15 CEST 2009


Dear Zbigniew,

> Zbigniew Nitecki schrieb:
>   
>> In the following, I want to place the text labeling each face slanted, as if it 
>> were written on the face itself.
>> I have tried various viewpoint and viewangle values;  these appear to have no 
>> effect whatsoever on the text.
>> How can I slant the text so that it appears written on the appropriate face, as 
>> the two labels x+z=1 and y+z=1 are
>> supposed to?
>>
>>     

here a try with the pst-solides-3d, however i do not get the MATHMODE 
for text on start...

\documentclass{article}
\usepackage{pstricks}
\usepackage{pst-solides3d}
\begin{document}
\begin{pspicture}(-4,-1.5)(4,1.5)
\psset{solidmemory}
\psset{lightsrc=10 0 10,viewpoint=30 30 30 rtp2xyz,Decran=50}
\axesIIID(0,0,0)(2,2,2)
\psPolygonIIID[linecolor=black,
fillstyle=solid,fillcolor=lightgray,
linewidth=0.5pt](1,1,0)(-1,1,0)(0,0,1)(1,1,0)
\psSolid[object=plan,
definition=normalpoint,
args={0 0.5 0.5 [0 1 1 180]},
name=MyPlane,
action=none]
\psProjection[
object=texte,
fontsize=8,
linecolor=red,
pos=bc,
plan=MyPlane,
text={y+z=1},
](0,0)%
\composeSolid
\end{pspicture}
\end{document}


Hope this helps.

Regards,

Juergen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/pstricks/attachments/20090411/61e2c40c/attachment.html 


More information about the PSTricks mailing list