# [pstricks] Proposal for new point syntax

Donut E. Knot the.counterterrorist at yahoo.com
Tue Jul 15 21:46:38 CEST 2014

Dear folks,

I want to have two additional ways to represent point.
For the details, please kindly compile the following input file to understand my idea.
If you have no time to compile, please kindly read the attached PDF.

\documentclass[12pt,dvipsnames]{article}

\usepackage{filecontents}
/I2P {exec AlgParser cvx exec} def
\end{filecontents*}

\usepackage[a4paper,vmargin=25mm,hmargin=10mm]{geometry}
\usepackage{pst-plot}

\usepackage{showexpl}
\lstset
{
language={PSTricks},
basicstyle=\scriptsize\tt,
backgroundcolor=\color{yellow},
numbers=none,
breaklines=true,
tabsize=2,
explpreset={},
rframe={},
pos=r,
varwidth,
}

\psset{algebraic}

\begin{document}

\noindent \textcolor{red}{\bf NOTE:} The term independent expressions'' used below represents that they must expand to a constant value.

\section*{Independent Infix and Dependent Infix}
\LTXexample
\begin{pspicture}(-3,-1)(3,5)
\psaxes(0,0)(-3,-1)(3,5)
\psparametricplot{-4}{4}{t/2|t^2/4}
\pscircle*[linecolor=Red](+3/2,x^2){3pt}
\end{pspicture}
\endLTXexample

\section*{Dependent Infix and Independent Infix}
{
\color{red}
It has not been implemented yet.\\
The proposed syntax is \lstinline|(++{sqrt(y)},9/4)|.
}

\LTXexample
\begin{pspicture}(-3,-1)(3,5)
\psaxes(0,0)(-3,-1)(3,5)
\psparametricplot{-4}{4}{t/2|t^2/4}
%\pscircle*[linecolor=Red](++{sqrt(y)},9/4){3pt}
\end{pspicture}
\endLTXexample

\pagebreak

\section*{Independent Postfix and Dependent Infix}
\LTXexample
\begin{pspicture}(-3,-1)(3,5)
\psaxes(0,0)(-3,-1)(3,5)
\psparametricplot{-4}{4}{t/2|t^2/4}
\pscircle*[linecolor=Green](*{3 2 div} x^2){3pt}
\end{pspicture}
\endLTXexample

\section*{Dependent Infix and Independent Postfix}
\LTXexample
\begin{pspicture}(-3,-1)(3,5)
\psaxes(0,0)(-3,-1)(3,5)
\psparametricplot{-4}{4}{t/2|t^2/4}
\pscircle*[linecolor=Blue](**{sqrt(y)} {9 4 div}){3pt}
\end{pspicture}
\endLTXexample

\pagebreak

\section*{Independent Postfix and Independent Postfix}
\LTXexample
\begin{pspicture}(-3,-1)(3,5)
\psaxes(0,0)(-3,-1)(3,5)
\psparametricplot{-4}{4}{t/2|t^2/4}
\pscircle*[linecolor=Magenta](!3 2 div 9 4 div){3pt}
\end{pspicture}
\endLTXexample

\section*{Independent Infix and Independent Infix}
{
\color{red}
It has not been implemented yet.\\
The proposed syntax is \lstinline|(!3/2,9/4)|.
}
\LTXexample
\begin{pspicture}(-3,-1)(3,5)
\psaxes(0,0)(-3,-1)(3,5)
\psparametricplot{-4}{4}{t/2|t^2/4}
\pscircle*[linecolor=Cyan](!{(3/2)} I2P {(9/4)} I2P){3pt}
%\pscircle*[linecolor=Cyan](!3/2,9/4){3pt}
\end{pspicture}
\endLTXexample

\end{document}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20140715/06bef670/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Proposal.pdf
Type: application/pdf
Size: 29076 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20140715/06bef670/attachment-0001.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Proposal.tex
Type: application/octet-stream
Size: 2488 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20140715/06bef670/attachment-0001.obj>