Last active
April 23, 2024 01:54
-
-
Save AndiH/f99d9b0cbd3519c27af5b96cfbeff97c to your computer and use it in GitHub Desktop.
TikZ Arrow Tip Overview
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[10pt]{article} | |
\usepackage{xcolor} | |
\usepackage{tikz} | |
\usetikzlibrary{arrows.meta}\begin{document} | |
Ti\emph{k}Z arrow tips overview (manual Section 16.5, \verb+arrows.meta+) | |
\begin{tikzpicture}[yscale=-1, y=2.5ex] | |
\foreach \tip [count=\i] in { | |
Arc Barb, Bar, Bracket, Hooks, Parenthesis, Straight Barb, Tee Barb, | |
Classical TikZ Rightarrow, Computer Modern Rightarrow, To, | |
Circle, Diamond, Ellipse, Kite, Latex, Latex[round], Rectangle, Square, Stealth, Stealth[round], Triangle, Turned Square, | |
Circle[open], Square[open], Triangle[open], Turned Square[open], | |
Rays[n=8] | |
} { | |
\draw [-{\tip}] (0, \i) to ++(1, 0) node [right] {\texttt{\tip}}; | |
} | |
\end{tikzpicture} | |
\end{document} |
You can specify width and height for certain arrow tips, like
\draw[-{Latex[length=3mm,width=5mm]}] (0,0)--(2,0);
for the Latex
tip; copied from https://tex.stackexchange.com/a/161238/56326.
@AndiH Thanks :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is it possible to make arrow tips smaller?