Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

PGF/TikZ

From Wikipedia, the free encyclopedia
Graphics languages
PGF/TikZ ("PGF andTikZ")
Example of graphics created with TikZ. Note the slightly translucent top layer.
Example of graphics created with TikZ. Note the slightly translucent top layer.
Original author(s)Till Tantau
Developer(s)Till Tantau, Christian Feuersänger
Stable release
3.1.10[1] / 15 January 2023; 2 years ago (15 January 2023)
Repository
Written inTeX,Lua
Operating systemMultiplatform (TeX)
TypeVector graphics languages
LicenseDual License:GNU General Public License orLaTeX Project Public License
Websitegithub.com/pgf-tikz/pgf

PGF/TikZ is a pair of languages for producingvector graphics (e.g., technical illustrations and drawings) from a geometric/algebraic description, with standard features including the drawing of points, lines, arrows, paths, circles, ellipses and polygons. 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 asTeXmacros, but in contrast withPSTricks, the PGF/TikZ graphics themselves are described in a language that resemblesMetaPost. Till Tantau is the designer of the PGF and TikZ languages. 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 0.95 of PGF, and it is arecursive acronym for "TikZ istkein Zeichenprogramm" (German for "TikZ isnot a drawing program").

Overview

[edit]

The PGF/TikZ interpreter can be used from the popularLaTeX andConTeXt macro packages, and also directly from the originalTeX.[2]: 116  Since TeX itself is not concerned with graphics, the interpreter supports multiple TeX output backends:dvips,dvipdfm/dvipdfmx/xdvipdfmx,TeX4ht, andpdftex's internalPDF output driver.[2]: 117–120  Unlike PSTricks, PGF can thus directly produce eitherPostScript 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.[3] PGF/TikZ comes with an extensive documentation; the version 3.1.4a of the manual has over 1300 pages.[2]

The standard LaTeXpicture environment can also be used as a front end for PGF by using thepgfpict2e package.[2]: 27 

The project has been under constant development since 2005.[4] Most of the development until 2018 was done by Till Tantau and since then Henri Menke has been the main contributor.[5] Version 3.0.0 was released on 20 December 2013.[6] One of the major new features of this version wasgraph drawing using thegraphdrawing package, which however requiresLuaTeX.[7] This version also added a new data visualization method and support for directSVG output via the newdvisvgm driver.[6]

Export

[edit]

Several graphical editors can produce output for PGF/TikZ, such as theKDE program Cirkuit[8] and the math drawing programGeoGebra.[9] Export to TikZ is also available as extensions forInkscape,[10]Blender,[11]MATLAB,[12]matplotlib,[13]Gnuplot,[14]Julia,[15] andR.[16] The circuit-macros package[17] ofm4 macros exportscircuit diagrams to TikZ using thedpic -g command line option.[18] The dot2tex program can convert files in theDOT graph description language to PGF/TikZ.[19]

Libraries

[edit]

TikZ featureslibraries for easy drawing of many kinds of diagrams, such as the following (alphabetized by library name):[2]

Gallery

[edit]

The following images were created with TikZ and show some examples of the range of graphic types that can be produced. The link in each caption points to the source code for the image.

See also

[edit]

References

[edit]
  1. ^"Release 3.1.10". 15 January 2023. Retrieved23 January 2023.
  2. ^abcde"The TikZ and PGF Packages: Manual"(PDF).CTAN.org. Retrieved2019-06-17.
  3. ^Till Tantau (20 February 2008)."The TikZ and PGF Packages: Manual for version 2.10"(PDF).CTAN.org. p. 17. Archived fromthe original(PDF) on 9 January 2011. Retrieved6 May 2010.
  4. ^"Commits – pgf-tikz/pgf".GitHub.com. Retrieved2019-06-17.
  5. ^"Contributors to pgf-tikz/pgf".GitHub.com. Retrieved2019-06-17.
  6. ^ab"PGF and TikZ – Graphic systems for TeX – Browse /pgf/version 3.0.0".SourceForge.net. 2013-12-20. Retrieved2019-06-17.
  7. ^Tantau, Till (2013)."Graph Drawing in TikZ".Journal of Graph Algorithms and Applications.17 (4):495–513.doi:10.7155/jgaa.00301. See also the olderGD 2012 presentation by Tantau.
  8. ^Agostinelli, Matteo (31 December 2011)."Cirkuit".uni-klu.ac.at. Retrieved2019-06-17.
  9. ^"Export to LaTeX (PGF, PSTricks) and Asymptote – GeoGebra Manual".wiki.geogebra.org. Retrieved2019-06-17.
  10. ^"svg2tikz: An Inkscape extension for exporting SVG paths as TikZ/PGF paths".GitHub.com. Retrieved2019-06-17.
  11. ^"blend2tikz: Export Blender (2.4x) curves to TikZ format for use with TeX".GitHub.com. Retrieved2019-06-17.
  12. ^Schlömer, Nico."matlab2tikz – File Exchange – MATLAB Central".MathWorks.com. Retrieved2019-06-17.
  13. ^Schlömer, Nico."tikzplotlib: Convert matplotlib figures to TikZ/PGFplots for smooth integration into LaTeX".GitHub.com. Retrieved2019-06-17.
  14. ^Williams, Thomas; Kelley, Colin, eds. (October 2018)."gnuplot 5.2: An Interactive Plotting Program"(PDF).gnuplot.info. Retrieved2019-06-17.
  15. ^Breloff, Thomas."Julia plotting backends".docs.juliaplots.org. Retrieved2024-02-27.
  16. ^"tikzDevice: R Graphics Output in LaTeX Format".cran.r-project.org. Retrieved2019-06-17.
  17. ^"circuit-macros – M4 macros for electric circuit diagrams".CTAN.org. Retrieved15 April 2020.
  18. ^Aplevich, Dwight (3 January 2020)."dpic README".ece.uwaterloo.ca. Retrieved15 April 2020.
  19. ^"dot2tex – A Graphviz to LaTeX converter".dot2tex.readthedocs.io. 2019-11-01.

Further reading

[edit]

External links

[edit]
The WikibookLaTeX has a page on the topic of:PGF/TikZ
Wikimedia Commons has media related toTikZ graphics.
Classes
Macro packages
LaTeX integration
Conversion tools
Related
Macro packages
Alternative TeX engines
Active
Deprecated
Distributions
Active
Deprecated
Community
Related
FOSS
Desktop apps
Web apps
Proprietary
Desktop apps
Web apps
Bytype
2D
3D
See also
Retrieved from "https://en.wikipedia.org/w/index.php?title=PGF/TikZ&oldid=1259305635"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp