Skip to content

Instantly share code, notes, and snippets.

@scmbradley
Created June 8, 2021 07:23
Show Gist options
  • Save scmbradley/48624d3181046fef0e2fdc5dfb251da6 to your computer and use it in GitHub Desktop.
Save scmbradley/48624d3181046fef0e2fdc5dfb251da6 to your computer and use it in GitHub Desktop.
Simple demonstration of TikZ
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}[very thick,-stealth]
\node (a) {A};
\node [above right = 2em and 5em of a] (b) {B};
\node [below right= 1em and 2em of a](d) {D};
\node [right = 1em of d](c) {C};
\draw (a) edge [bend left] (b);
\draw (a) edge [bend right] (d);
\draw (d) -- (c);
\end{tikzpicture}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment