Last active
June 14, 2023 22:01
-
-
Save sailik1991/67126065af5a55748bfba90527c2c5c1 to your computer and use it in GitHub Desktop.
TIKZ Goodies
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[convert={density=300,outext=.png}]{standalone} | |
% Tikz packages | |
\usepackage{tikz} | |
\usepackage{pgf-pie} | |
\usetikzlibrary{backgrounds} | |
\usetikzlibrary{decorations.text} | |
\usetikzlibrary{arrows,automata} | |
\usetikzlibrary{shapes.geometric} | |
\usetikzlibrary{positioning,calc} | |
\usetikzlibrary{shadows,arrows.meta} | |
\usetikzlibrary{arrows.meta,shadows} | |
% You can build graphs without matplotlib too, but maybe that is stretching it a bit too far. | |
\usepackage{pgfplots} | |
\usepackage{pgfplotstable} | |
\pgfplotsset{compat=1.14} | |
\usepgfplotslibrary{fillbetween} | |
\usetikzlibrary{intersections} | |
\usepackage{forest} | |
% \pgfplotsset{width=9cm,compat=1.9} | |
\usetikzlibrary{pgfplots.dateplot} | |
\usepackage{pgfplotstable} | |
\usepackage{filecontents} | |
\usetikzlibrary{backgrounds} | |
\usepgfplotslibrary{fillbetween} | |
% Use emojis | |
\usepackage{emoji} | |
% Use fontawesome | |
\usepackage{fontawesome} | |
\begin{document} | |
\begin{tikzpicture} | |
% Node with almost all options you will probably need | |
\node at (-9, 0) [text width=1.55cm, densely dotted, rectangle, draw, rounded corners=0.1cm] (1) { | |
Node $1$ | |
}; | |
\node at (-5.5, 0) [text width=1.3cm] (2) { | |
\centering | |
Node $2$ | |
}; | |
% Path with almost all options you will probably realistically need | |
\path (1) edge [red, ->, densely dashed, out=0, in=180, line width=0.6pt] (2); | |
\end{tikzpicture} | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment