-
26
pages
-
English
-
Documents
Description
APGF/TikZ - Graphics for LT XEA tutorialMeik HellmundUni Leipzig, Mathematisches InstitutM. Hellmund (Leipzig) PGF/TikZ 1 / 22PGF and TikZI According to its author, Till Tantau (Lub eck), PGF/TikZ stands for\Portable Graphics Format" and \TikZ ist kein Zeichenprogramm".I PGF: internal engine; TikZ: frontendAI nicely integrated into LT X and BeamerEI works for PostScript output (dvips) as well asfor PDF generation (pdflatex, dvipdfmx)I DVI previewer are not always able to show the graphics correctly.Look at the PS or PDF output!I TikZ is cool for 2D pictures. For 3D graphics I prefer other tools, e.g.Asymptote.M. Hellmund (Leipzig) PGF/TikZ 2 / 22nusepackageftikzgnusetikzlibraryfarrows,shapes,trees,..g % loads some tikz extensionsI Use \tikz ... ; for simple inline commands:The code \tikz \draw (0pt,0pt) -- (20pt,6pt); yields and\tikz \fill[orange] (0,0) circle (1ex); provides .I Use \begin{tikzpicture}...\end{tikzpicture} for larger pictures:\begin{tikzpicture}\draw[style=dashed] (2,.5) circle (0.5);\draw[fill=green!50] (1,1)ellipse (.5 and 1);\draw[fill=blue] (0,0) rectangle (1,1);\draw[style=thick](3,.5) -- +(30:1) arc(30:80:1) -- cycle;\end{tikzpicture}M. Hellmund (Leipzig) PGF/TikZ 3 / 22I Coordinate system starts at lower left corner of canvasI Canvas is made large enough to hold the pictureI Tip: make boundary of canvas visible,if necessary, move the picture box around using\hspace*{..}, \vspace*{..}I Unit of length: 1 cm, ...
-
Publié par
-
Langue
English