Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I know that the PSTricks packages for plotting, pst-plot and pst-3dplot, use PostScript operators and Reverse Polish Notation. Is there a comprehensive list of all the operators available, with a guide on such notation?

share|improve this question
3  
tug.org/PSTricks/main.cgi?file=PS/refs there you'll find two small references –  Herbert Apr 7 '11 at 15:53
add comment

2 Answers

up vote 11 down vote accepted

You can find them in a manual of PostScript language.

See PostScript Language Reference, third edition

And for convinience, The PostScript Language Tutorial and Cookbook and PostScript Language Program Design are easier to read. You can find them at Adobe PostScript SDK Archive


Maybe you have known that, PSTricks can also use infix expression to plot functions, with help of algebraic=true. For example:

\documentclass{article}
\usepackage{pst-plot}
\begin{document}
\psset{algebraic=true}
\begin{pspicture}(-4,-1.5)(4,1.5)
\psaxes(0,0)(-3.5,-1.5)(3.5,1.5)
\psplot[linecolor=blue]{-3.14}{3.14}{sin(x)}
\end{pspicture}
\end{document}

enter image description here

Supported functions:

+ - * / ^
sin, cos, tan, acos, asin (in radians)
log, ln
ceiling, floor, truncate, round, sqrt, abs, fact (for the factorial)
Sum (for building sums)
IfTE (for an easy case structure)

See manual pst-news10 for details.

share|improve this answer
    
+1 The PS operators wont be listed by pstricks itself. –  Martin Scharrer Apr 7 '11 at 10:24
1  
What do you mean with "wont be listed"? –  Herbert Apr 7 '11 at 14:45
add comment

The language reference is a bit heavyweight. This is the reference I use: Alphabetic list of PostScript commands. Comprehensive, yet browsable. In case that reference goes away, one can likely find a mirror searching for page titles containing Postscript Level 2.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.