[pstricks] decimal separator in pstricks-add+pst-plot

Vafa Khalighi vafak9 at gmail.com
Sun Apr 26 15:47:56 CEST 2009


Thanks to all. I think I have found my answer. Suppose in xepersian,
\decimalseparator stands for unicode character 066B, then the following code
does what I want:


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\@writeDecimals#1{%
  \ifx\@xyDecimals\@empty% take value as is
    \def\@tempa{#1}% write only if not empty
    \ifx\@tempa\@empty% write nothing
    \else
      \ifPst at comma{,}\else\decimalseparator\fi%
      #1%
    \fi%
  \else% write only \xy at decimals
    \ifnum\@xyDecimals>\@zero
      \ifPst at comma{,}\else\deciamlseparator\fi
        \@Reset at digitcounter
        \expandafter\@process at digits#1*;
      \fi%
  \fi%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/pstricks/attachments/20090426/7e283a51/attachment.html 


More information about the PSTricks mailing list