Drawing arrows
We already saw how to add basic arrow tips to lines and edges: we added the ->
option to get a right arrow tip. However, the default arrow tips look a bit small and thin. Let’s see how to modify them.
The general syntax is \draw[starttip-endtip]
or edge[start arrow-endarrow]
. Previously, we had just >
as the end tip and no start tip.
Quick examples are provided in the following list:
->
: Right arrow,<-
: Left arrow<->
: Left and right arrow->>
: Double right arrow,<<-
: Double left arrow-Triangle
: Triangle-shaped arrow-Stealth
: Stealth-plane-shaped arrow-LaTeX
: Black triangle arrow with slightly bent sides, like\vec
in LaTeX picture mode
You can combine one or several tops at an arrow’s start and end.
When you use arrows, always load the arrows.meta
package:
\usetikzlibrary{arrows.meta}
The old TikZ arrows
library should not be used anymore. It still exists; that’...