Skip to content

Instantly share code, notes, and snippets.

@AndiH
Last active April 23, 2024 01:54
Show Gist options
  • Star 17 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndiH/f99d9b0cbd3519c27af5b96cfbeff97c to your computer and use it in GitHub Desktop.
Save AndiH/f99d9b0cbd3519c27af5b96cfbeff97c to your computer and use it in GitHub Desktop.
TikZ Arrow Tip Overview
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
\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}
@avatar-lavventura
Copy link

Is it possible to make arrow tips smaller?

@AndiH
Copy link
Author

AndiH commented Aug 9, 2022

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.

@avatar-lavventura
Copy link

@AndiH Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment