[pstricks] including ps code

Hensh, Richard hensh at math.msu.edu
Thu Dec 25 08:23:47 CET 2008

Try something like:

    /m@ {-2} def %
    /b@ {3} def %
    /line@ {m@ mul b@ add} def %
      \psplot[linecolor=blue]{\xmin}{\xmax}{x line@}%
      \psdots[linewidth=1.5pt,linecolor=red](! 1 dup line@)


From: pstricks-bounces at tug.org [pstricks-bounces at tug.org] On Behalf Of John Frampton [j.frampton at neu.edu]
Sent: Wednesday, December 24, 2008 3:12 PM
To: pstricks at tug.org
Subject: [pstricks] including ps code

I want to do something like:

/A {...} def
/B {...} def
\psplot{x A mul B add}

How do I get get the definitions of A and B into the dictionary so that
\psplot can make use of them?

John Frampton

PSTricks mailing list
PSTricks at tug.org

More information about the PSTricks mailing list