Thank you, it works.<br>However, I plan to make extensive use of mathematical expressions in several kinds of<br>drawing commands, not only \psarc. I try to reproduce a detailed structural drawing that <br>requires that all the different parameters in the pstricks drawing commands are expressed
<br>with variables in mathematical expressions. For instance, in the \psarc case I would like<br>to give the (x,y) pair and the radius, {r}, as expressions in addition to the angles.<br><br>Is there a straightforward way of doing this or is pstricks not suitable for this specific task?
<br><br>Best regards,<br>Johan<br><br><div><span class="gmail_quote">2006/11/22, Herbert Voss <<a href="mailto:LaTeX@zedat.fu-berlin.de">LaTeX@zedat.fu-berlin.de</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Herbert Voss schrieb:<br>> Johan Ekh schrieb:<br>><br>>> How can I use mathematical expressions and variables when drawing lines<br>>> and<br>>> curves?<br>>> I'd like to do something like:<br>
>><br>>> angleB=45<br>>> \psarc[par](x,y){r}{angleA}{0.5*angleB+30}<br>><br>> you have to disable the angle check.<br>><br>> \documentclass{minimal}<br>> \usepackage{pstricks}<br>> \parindent=0pt
<br>><br>> \makeatletter<br>> \def\pst@getangle#1#2{\def#2{#1}}<br><br>\def\pst@getangle#1#2{\def#2{#1 }}% space after #1<br><br>sorry, forgot this space here<br><br><br>Herbert<br><br>_______________________________________________
<br>pstricks mailing list<br><a href="mailto:pstricks@tug.org">pstricks@tug.org</a><br><a href="http://tug.org/mailman/listinfo/pstricks">http://tug.org/mailman/listinfo/pstricks</a><br></blockquote></div><br>