PSTricks

PSTricks

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

Basic usage

There is a wide list of commands available for making graphics. Coordinates in PSTricks are always represented in round parenthesis as the following example (scaled) illustrates.

egin{pspicture}(6,6) %% Triangle in red: psline [linecolor=red] (1,1)(5,1)(1,4)(1,1) %% 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}

Extensions

PSTricks commands are low level, so many LaTeX packages have been made in order to ease the creation of several kinds of graphics that are commonly used on mathematical typesetting.

pst-plot provides commands for creating function graphs. Consider the following example egin{pspicture*}(-7.5,-3)(7.5,3) psaxes [labels=none] (0,0)(-7,-2)(7,2) psplot [linecolor=blue, linewidth=1.5pt] % {-7}{7}{x 0.01745329252 div sin} uput [45] (3.1415926,0){$pi$} uput [90] (-1.570796,0){$-pi/2$} uput [-90] (1.570796,0){$pi/2$} uput [-135] (-3.1415926,0){$-pi$} psline [linewidth=1pt,linecolor=red,linestyle=dotted] % (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.

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-plot3d 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.

See also

* PGF/TikZ
* TeX
* LaTeX
* PostScript
* Inkscape for converting SVG images to PSTricks code.

Literature

* Herbert Voss; PSTricks -- Grafik für TeX und LaTeX, 4th edition, DANTE and Lob.media, 800 pages, Heidelberg and Hamburg 2007, ISBN 3865411754.

External links

* The official [http://pstricks.de PSTricks] site.
* PSTricks [http://tug.org/PSTricks/main.cgi?file=doc/docs documentation] .
* PSTricks [http://tug.org/PSTricks/main.cgi?file=examples examples] .
* [http://latexdraw.sourceforge.net/ LaTeXDraw] , a free and open source graphical editor generating PSTricks code, written in Java.
* [http://jpicedt.sourceforge.net/site/index.php JPicEdt] , another free and open source graphical editor generating PSTricks code, written in Java.

* [http://www.bellarmine.edu/faculty/wrising/HowTo/pstricks.html How to] install PSTricks and use it with TeXShop


Wikimedia Foundation. 2010.

Игры ⚽ Нужно решить контрольную?

Look at other dictionaries:

  • PSTricks — est une extension de LaTeX qui permet d utiliser la majeure partie des possibilités de PostScript. En s appuyant sur PostScript, l extension PSTricks rend possible la réalisation de graphismes très élaborés. Sommaire 1 Exemple élémentaire 2… …   Wikipédia en Français

  • PSTricks — это набор макросов, позволяющих включать рисунки PostScript непосредственно в код TeX или LaTeX. Содержание 1 Использование 2 Расширения …   Википедия

  • PSTricks — Bei PSTricks handelt es sich um eine Sammlung von Makros, die es erlauben, PostScript Grafiken in TeX oder LaTeX einzubinden. Es wurde ursprünglich von Timothy Van Zandt entwickelt und heute u. a. von Denis Girou, Sebastian Rahtz und Herbert …   Deutsch Wikipedia

  • List of interactive geometry software — Interactive geometry software (IGS, or dynamic geometry environments, DGEs) are computer programs which allow one to create and then manipulate geometric constructions, primarily in plane geometry. In most IGS, one starts construction by putting… …   Wikipedia

  • PGF/TikZ — ( PGF and TikZ ) Original author(s) Till Tantau Developer(s) Till Tantau, Christian Feuersaenger Stable release 2.10 / October 25, 2010; 12 months ago (2010 10 25) …   Wikipedia

  • MetaPost — Paradigm(s) imperative, typesetting Appeared in 1994 (1994) Designed by …   Wikipedia

  • ConTeXt — Not to be confused with ConTEXT. ConTeXt Original author(s) Mainly Hans Hagen and Pragma ADE …   Wikipedia

  • Representation graphique — Représentation graphique La représentation graphique des données permet de faciliter l analyse et l interprétation de ces données. Il faut toutefois prendre garde à ne pas se laisser abuser par des translations de coordonnées et de jeux… …   Wikipédia en Français

  • Représentation graphique — La représentation graphique des données permet de faciliter l analyse et l interprétation de ces données. Il faut toutefois prendre garde à ne pas se laisser abuser par des translations de coordonnées et de jeux graphiques sur les couleurs, la… …   Wikipédia en Français

  • MetaPost — Класс языка: императивный Появился в …   Википедия

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”