UtiliserTikZ - Paris Dauphine Universitytourniaire/pdf/tikz.pdfTikZ, c’est quoi ? Utilisation...
Transcript of UtiliserTikZ - Paris Dauphine Universitytourniaire/pdf/tikz.pdfTikZ, c’est quoi ? Utilisation...
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Utiliser TikZ
Émeric Tourniaire
Séminaire de Noël
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Vrai titre
Pourquoi vous devriez utiliser TikZ et rien d’autre.
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Table of contents
TikZ, c’est quoi ?
Utilisation basique
Utilisation avancée
Exemples
Conclusion
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Un moteur de dessins
• Utilisable dans LaTeX• Figures « codées »• Syntaxe agréable
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Documentation officielle
• pgfmanual.pdf (google)
• Très bien écrit• Très bon index• Très bons tutoriaux• Long. . . (560 pages)
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Documentation officielle
• pgfmanual.pdf (google)• Très bien écrit
• Très bon index• Très bons tutoriaux• Long. . . (560 pages)
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Documentation officielle
• pgfmanual.pdf (google)• Très bien écrit• Très bon index
• Très bons tutoriaux• Long. . . (560 pages)
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Documentation officielle
• pgfmanual.pdf (google)• Très bien écrit• Très bon index• Très bons tutoriaux
• Long. . . (560 pages)
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Documentation officielle
• pgfmanual.pdf (google)• Très bien écrit• Très bon index• Très bons tutoriaux• Long. . . (560 pages)
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
TikZ pour l’impatient
• TikZ-impatient.pdf(google)
• En français.• Plus court (190 pages. . . )• Plus de « bidouilles »
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Exemples
• http://www.texample.net/tikz/examples/
• Plein d’exemples• Aspect « vitrine »• Code parfois douteux
Compu
terSc
ience
practi
cal
algori
thms
data
struc
tures
pro-
gramming
langu
ages
softw
are
engin
eer-
ing
appli
ed datab
ases
WW
W
techn
ical
theoret
ical
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Contexte
• \usepackage{tikz}• \begin{tikzpicture}. . . \end{tikzpicture}
• Dans un environnementfigure
• Liste d’instructions séparéespar ;
\begin{tikzpicture}\draw[thick,rounded corners=8pt]
(0,0) -- (0,2) -- (1,3.25) -- (2,2)-- (2,0) -- (0,2) -- (2,2) -- (0,0)-- (2,0);
\end{tikzpicture}
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Dessins élémentaires
• \path (0,0) -- (1,0);
• \draw (-1,-.5) rectangle ++(3,1);• \draw (1,-1) circle (1);• \fill (1,-1) -- (1,-2)-- (2,-2) -- cycle;
• \draw [->](0.5,-2) -- (0.5,-3) ;
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Dessins élémentaires
• \path[draw] (0,0) -- (1,0);
• \draw (-1,-.5) rectangle ++(3,1);• \draw (1,-1) circle (1);• \fill (1,-1) -- (1,-2)-- (2,-2) -- cycle;
• \draw [->](0.5,-2) -- (0.5,-3) ;
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Dessins élémentaires
• \draw (0,0) -- (1,0);
• \draw (-1,-.5) rectangle ++(3,1);• \draw (1,-1) circle (1);• \fill (1,-1) -- (1,-2)-- (2,-2) -- cycle;
• \draw [->](0.5,-2) -- (0.5,-3) ;
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Dessins élémentaires
• \draw (0,0) -- (1,0);• \draw (-1,-.5) rectangle ++(3,1);
• \draw (1,-1) circle (1);• \fill (1,-1) -- (1,-2)-- (2,-2) -- cycle;
• \draw [->](0.5,-2) -- (0.5,-3) ;
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Dessins élémentaires
• \draw (0,0) -- (1,0);• \draw (-1,-.5) rectangle ++(3,1);• \draw (1,-1) circle (1);
• \fill (1,-1) -- (1,-2)-- (2,-2) -- cycle;
• \draw [->](0.5,-2) -- (0.5,-3) ;
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Dessins élémentaires
• \draw (0,0) -- (1,0);• \draw (-1,-.5) rectangle ++(3,1);• \draw (1,-1) circle (1);• \fill (1,-1) -- (1,-2)-- (2,-2) -- cycle;
• \draw [->](0.5,-2) -- (0.5,-3) ;
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Dessins élémentaires
• \draw (0,0) -- (1,0);• \draw (-1,-.5) rectangle ++(3,1);• \draw (1,-1) circle (1);• \fill (1,-1) |- (2,-2)-- cycle;
• \draw [->](0.5,-2) -- (0.5,-3) ;
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Dessins élémentaires
• \draw (0,0) -- (1,0);• \draw (-1,-.5) rectangle ++(3,1);• \draw (1,-1) circle (1);• \fill[fill=blue,line width=2](1,-1) |- (2,-2)-- cycle;
• \draw [->](0.5,-2) -- (0.5,-3) ;
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Dessins élémentaires
• \draw (0,0) -- (1,0);• \draw (-1,-.5) rectangle ++(3,1);• \draw (1,-1) circle (1);• \fill[fill=blue,line width=2](1,-1) |- (2,-2)-- cycle;
• \draw [->](0.5,-2) -- (0.5,-3) ;
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Dessins élémentaires
• \draw (0,0) -- (1,0);• \draw (-1,-.5) rectangle ++(3,1);• \draw (1,-1) circle (1);• \fill[fill=blue,line width=2](1,-1) |- (2,-2)-- cycle;
• \draw [->,red,line width=3](0.5,-2) -- (0.5,-3) ;
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Dessins élémentaires
• \draw (0,0) -- (1,0);• \draw (-1,-.5) rectangle ++(3,1);• \draw (1,-1) circle (1);• \fill[fill=blue,line width=2](1,-1) |- (2,-2)-- cycle;
• \draw [-latex,red,line width=3](0.5,-2) -- (0.5,-3) ;
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Noeuds
• \node (a) at (0,3) {Plam};
• \draw (0,0) node (b) {Plim};
• \draw (a) -- (b);
Plam
PlimPlimPlim
e2iπ
=−1
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Noeuds
• \node (a) at (0,3) {Plam};• \draw (0,0) node (b) {Plim};
• \draw (a) -- (b);
Plam
Plim
PlimPlim
e2iπ
=−1
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Noeuds
• \node (a) at (0,3) {Plam};• \draw (0,0) node
[draw] (b) {Plim};
• \draw (a) -- (b);
Plam
Plim
Plim
Plim
e2iπ
=−1
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Noeuds
• \node (a) at (0,3) {Plam};• \draw (0,0) node
[draw] (b) {Plim};• \draw (a) -- (b);
Plam
Plim
Plim
Plim
e2iπ
=−1
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Noeuds
• \node (a) at (0,3) {Plam};• \draw (0,0) node
[draw] (b) {Plim};• \draw (a) to [bend left] (b);
Plam
Plim
Plim
Plim
e2iπ
=−1
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Noeuds
• \node (a) at (0,3) {Plam};• \draw (0,0) node
[draw,ellipse] (b) {Plim};• \draw (a) to [bend left] (b);
Plam
PlimPlim
Plim
e2iπ
=−1
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Noeuds
• \node (a) at (0,3) {Plam};• \draw (0,0) node
[draw,ellipse] (b) {Plim};• \draw (a) to [bend left]
node [sloped,above] {$e^...$} ;
Plam
PlimPlim
Plim
e2iπ
=−1
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Transformations géométrique
• Environnement scope• Rotations, translations
MOUTON
MOUTON
MOUTON
MOUTON
\draw [help lines] (0,0) grid (5,5);\node [draw,cloud,fill=gray!20,aspect=2] at (2,2) {MOUTON};
\draw (1,0) -- (3,1) ;
\draw [help lines] (0,0) grid (5,5);\begin{scope}
\node [draw,cloud,fill=gray!20,aspect=2] at (2,2) {MOUTON};
\draw (1,0) -- (3,1) ;\end{scope}
\draw [help lines] (0,0) grid (5,5);\begin{scope}[red]
\node [draw,cloud,fill=gray!20,aspect=2] at (2,2) {MOUTON};
\draw (1,0) -- (3,1) ;\end{scope}
\draw [help lines] (0,0) grid (5,5);\begin{scope}[rotate=25]
\node [draw,cloud,fill=gray!20,aspect=2] at (2,2) {MOUTON};
\draw (1,0) -- (3,1) ;\end{scope}
\draw [help lines] (0,0) grid (5,5);\begin{scope}[xshift=1cm,
transform canvas={scale=.5}]\node [draw,cloud,fill=gray!20,
aspect=2] at (2,2) {MOUTON};\draw (1,0) -- (3,1) ;
\end{scope}
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Transformations géométrique
• Environnement scope• Rotations, translations
MOUTON
MOUTON
MOUTON
MOUTON
\draw [help lines] (0,0) grid (5,5);\node [draw,cloud,fill=gray!20,aspect=2] at (2,2) {MOUTON};
\draw (1,0) -- (3,1) ;
\draw [help lines] (0,0) grid (5,5);\begin{scope}
\node [draw,cloud,fill=gray!20,aspect=2] at (2,2) {MOUTON};
\draw (1,0) -- (3,1) ;\end{scope}
\draw [help lines] (0,0) grid (5,5);\begin{scope}[red]
\node [draw,cloud,fill=gray!20,aspect=2] at (2,2) {MOUTON};
\draw (1,0) -- (3,1) ;\end{scope}
\draw [help lines] (0,0) grid (5,5);\begin{scope}[rotate=25]
\node [draw,cloud,fill=gray!20,aspect=2] at (2,2) {MOUTON};
\draw (1,0) -- (3,1) ;\end{scope}
\draw [help lines] (0,0) grid (5,5);\begin{scope}[xshift=1cm,
transform canvas={scale=.5}]\node [draw,cloud,fill=gray!20,
aspect=2] at (2,2) {MOUTON};\draw (1,0) -- (3,1) ;
\end{scope}
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Transformations géométrique
• Environnement scope• Rotations, translations
MOUTON
MOUTON
MOUTON
MOUTON
\draw [help lines] (0,0) grid (5,5);\node [draw,cloud,fill=gray!20,aspect=2] at (2,2) {MOUTON};
\draw (1,0) -- (3,1) ;
\draw [help lines] (0,0) grid (5,5);\begin{scope}
\node [draw,cloud,fill=gray!20,aspect=2] at (2,2) {MOUTON};
\draw (1,0) -- (3,1) ;\end{scope}
\draw [help lines] (0,0) grid (5,5);\begin{scope}[red]
\node [draw,cloud,fill=gray!20,aspect=2] at (2,2) {MOUTON};
\draw (1,0) -- (3,1) ;\end{scope}
\draw [help lines] (0,0) grid (5,5);\begin{scope}[rotate=25]
\node [draw,cloud,fill=gray!20,aspect=2] at (2,2) {MOUTON};
\draw (1,0) -- (3,1) ;\end{scope}
\draw [help lines] (0,0) grid (5,5);\begin{scope}[xshift=1cm,
transform canvas={scale=.5}]\node [draw,cloud,fill=gray!20,
aspect=2] at (2,2) {MOUTON};\draw (1,0) -- (3,1) ;
\end{scope}
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Transformations géométrique
• Environnement scope• Rotations, translations
MOUTONMOUTON
MOUTON
MOUTON
\draw [help lines] (0,0) grid (5,5);\node [draw,cloud,fill=gray!20,aspect=2] at (2,2) {MOUTON};
\draw (1,0) -- (3,1) ;
\draw [help lines] (0,0) grid (5,5);\begin{scope}
\node [draw,cloud,fill=gray!20,aspect=2] at (2,2) {MOUTON};
\draw (1,0) -- (3,1) ;\end{scope}
\draw [help lines] (0,0) grid (5,5);\begin{scope}[red]
\node [draw,cloud,fill=gray!20,aspect=2] at (2,2) {MOUTON};
\draw (1,0) -- (3,1) ;\end{scope}
\draw [help lines] (0,0) grid (5,5);\begin{scope}[rotate=25]
\node [draw,cloud,fill=gray!20,aspect=2] at (2,2) {MOUTON};
\draw (1,0) -- (3,1) ;\end{scope}
\draw [help lines] (0,0) grid (5,5);\begin{scope}[xshift=1cm,
transform canvas={scale=.5}]\node [draw,cloud,fill=gray!20,
aspect=2] at (2,2) {MOUTON};\draw (1,0) -- (3,1) ;
\end{scope}
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Transformations géométrique
• Environnement scope• Rotations, translations
MOUTONMOUTON
MOUTON
MOUTON
\draw [help lines] (0,0) grid (5,5);\node [draw,cloud,fill=gray!20,aspect=2] at (2,2) {MOUTON};
\draw (1,0) -- (3,1) ;
\draw [help lines] (0,0) grid (5,5);\begin{scope}
\node [draw,cloud,fill=gray!20,aspect=2] at (2,2) {MOUTON};
\draw (1,0) -- (3,1) ;\end{scope}
\draw [help lines] (0,0) grid (5,5);\begin{scope}[red]
\node [draw,cloud,fill=gray!20,aspect=2] at (2,2) {MOUTON};
\draw (1,0) -- (3,1) ;\end{scope}
\draw [help lines] (0,0) grid (5,5);\begin{scope}[rotate=25]
\node [draw,cloud,fill=gray!20,aspect=2] at (2,2) {MOUTON};
\draw (1,0) -- (3,1) ;\end{scope}
\draw [help lines] (0,0) grid (5,5);\begin{scope}[xshift=1cm,
transform canvas={scale=.5}]\node [draw,cloud,fill=gray!20,
aspect=2] at (2,2) {MOUTON};\draw (1,0) -- (3,1) ;
\end{scope}
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Placement de nodes
• Coordonnées cartésiennes
• Polaires• Milieu de chemin• Ancres• Arbres• Geogebra
cartésien
\draw [help lines] (0,0) grid (4,4);\draw (2,2) node [draw] {cartésien};
polaire
\draw [help lines] (0,0) grid (4,4);\draw (30:2) node [draw] {polaire};
polaire
\draw [help lines] (0,0) grid (4,4);\draw (30:2) node [draw,rotate=30] {polaire};
a
b
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\draw (a) -| (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\draw (a) -| node {c} (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\path (a) -| node {c} (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,0.5) {a};\node[draw] (b) at (3.5,2.2) {b} ;\path (a) -| node {c} (b);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};\fill (a.center) circle (1mm);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};\fill (a.west) circle (1mm);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw,anchor=west] (a)
at (2,1) {Rectangle};\fill (a.west) circle (1mm);
avoir Être
\draw [help lines] (0,0) grid (4,4);\node (a) at (1,1) {avoir};\node (b) at (2,1) {Être};
avoir Être
\draw [help lines] (0,0) grid (4,4);\node [anchor=base] (a) at (1,1) {avoir};\node [anchor=base] (b) at (2,1) {Être};
root
left right
child child
\node at (2,3.5) {root}child { node {left} }child { node {right}child {node {child}}child {node {child}}
};
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Placement de nodes
• Coordonnées cartésiennes• Polaires
• Milieu de chemin• Ancres• Arbres• Geogebra
cartésien
\draw [help lines] (0,0) grid (4,4);\draw (2,2) node [draw] {cartésien};
polaire
\draw [help lines] (0,0) grid (4,4);\draw (30:2) node [draw] {polaire};
polaire
\draw [help lines] (0,0) grid (4,4);\draw (30:2) node [draw,rotate=30] {polaire};
a
b
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\draw (a) -| (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\draw (a) -| node {c} (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\path (a) -| node {c} (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,0.5) {a};\node[draw] (b) at (3.5,2.2) {b} ;\path (a) -| node {c} (b);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};\fill (a.center) circle (1mm);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};\fill (a.west) circle (1mm);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw,anchor=west] (a)
at (2,1) {Rectangle};\fill (a.west) circle (1mm);
avoir Être
\draw [help lines] (0,0) grid (4,4);\node (a) at (1,1) {avoir};\node (b) at (2,1) {Être};
avoir Être
\draw [help lines] (0,0) grid (4,4);\node [anchor=base] (a) at (1,1) {avoir};\node [anchor=base] (b) at (2,1) {Être};
root
left right
child child
\node at (2,3.5) {root}child { node {left} }child { node {right}child {node {child}}child {node {child}}
};
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Placement de nodes
• Coordonnées cartésiennes• Polaires
• Milieu de chemin• Ancres• Arbres• Geogebra
cartésien
\draw [help lines] (0,0) grid (4,4);\draw (2,2) node [draw] {cartésien};
polaire
\draw [help lines] (0,0) grid (4,4);\draw (30:2) node [draw] {polaire};
polaire
\draw [help lines] (0,0) grid (4,4);\draw (30:2) node [draw,rotate=30] {polaire};
a
b
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\draw (a) -| (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\draw (a) -| node {c} (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\path (a) -| node {c} (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,0.5) {a};\node[draw] (b) at (3.5,2.2) {b} ;\path (a) -| node {c} (b);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};\fill (a.center) circle (1mm);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};\fill (a.west) circle (1mm);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw,anchor=west] (a)
at (2,1) {Rectangle};\fill (a.west) circle (1mm);
avoir Être
\draw [help lines] (0,0) grid (4,4);\node (a) at (1,1) {avoir};\node (b) at (2,1) {Être};
avoir Être
\draw [help lines] (0,0) grid (4,4);\node [anchor=base] (a) at (1,1) {avoir};\node [anchor=base] (b) at (2,1) {Être};
root
left right
child child
\node at (2,3.5) {root}child { node {left} }child { node {right}child {node {child}}child {node {child}}
};
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Placement de nodes
• Coordonnées cartésiennes• Polaires• Milieu de chemin
• Ancres• Arbres• Geogebra
cartésien
\draw [help lines] (0,0) grid (4,4);\draw (2,2) node [draw] {cartésien};
polaire
\draw [help lines] (0,0) grid (4,4);\draw (30:2) node [draw] {polaire};
polaire
\draw [help lines] (0,0) grid (4,4);\draw (30:2) node [draw,rotate=30] {polaire};
a
b
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\draw (a) -| (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\draw (a) -| node {c} (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\path (a) -| node {c} (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,0.5) {a};\node[draw] (b) at (3.5,2.2) {b} ;\path (a) -| node {c} (b);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};\fill (a.center) circle (1mm);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};\fill (a.west) circle (1mm);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw,anchor=west] (a)
at (2,1) {Rectangle};\fill (a.west) circle (1mm);
avoir Être
\draw [help lines] (0,0) grid (4,4);\node (a) at (1,1) {avoir};\node (b) at (2,1) {Être};
avoir Être
\draw [help lines] (0,0) grid (4,4);\node [anchor=base] (a) at (1,1) {avoir};\node [anchor=base] (b) at (2,1) {Être};
root
left right
child child
\node at (2,3.5) {root}child { node {left} }child { node {right}child {node {child}}child {node {child}}
};
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Placement de nodes
• Coordonnées cartésiennes• Polaires• Milieu de chemin
• Ancres• Arbres• Geogebra
cartésien
\draw [help lines] (0,0) grid (4,4);\draw (2,2) node [draw] {cartésien};
polaire
\draw [help lines] (0,0) grid (4,4);\draw (30:2) node [draw] {polaire};
polaire
\draw [help lines] (0,0) grid (4,4);\draw (30:2) node [draw,rotate=30] {polaire};
a
b
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\draw (a) -| (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\draw (a) -| node {c} (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\path (a) -| node {c} (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,0.5) {a};\node[draw] (b) at (3.5,2.2) {b} ;\path (a) -| node {c} (b);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};\fill (a.center) circle (1mm);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};\fill (a.west) circle (1mm);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw,anchor=west] (a)
at (2,1) {Rectangle};\fill (a.west) circle (1mm);
avoir Être
\draw [help lines] (0,0) grid (4,4);\node (a) at (1,1) {avoir};\node (b) at (2,1) {Être};
avoir Être
\draw [help lines] (0,0) grid (4,4);\node [anchor=base] (a) at (1,1) {avoir};\node [anchor=base] (b) at (2,1) {Être};
root
left right
child child
\node at (2,3.5) {root}child { node {left} }child { node {right}child {node {child}}child {node {child}}
};
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Placement de nodes
• Coordonnées cartésiennes• Polaires• Milieu de chemin
• Ancres• Arbres• Geogebra
cartésien
\draw [help lines] (0,0) grid (4,4);\draw (2,2) node [draw] {cartésien};
polaire
\draw [help lines] (0,0) grid (4,4);\draw (30:2) node [draw] {polaire};
polaire
\draw [help lines] (0,0) grid (4,4);\draw (30:2) node [draw,rotate=30] {polaire};
a
b
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\draw (a) -| (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\draw (a) -| node {c} (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\path (a) -| node {c} (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,0.5) {a};\node[draw] (b) at (3.5,2.2) {b} ;\path (a) -| node {c} (b);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};\fill (a.center) circle (1mm);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};\fill (a.west) circle (1mm);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw,anchor=west] (a)
at (2,1) {Rectangle};\fill (a.west) circle (1mm);
avoir Être
\draw [help lines] (0,0) grid (4,4);\node (a) at (1,1) {avoir};\node (b) at (2,1) {Être};
avoir Être
\draw [help lines] (0,0) grid (4,4);\node [anchor=base] (a) at (1,1) {avoir};\node [anchor=base] (b) at (2,1) {Être};
root
left right
child child
\node at (2,3.5) {root}child { node {left} }child { node {right}child {node {child}}child {node {child}}
};
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Placement de nodes
• Coordonnées cartésiennes• Polaires• Milieu de chemin
• Ancres• Arbres• Geogebra
cartésien
\draw [help lines] (0,0) grid (4,4);\draw (2,2) node [draw] {cartésien};
polaire
\draw [help lines] (0,0) grid (4,4);\draw (30:2) node [draw] {polaire};
polaire
\draw [help lines] (0,0) grid (4,4);\draw (30:2) node [draw,rotate=30] {polaire};
a
b
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\draw (a) -| (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\draw (a) -| node {c} (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\path (a) -| node {c} (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,0.5) {a};\node[draw] (b) at (3.5,2.2) {b} ;\path (a) -| node {c} (b);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};\fill (a.center) circle (1mm);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};\fill (a.west) circle (1mm);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw,anchor=west] (a)
at (2,1) {Rectangle};\fill (a.west) circle (1mm);
avoir Être
\draw [help lines] (0,0) grid (4,4);\node (a) at (1,1) {avoir};\node (b) at (2,1) {Être};
avoir Être
\draw [help lines] (0,0) grid (4,4);\node [anchor=base] (a) at (1,1) {avoir};\node [anchor=base] (b) at (2,1) {Être};
root
left right
child child
\node at (2,3.5) {root}child { node {left} }child { node {right}child {node {child}}child {node {child}}
};
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Placement de nodes
• Coordonnées cartésiennes• Polaires• Milieu de chemin• Ancres
• Arbres• Geogebra
cartésien
\draw [help lines] (0,0) grid (4,4);\draw (2,2) node [draw] {cartésien};
polaire
\draw [help lines] (0,0) grid (4,4);\draw (30:2) node [draw] {polaire};
polaire
\draw [help lines] (0,0) grid (4,4);\draw (30:2) node [draw,rotate=30] {polaire};
a
b
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\draw (a) -| (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\draw (a) -| node {c} (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\path (a) -| node {c} (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,0.5) {a};\node[draw] (b) at (3.5,2.2) {b} ;\path (a) -| node {c} (b);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};\fill (a.center) circle (1mm);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};\fill (a.west) circle (1mm);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw,anchor=west] (a)
at (2,1) {Rectangle};\fill (a.west) circle (1mm);
avoir Être
\draw [help lines] (0,0) grid (4,4);\node (a) at (1,1) {avoir};\node (b) at (2,1) {Être};
avoir Être
\draw [help lines] (0,0) grid (4,4);\node [anchor=base] (a) at (1,1) {avoir};\node [anchor=base] (b) at (2,1) {Être};
root
left right
child child
\node at (2,3.5) {root}child { node {left} }child { node {right}child {node {child}}child {node {child}}
};
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Placement de nodes
• Coordonnées cartésiennes• Polaires• Milieu de chemin• Ancres
• Arbres• Geogebra
cartésien
\draw [help lines] (0,0) grid (4,4);\draw (2,2) node [draw] {cartésien};
polaire
\draw [help lines] (0,0) grid (4,4);\draw (30:2) node [draw] {polaire};
polaire
\draw [help lines] (0,0) grid (4,4);\draw (30:2) node [draw,rotate=30] {polaire};
a
b
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\draw (a) -| (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\draw (a) -| node {c} (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\path (a) -| node {c} (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,0.5) {a};\node[draw] (b) at (3.5,2.2) {b} ;\path (a) -| node {c} (b);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};\fill (a.center) circle (1mm);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};\fill (a.west) circle (1mm);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw,anchor=west] (a)
at (2,1) {Rectangle};\fill (a.west) circle (1mm);
avoir Être
\draw [help lines] (0,0) grid (4,4);\node (a) at (1,1) {avoir};\node (b) at (2,1) {Être};
avoir Être
\draw [help lines] (0,0) grid (4,4);\node [anchor=base] (a) at (1,1) {avoir};\node [anchor=base] (b) at (2,1) {Être};
root
left right
child child
\node at (2,3.5) {root}child { node {left} }child { node {right}child {node {child}}child {node {child}}
};
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Placement de nodes
• Coordonnées cartésiennes• Polaires• Milieu de chemin• Ancres
• Arbres• Geogebra
cartésien
\draw [help lines] (0,0) grid (4,4);\draw (2,2) node [draw] {cartésien};
polaire
\draw [help lines] (0,0) grid (4,4);\draw (30:2) node [draw] {polaire};
polaire
\draw [help lines] (0,0) grid (4,4);\draw (30:2) node [draw,rotate=30] {polaire};
a
b
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\draw (a) -| (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\draw (a) -| node {c} (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\path (a) -| node {c} (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,0.5) {a};\node[draw] (b) at (3.5,2.2) {b} ;\path (a) -| node {c} (b);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};\fill (a.center) circle (1mm);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};\fill (a.west) circle (1mm);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw,anchor=west] (a)
at (2,1) {Rectangle};\fill (a.west) circle (1mm);
avoir Être
\draw [help lines] (0,0) grid (4,4);\node (a) at (1,1) {avoir};\node (b) at (2,1) {Être};
avoir Être
\draw [help lines] (0,0) grid (4,4);\node [anchor=base] (a) at (1,1) {avoir};\node [anchor=base] (b) at (2,1) {Être};
root
left right
child child
\node at (2,3.5) {root}child { node {left} }child { node {right}child {node {child}}child {node {child}}
};
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Placement de nodes
• Coordonnées cartésiennes• Polaires• Milieu de chemin• Ancres
• Arbres• Geogebra
cartésien
\draw [help lines] (0,0) grid (4,4);\draw (2,2) node [draw] {cartésien};
polaire
\draw [help lines] (0,0) grid (4,4);\draw (30:2) node [draw] {polaire};
polaire
\draw [help lines] (0,0) grid (4,4);\draw (30:2) node [draw,rotate=30] {polaire};
a
b
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\draw (a) -| (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\draw (a) -| node {c} (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\path (a) -| node {c} (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,0.5) {a};\node[draw] (b) at (3.5,2.2) {b} ;\path (a) -| node {c} (b);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};\fill (a.center) circle (1mm);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};\fill (a.west) circle (1mm);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw,anchor=west] (a)
at (2,1) {Rectangle};\fill (a.west) circle (1mm);
avoir Être
\draw [help lines] (0,0) grid (4,4);\node (a) at (1,1) {avoir};\node (b) at (2,1) {Être};
avoir Être
\draw [help lines] (0,0) grid (4,4);\node [anchor=base] (a) at (1,1) {avoir};\node [anchor=base] (b) at (2,1) {Être};
root
left right
child child
\node at (2,3.5) {root}child { node {left} }child { node {right}child {node {child}}child {node {child}}
};
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Placement de nodes
• Coordonnées cartésiennes• Polaires• Milieu de chemin• Ancres
• Arbres• Geogebra
cartésien
\draw [help lines] (0,0) grid (4,4);\draw (2,2) node [draw] {cartésien};
polaire
\draw [help lines] (0,0) grid (4,4);\draw (30:2) node [draw] {polaire};
polaire
\draw [help lines] (0,0) grid (4,4);\draw (30:2) node [draw,rotate=30] {polaire};
a
b
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\draw (a) -| (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\draw (a) -| node {c} (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\path (a) -| node {c} (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,0.5) {a};\node[draw] (b) at (3.5,2.2) {b} ;\path (a) -| node {c} (b);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};\fill (a.center) circle (1mm);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};\fill (a.west) circle (1mm);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw,anchor=west] (a)
at (2,1) {Rectangle};\fill (a.west) circle (1mm);
avoir Être
\draw [help lines] (0,0) grid (4,4);\node (a) at (1,1) {avoir};\node (b) at (2,1) {Être};
avoir Être
\draw [help lines] (0,0) grid (4,4);\node [anchor=base] (a) at (1,1) {avoir};\node [anchor=base] (b) at (2,1) {Être};
root
left right
child child
\node at (2,3.5) {root}child { node {left} }child { node {right}child {node {child}}child {node {child}}
};
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Placement de nodes
• Coordonnées cartésiennes• Polaires• Milieu de chemin• Ancres
• Arbres• Geogebra
cartésien
\draw [help lines] (0,0) grid (4,4);\draw (2,2) node [draw] {cartésien};
polaire
\draw [help lines] (0,0) grid (4,4);\draw (30:2) node [draw] {polaire};
polaire
\draw [help lines] (0,0) grid (4,4);\draw (30:2) node [draw,rotate=30] {polaire};
a
b
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\draw (a) -| (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\draw (a) -| node {c} (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\path (a) -| node {c} (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,0.5) {a};\node[draw] (b) at (3.5,2.2) {b} ;\path (a) -| node {c} (b);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};\fill (a.center) circle (1mm);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};\fill (a.west) circle (1mm);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw,anchor=west] (a)
at (2,1) {Rectangle};\fill (a.west) circle (1mm);
avoir Être
\draw [help lines] (0,0) grid (4,4);\node (a) at (1,1) {avoir};\node (b) at (2,1) {Être};
avoir Être
\draw [help lines] (0,0) grid (4,4);\node [anchor=base] (a) at (1,1) {avoir};\node [anchor=base] (b) at (2,1) {Être};
root
left right
child child
\node at (2,3.5) {root}child { node {left} }child { node {right}child {node {child}}child {node {child}}
};
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Placement de nodes
• Coordonnées cartésiennes• Polaires• Milieu de chemin• Ancres• Arbres
• Geogebra
cartésien
\draw [help lines] (0,0) grid (4,4);\draw (2,2) node [draw] {cartésien};
polaire
\draw [help lines] (0,0) grid (4,4);\draw (30:2) node [draw] {polaire};
polaire
\draw [help lines] (0,0) grid (4,4);\draw (30:2) node [draw,rotate=30] {polaire};
a
b
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\draw (a) -| (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\draw (a) -| node {c} (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\path (a) -| node {c} (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,0.5) {a};\node[draw] (b) at (3.5,2.2) {b} ;\path (a) -| node {c} (b);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};\fill (a.center) circle (1mm);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};\fill (a.west) circle (1mm);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw,anchor=west] (a)
at (2,1) {Rectangle};\fill (a.west) circle (1mm);
avoir Être
\draw [help lines] (0,0) grid (4,4);\node (a) at (1,1) {avoir};\node (b) at (2,1) {Être};
avoir Être
\draw [help lines] (0,0) grid (4,4);\node [anchor=base] (a) at (1,1) {avoir};\node [anchor=base] (b) at (2,1) {Être};
root
left right
child child
\node at (2,3.5) {root}child { node {left} }child { node {right}child {node {child}}child {node {child}}
};
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Placement de nodes
• Coordonnées cartésiennes• Polaires• Milieu de chemin• Ancres• Arbres• Geogebra
cartésien
\draw [help lines] (0,0) grid (4,4);\draw (2,2) node [draw] {cartésien};
polaire
\draw [help lines] (0,0) grid (4,4);\draw (30:2) node [draw] {polaire};
polaire
\draw [help lines] (0,0) grid (4,4);\draw (30:2) node [draw,rotate=30] {polaire};
a
b
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\draw (a) -| (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\draw (a) -| node {c} (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,1) {a};\node[draw] (b) at (3,2) {b};\path (a) -| node {c} (b);
a
b
c
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (1,0.5) {a};\node[draw] (b) at (3.5,2.2) {b} ;\path (a) -| node {c} (b);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};\fill (a.center) circle (1mm);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw] (a) at (2,1) {Rectangle};\fill (a.west) circle (1mm);
Rectangle
\draw [help lines] (0,0) grid (4,4);\node[draw,anchor=west] (a)
at (2,1) {Rectangle};\fill (a.west) circle (1mm);
avoir Être
\draw [help lines] (0,0) grid (4,4);\node (a) at (1,1) {avoir};\node (b) at (2,1) {Être};
avoir Être
\draw [help lines] (0,0) grid (4,4);\node [anchor=base] (a) at (1,1) {avoir};\node [anchor=base] (b) at (2,1) {Être};
root
left right
child child
\node at (2,3.5) {root}child { node {left} }child { node {right}child {node {child}}child {node {child}}
};
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Boucle for et autre goodies
• foreach
• clip (dans un scope)• Transparence• . . .
0 1 2 3 4 5 6 7 8 9
\foreach \i in {0,...,9}\draw (\i/2,1) node {\i} ;
\draw (1,1.5) circle (1.5) ;\draw (3,1.5) circle (1.5) ;\clip (3,1.5) circle (1.5) ;\fill [red] (1,1.5) circle (1.5) ;
\draw [fill=blue,fill opacity=.5](1,1.5) circle (1.5) ;
\draw [fill=green,fill opacity=.5](3,1.5) circle (1.5) ;
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Boucle for et autre goodies
• foreach• clip (dans un scope)
• Transparence• . . .
0 1 2 3 4 5 6 7 8 9
\foreach \i in {0,...,9}\draw (\i/2,1) node {\i} ;
\draw (1,1.5) circle (1.5) ;\draw (3,1.5) circle (1.5) ;\clip (3,1.5) circle (1.5) ;\fill [red] (1,1.5) circle (1.5) ;
\draw [fill=blue,fill opacity=.5](1,1.5) circle (1.5) ;
\draw [fill=green,fill opacity=.5](3,1.5) circle (1.5) ;
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Boucle for et autre goodies
• foreach• clip (dans un scope)• Transparence
• . . .
0 1 2 3 4 5 6 7 8 9
\foreach \i in {0,...,9}\draw (\i/2,1) node {\i} ;
\draw (1,1.5) circle (1.5) ;\draw (3,1.5) circle (1.5) ;\clip (3,1.5) circle (1.5) ;\fill [red] (1,1.5) circle (1.5) ;
\draw [fill=blue,fill opacity=.5](1,1.5) circle (1.5) ;
\draw [fill=green,fill opacity=.5](3,1.5) circle (1.5) ;
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Boucle for et autre goodies
• foreach• clip (dans un scope)• Transparence• . . .
0 1 2 3 4 5 6 7 8 9
\foreach \i in {0,...,9}\draw (\i/2,1) node {\i} ;
\draw (1,1.5) circle (1.5) ;\draw (3,1.5) circle (1.5) ;\clip (3,1.5) circle (1.5) ;\fill [red] (1,1.5) circle (1.5) ;
\draw [fill=blue,fill opacity=.5](1,1.5) circle (1.5) ;
\draw [fill=green,fill opacity=.5](3,1.5) circle (1.5) ;
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
ExemplesA
A
B
B
C
C
D
D
E
E
F
F
G
G
H
H
I
I
J
J
K
K
L
L
M
M
N
N
O
O
P
P
Q
Q
R
R
S
S
T
T
U
U
V
V
W
W
X
X
1 12 23 34 45 56 67 78 89 910 1011 1112 1213 1314 1415 1516 1617 1718 1819 1920 2021 2122 2223 2324 24
1 5 6 7
28 3 4 9
1014
13 12 11 15 16 17 18 19 20
1 a/b/c
2
3
4 a/b/c4 d
5 a/b
6
7 a/b8 a/b
9 a/b
10 a/b
20 a/b
22 a/b
15
4,27
7,8,9,
10,20
,22
2341,42,43,44
B
Surface de coupure entrele sommet et la base deBx1
vi
edges of εn ∩ Bi
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Exemples
A
A
B
B
C
C
D
D
E
E
F
F
G
G
H
H
I
I
J
J
K
K
L
L
M
M
N
N
O
O
P
P
Q
Q
R
R
S
S
T
T
U
U
V
V
W
W
X
X
1 12 23 34 45 56 67 78 89 910 1011 1112 1213 1314 1415 1516 1617 1718 1819 1920 2021 2122 2223 2324 24
1 5 6 7
28 3 4 9
1014
13 12 11 15 16 17 18 19 20
1 a/b/c
2
3
4 a/b/c4 d
5 a/b
6
7 a/b8 a/b
9 a/b
10 a/b
20 a/b
22 a/b
15
4,27
7,8,9,
10,20
,22
2341,42,43,44
B
Surface de coupure entrele sommet et la base deBx1
vi
edges of εn ∩ Bi
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Exemples
A
A
B
B
C
C
D
D
E
E
F
F
G
G
H
H
I
I
J
J
K
K
L
L
M
M
N
N
O
O
P
P
Q
Q
R
R
S
S
T
T
U
U
V
V
W
W
X
X
1 12 23 34 45 56 67 78 89 910 1011 1112 1213 1314 1415 1516 1617 1718 1819 1920 2021 2122 2223 2324 24
1 5 6 7
28 3 4 9
1014
13 12 11 15 16 17 18 19 20
1 a/b/c
2
3
4 a/b/c4 d
5 a/b
6
7 a/b8 a/b
9 a/b
10 a/b
20 a/b
22 a/b
15
4,27
7,8,9,
10,20
,22
2341,42,43,44
B
Surface de coupure entrele sommet et la base deBx1
vi
edges of εn ∩ Bi
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Exemples
A
A
B
B
C
C
D
D
E
E
F
F
G
G
H
H
I
I
J
J
K
K
L
L
M
M
N
N
O
O
P
P
Q
Q
R
R
S
S
T
T
U
U
V
V
W
W
X
X
1 12 23 34 45 56 67 78 89 910 1011 1112 1213 1314 1415 1516 1617 1718 1819 1920 2021 2122 2223 2324 24
1 5 6 7
28 3 4 9
1014
13 12 11 15 16 17 18 19 20
1 a/b/c
2
3
4 a/b/c4 d
5 a/b
6
7 a/b8 a/b
9 a/b
10 a/b
20 a/b
22 a/b
15
4,27
7,8,9,
10,20
,22
2341,42,43,44
B
Surface de coupure entrele sommet et la base deB
x1
vi
edges of εn ∩ Bi
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Exemples
A
A
B
B
C
C
D
D
E
E
F
F
G
G
H
H
I
I
J
J
K
K
L
L
M
M
N
N
O
O
P
P
Q
Q
R
R
S
S
T
T
U
U
V
V
W
W
X
X
1 12 23 34 45 56 67 78 89 910 1011 1112 1213 1314 1415 1516 1617 1718 1819 1920 2021 2122 2223 2324 24
1 5 6 7
28 3 4 9
1014
13 12 11 15 16 17 18 19 20
1 a/b/c
2
3
4 a/b/c4 d
5 a/b
6
7 a/b8 a/b
9 a/b
10 a/b
20 a/b
22 a/b
15
4,27
7,8,9,
10,20
,22
2341,42,43,44
B
Surface de coupure entrele sommet et la base deB
x1
vi
edges of εn ∩ Bi
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Pré-Conclusion
• Compatible avec LATEX, Plain TEX, pdfTEX. . .
• . . . avec minipages, beamer, . . .• Syntaxe cohérente• Maintenu• Code dans le fichier, compilateur unique• Challenging
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Pré-Conclusion
• Compatible avec LATEX, Plain TEX, pdfTEX. . .• . . . avec minipages, beamer, . . .
• Syntaxe cohérente• Maintenu• Code dans le fichier, compilateur unique• Challenging
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Pré-Conclusion
• Compatible avec LATEX, Plain TEX, pdfTEX. . .• . . . avec minipages, beamer, . . .• Syntaxe cohérente
• Maintenu• Code dans le fichier, compilateur unique• Challenging
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Pré-Conclusion
• Compatible avec LATEX, Plain TEX, pdfTEX. . .• . . . avec minipages, beamer, . . .• Syntaxe cohérente• Maintenu
• Code dans le fichier, compilateur unique• Challenging
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Pré-Conclusion
• Compatible avec LATEX, Plain TEX, pdfTEX. . .• . . . avec minipages, beamer, . . .• Syntaxe cohérente• Maintenu• Code dans le fichier, compilateur unique
• Challenging
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Pré-Conclusion
• Compatible avec LATEX, Plain TEX, pdfTEX. . .• . . . avec minipages, beamer, . . .• Syntaxe cohérente• Maintenu• Code dans le fichier, compilateur unique• Challenging
TikZ, c’est quoi ? Utilisation basique Utilisation avancée Exemples Conclusion
Conclusion
TikZ, c’est bien !