encyclopegia.org

PSTricks

PSTricks is a set of macros that allow the inclusion of PostScript drawings directly inside TeX or LaTeX source code. It was originally written by Timothy Van Zandt and has been maintained in recent years by Denis Girou, Sebastian Rahtz and Herbert Voss (de).

PSTricks is a set of macros that allow the inclusion of PostScript drawings directly inside TeX or LaTeX source code. It was originally written by Timothy Van Zandt and has been maintained in recent years by Denis Girou, Sebastian Rahtz and Herbert Voss (de). \begin{pspicture}(5,5) %% Triangle in red: \pspolygon[linecolor=red](1,1)(5,1)(1,4) %% Bezier curve in green: \pscurve[linecolor=green,linewidth=2pt,% showpoints=true](5,5)(3,2)(4,4)(2,3) %% Circle in blue with radius 1: \pscircle[linecolor=blue,linestyle=dashed](3,2.5){1} \end{pspicture} \begin{pspicture*}(-7,-2)(7,2) \psaxes[labels=none](0,0)(-7,-2)(7,2) % sets up axis \psplot[linecolor=blue, linewidth=1.5pt]% % plots the sinewave {-7}{7}{x 0.01745329252 div sin} % notice the RPN expression \uput[45](3.1415926,0){$\pi$} % these are the labels \uput[90](-1.570796,0){$-\pi/2$} % \uput is a box positioned at [angle] \uput[-90](1.570796,0){$\pi/2$} % relative to (x,y) coordinate \uput[-135](-3.1415926,0){$-\pi$} % and putting { content } on the box \psline[linewidth=1pt,linecolor=red,linestyle=dotted]% % red dotted lines (1.57079632,1)(1.57079632,0) \psline[linewidth=1pt,linecolor=red,linestyle=dotted]% (-1.57079632,-1)(-1.57079632,0) \end{pspicture*} The previous example also illustrate that TeX commands can be used as elements into the pictures. Since PostScript uses RPN style for mathematical operations, the argument to pst-plot must be supplied in the same form. An alternative is to use the optional argument algebraic, then the formula can be described as an algebraic expression. pstricks-add extends pst-plot enabling also polar graphs and allowing the use algebraic notation for plots instead of RPN. pst-math provides trigonometric functions in radians (since PostScript defaults to using degrees) and hyperbolic trigonometric functions. pst-3dplot is used for creating 3D graphics like the following: multido provides basic loop functionality for programming graphs with repeating elements: pst-eucl is a beta extension for easy creation of geometrical drawings. There are many other extensions, for drawing Circuit diagrams, barcodes, graphs, trees, visualizing data, etc. PSTricks documentation. PSTricks examples. LaTeXDraw, a free and open source graphical editor generating PSTricks code, written in Java. JPicEdt, another free and open source graphical editor generating PSTricks code, written in Java. LaTeXPiX , a freeware graphical editor generating (amongst others) PSTricks code, written for Windows OS.

References

  1. latexpix.comyr.com . retrieved 2026-11-19 source revision 1305271563 · retrieved 2026-11-18 · rev 1305271563
    Cite this reference

    MLA "latexpix.comyr.com . retrieved 2026-11-19 source revision 1305271563." latexpix. 2026-11-18. https://en.wikipedia.org/w/index.php?oldid=1305271563. Accessed 24 November 2026.

    Chicago "latexpix.comyr.com . retrieved 2026-11-19 source revision 1305271563." latexpix. 2026-11-18. https://en.wikipedia.org/w/index.php?oldid=1305271563.

    APA latexpix. (2026). latexpix.comyr.com . retrieved 2026-11-19 source revision 1305271563. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1305271563

  2. tug.org . retrieved 2026-11-19 source revision 1305271563 · retrieved 2026-11-18 · rev 1305271563
    Cite this reference

    MLA "tug.org . retrieved 2026-11-19 source revision 1305271563." tug. 2026-11-18. https://en.wikipedia.org/w/index.php?oldid=1305271563. Accessed 24 November 2026.

    Chicago "tug.org . retrieved 2026-11-19 source revision 1305271563." tug. 2026-11-18. https://en.wikipedia.org/w/index.php?oldid=1305271563.

    APA tug. (2026). tug.org . retrieved 2026-11-19 source revision 1305271563. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1305271563

  3. jpicedt.sourceforge.net . retrieved 2026-11-19 source revision 1305271563 · retrieved 2026-11-18 · rev 1305271563
    Cite this reference

    MLA "jpicedt.sourceforge.net . retrieved 2026-11-19 source revision 1305271563." jpicedt. 2026-11-18. https://en.wikipedia.org/w/index.php?oldid=1305271563. Accessed 24 November 2026.

    Chicago "jpicedt.sourceforge.net . retrieved 2026-11-19 source revision 1305271563." jpicedt. 2026-11-18. https://en.wikipedia.org/w/index.php?oldid=1305271563.

    APA jpicedt. (2026). jpicedt.sourceforge.net . retrieved 2026-11-19 source revision 1305271563. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1305271563

  4. latexdraw.sourceforge.net . retrieved 2026-11-19 source revision 1305271563 · retrieved 2026-11-18 · rev 1305271563
    Cite this reference

    MLA "latexdraw.sourceforge.net . retrieved 2026-11-19 source revision 1305271563." latexdraw. 2026-11-18. https://en.wikipedia.org/w/index.php?oldid=1305271563. Accessed 24 November 2026.

    Chicago "latexdraw.sourceforge.net . retrieved 2026-11-19 source revision 1305271563." latexdraw. 2026-11-18. https://en.wikipedia.org/w/index.php?oldid=1305271563.

    APA latexdraw. (2026). latexdraw.sourceforge.net . retrieved 2026-11-19 source revision 1305271563. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1305271563

Cite this article

MLA

"PSTricks." encyclopegia.org, 2025, https://encyclopegia.org/wiki/pstricks. Accessed 24 November 2026.

Chicago

"PSTricks." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/pstricks.

APA

encyclopegia.org. (2025). PSTricks. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/pstricks

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1305271563 · 0.5 · snapshot enwiki-001305271563

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.