summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/pst-infixplot
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/pst-infixplot')
-rw-r--r--Master/texmf-dist/tex/generic/pst-infixplot/pst-infixplot.tex60
1 files changed, 60 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/generic/pst-infixplot/pst-infixplot.tex b/Master/texmf-dist/tex/generic/pst-infixplot/pst-infixplot.tex
new file mode 100644
index 00000000000..403ee0113aa
--- /dev/null
+++ b/Master/texmf-dist/tex/generic/pst-infixplot/pst-infixplot.tex
@@ -0,0 +1,60 @@
+%%
+%% This is file `pst-infixplot.tex',
+%%
+%% IMPORTANT NOTICE:
+%%
+%% Package `pst-infixplot'
+%%
+%% Jean-Côme Charpentier <jean-come.charpentier@wanadoo.fr>
+%% Christophe Jorssen <christophe.jorssen@libre.fr.invalid>
+%% `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