diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-12 23:46:03 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-12 23:46:03 +0000 |
commit | 873660d1a83ece926fe7206288dda9c36b349c1b (patch) | |
tree | a48f77125c309a355b5d0eb58d6b24446abe9d62 /Master/texmf-dist/tex/generic/pst-infixplot | |
parent | 2939242967231097459df0fc3150fabc2f639111 (diff) |
generic 1
git-svn-id: svn://tug.org/texlive/trunk@613 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/pst-infixplot')
-rw-r--r-- | Master/texmf-dist/tex/generic/pst-infixplot/pst-infixplot.tex | 60 |
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 |