PGF/TikZ

PGF/TikZ
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)
Operating system Multiplatform (TeX)
Type Vector graphics languages
License Dual License: GNU General Public License or LaTeX Project Public License
Website pgf/tikz at sourceforge.net
Example of graphics done with tikz. Note the slightly translucent top layer.

PGF/TikZ is a tandem of languages for producing vector graphics from a geometric/algebraic description. PGF is a lower-level language, while TikZ is a set of higher-level macros that use PGF. The top-level PGF and TikZ commands are invoked as TeX macros, but in contrast with PSTricks, the PGF/TikZ graphics themselves are described in a language that resembles MetaPost. Till Tantau is the designer of these languages, and he is also the main developer of the only known interpreter for PGF and TikZ, which is written in TeX. PGF is an acronym for Portable Graphics Format. TikZ was introduced in version 1.10 of PGF, and it is a recursive acronym for “TikZ ist kein Zeichenprogramm” (“TikZ is not a drawing program”).

The PGF/TikZ interpreter can be used from the popular LaTeX and ConTeXt macro packages, but also directly from the original TeX. Since TeX itself is not concerned with graphics, the interpreter supports multiple TeX output backends: dvips, dvipdfm/dvipdfmx/xdvipdfmx, TeX4ht, and pdftex's internal PDF output driver. Unlike PStricks, PGF can thus directly produce either PostScript or PDF output, but it cannot use some of the more advanced PostScript programming features that PStricks can use due to the "least common denominator" effect.[1] PGF/TikZ comes with extensive documentation. The version 2.10 manual has 726 pages.

The standard LaTeX picture environment can also be used as a front end for PGF merely by using the pgfpict2e package.

Several graphical editors can produce output for PGF/TikZ like the KDE program Cirkuit.[2] Export to TikZ is also available as extensions for Inkscape,[3] Blender,[4] MATLAB,[5] matplotlib,[6] and R. [7]

The project is still active as of May 2011. Most of the development is done by Christian Feuersaenger.[8]

Basic usage

The preamble of the document for using TikZ is different for LaTeX, ConTeXt and plain TeX. LaTeX users should add

\usepackage{tikz}

ConTeXt users should add

\usemodule[tikz]

and the plain TeX users should add

\input tikz.tex

to the preamble of the document. Again, beginning and ending a TikZ picture is slightly different for TeX flavors. LaTeX users may begin to draw with TikZ commands between

\begin{tikzpicture} ... TikZ code here...  \end{tikzpicture}

while ConTeXt users should write their TikZ code between

\starttikzpicture  ... TikZ code here ... \stoptikzpicture

and plain TeX users should write their code between

\tikzpicture ... TikZ code here ...  \endtikzpicture

Many basic drawing commands and syntax are very similar to MetaPost and Asymptote as will be seen below. Basic line drawing from a cartesian coordinate to another one can be done with

\draw[%options line width= ,color= , etc...
 ](a,b)--(c,d)

which draws a line from (a,b) to (c,d). Drawing may contain multiple points and if it ends with a

--cycle

it automatically connects (smoothly) the starting point and the end point.

See also

References

Further reading

  • Andrew Mertz and William Slough, Graphics with PGF and TikZ, PracTeX Journal, 2007 (1), abstract, full text. Conference talk video based on an earlier version of that paper.
  • Claudio Beccari, Graphics in LaTeX (Comparison of several graphics systems in LaTeX), PracTeX Journal, 2007 (1)

External links


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • PGF — may refer to:*Pressure Gradient Force * Probability generating function, the probability theory *The IATA code for Perpignan Rivesaltes Airport, France *Patterson Gimlin film, purporting to show Bigfoot *Progressive Graphics File *Placental… …   Wikipedia

  • Grafikformat — Ein Grafikformat ist ein Dateiformat, das den Aufbau einer Bilddatei beschreibt. Es gibt zahlreiche Grafikformate, von denen sich nur wenige im großen Maßstab durchsetzen konnten. Viele Grafikformate werden nur von wenigen Anwendungen unterstützt …   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

  • 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

  • pdfTeX — Entwickler Das pdfTeX Projekt Aktuelle Version 1.40.11 (2010 07 28) Betriebssystem plattformunabhängig Kategorie Schriftsatz Lizenz …   Deutsch Wikipedia

  • Computer Graphics Metafile — Filename extension .cgm Internet media type image/cgm[1] Developed by ANSI, ISO/IEC, W3C Initial release 1 …   Wikipedia

  • Графические форматы — Графический формат  это способ записи графической информации. Графические форматы файлов предназначены для хранения изображений, таких как фотографии и рисунки. Графические форматы делятся на векторные и растровые. Содержание 1 Растровые… …   Википедия

  • VRML — For the language s successor, see X3D. VRML Filename extension .wrl (plain) .wrz (compression) Internet media type model/vrml x world/x vrml application/x cc3d …   Wikipedia

  • COLLADA — Filename extension .dae Developed by Sony Computer Entertainment, Khronos Group Initial release October 2004 ( …   Wikipedia

Share the article and excerpts

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