[pstricks] Why doesn't pstricks core load pgfmath in addition to pgffor?

Donut E. Knot the.counterterrorist at yahoo.com
Mon Feb 24 07:52:13 CET 2014


Dear PSTricks folks,


Consider the following code,

\documentclass[preview,border=24pt]{standalone}
\usepackage{pst-plot,pst-eucl,pgfmath}

\psset{algebraic,plotpoints=100,PosAngle=135}
\def\f#1{x+sin(2*Pi*x/2+#1*Pi)/3}

\begin{document}
\begin{pspicture}(6,6)
\psplot[linecolor=red]{0}{6}{\f0}\psplot[linecolor=blue]{0}{6}{\f1}
\foreach \x[count=\i from 2] in {1,...,6}{\pstGeonode(\x,\x){E_\i}}
\psset{yunit=6}
\multido{\i=0+1}{2}{\uput[180](0,\i){\i}\psline(0,\i)(6,\i)}
\end{pspicture}
\end{document}


By default pstricks loads pgffor to allow \foreach. However, "coun=\i from 2" which is a part of "\foreach" needs pgfmath.
So my question is why doesn't pstricks core also load pgfmath by default?


Thank you in advance.


Best regards,


The Last Error
(http://tex.stackexchange.com/users/19356)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20140223/1e0085ec/attachment-0001.html>


More information about the PSTricks mailing list