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 &lt;<a href="mailto:LaTeX@zedat.fu-berlin.de">LaTeX@zedat.fu-berlin.de</a>&gt;:</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>&gt; Johan Ekh schrieb:<br>&gt;<br>&gt;&gt; How can I use mathematical expressions and variables when drawing lines<br>&gt;&gt; and<br>&gt;&gt; curves?<br>&gt;&gt; I'd like to do something like:<br>
&gt;&gt;<br>&gt;&gt; angleB=45<br>&gt;&gt; \psarc[par](x,y){r}{angleA}{0.5*angleB+30}<br>&gt;<br>&gt; you have to disable the angle check.<br>&gt;<br>&gt; \documentclass{minimal}<br>&gt; \usepackage{pstricks}<br>&gt; \parindent=0pt
<br>&gt;<br>&gt; \makeatletter<br>&gt; \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>