[pstricks] Problems with Macros in SpecialCoor

Herbert Voss Herbert.Voss at FU-Berlin.DE
Fri Nov 8 22:45:58 CET 2013

Am 08.11.2013 00:44, schrieb Juergen Rose:

>    \uput[u]{0}(!\yA \yCfour \yA sub 2 div add \zA){$t_1$}
>    \rput(!\yA \yCfour \yA sub 2 div add \zA){$t_2$}

when this expression is passed to PostScript the spaces after
the macros gets lost. TeX "eats" sich spaces when parsing the
tokens for the macro name. Use

   \rput(!\yA\space \yCfour\space \yA\space sub 2 div add \zA){$t_2$}

\usepackage[]{fp}         % for arithmetic fixed point operation

\FPupn\hTrig{2 3 root \radius{} mul}%
\FPupn\hTetraeder{2 6 root 3 div \radius{} mul 2 mul}
\FPupn\yCfour{\radius{} \hTrig{} 3 div add}%
\FPupn\zCfour{\radius{} \hTetraeder{} add}%
\FPupn\xsLone{\yCfour{} \yCthree{} \yCfour{} sub 2 div add}%
\FPupn\ypsmax{\ypsmin{} \hTrig{} 1.2 mul add }%
   \uput[u]{0}(!\yA\space \yCfour\space \yA\space sub 2 div add \zA){$t_1$}
   \rput(!\yA\space \yCfour\space \yA\space sub 2 div add \zA){$t_2$}
   % \rput(!2 3.2 2 sub 2 div add 2){$t_2$}
   \uput{0.1}[u]{0}(!2 3.2 2 sub 2 div add 2){$t_3$}
   \uput{0.1}[u]{0}(!\xsLone\space \ysLone){$s_3$}
   % \rput(!{\yCfour \yCthree \yCfour sub 2 div add} {\zA}){$s_4$}
   \uput[u]{0}(!\yCfour\space \yCthree\space \yCfour\space sub 2 div add 

   \FPupn\yhTet{\zA\space \hTrig{} 0.25 mul add}
   \uput{0.05}[r]{0}(!\yCfour\space \yhTet){$h_{tetraeder_2}$}
   \uput{0.05}[r]{0}(!\yCfour\space \zA\space \hTrig\space 0.25 mul 



More information about the PSTricks mailing list