%% %% This is file `pst-infixplot.tex', %% %% IMPORTANT NOTICE: %% %% Package `pst-infixplot' %% %% Jean-Côme Charpentier %% Christophe Jorssen %% `libre' is the french word for `free' :-) %% %% This program can be redistributed and/or modified under the terms %% of the LaTeX Project Public License Distributed from CTAN archives %% in directory CTAN:/macros/latex/base/lppl.txt. %% %% DESCRIPTION: %% `pst-infixplot' is a PSTricks package to plot infix expressions %% \def\RCS$#1: #2 ${\expandafter\def\csname RCS#1\endcsname{#2}} \RCS$Revision: 1.0 $ \RCS$Date: 2004-07-14 15:29:02+02 $ \def\fileversion{0.1} \csname PSTInfixplotLoaded\endcsname \let\PSTPlotLoaded\endinput \message{`pst-infixplot' v\fileversion\space (Rev \RCSRevision, \RCSDate), J.-C.Charpentier/C.Jorssen} % Require pst-plot and infix-RPN \ifx\PSTplotLoaded\endinput\else\input pst-plot.tex\fi \ifx\infixRPNLoaded\endinput\else\input infix-RPN.tex\fi \edef\PstAtCode{\the\catcode`\@} \catcode`\@=11\relax \def\psPlot{% \begingroup \catcode`\_=11\relax \@ifnextchar[{\psPlot@i}{\psPlot@i[]}} \def\psPlot@i[#1]#2#3#4{% \infixtoRPN{#4} \psplot[#1]{#2}{#3}{\RPN}\endgroup} \def\parametricPlot{% \begingroup \catcode`\_=11\relax \@ifnextchar[{\parametricPlot@i}{\parametricPlot@i[]}} \def\parametricPlot@i[#1]#2#3#4#5{% \infixtoRPN{#4} \edef\pst@parametric@Plot@x{\RPN}% \infixtoRPN{#5} \edef\pst@parametric@Plot@y{\RPN}% \parametricplot[#1]{#2}{#3}{\pst@parametric@Plot@x\space \pst@parametric@Plot@y}\endgroup} \catcode`\@=\PstAtCode\relax \endinput