Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass[border=1pt]{standalone}
- usepackage{tikz}
- usetikzlibrary{automata,positioning}
- begin{document}
- begin{tikzpicture}[shorten >=1pt,node distance=1.0cm,on grid,auto]
- node[state,rectangle, align=center] (q_r) [] {This is a \ square};
- node[coordinate] (q_0) [right=of q_r, xshift=3cm] {};
- node[coordinate] (q_1) [left=of q_r, xshift=-3cm, yshift=1mm] {};
- node[coordinate] (q_2) [left=of q_r, xshift=-3cm, yshift=-1mm] {};
- path[->]
- (q_r) edge [] node {This is an arrow} (q_0);
- draw[->] ([yshift=-2mm]q_r.west) -- ([yshift=-3mm]q_1) node[midway] {This is an arrow};
- draw[->] ([yshift=2mm]q_r.west) -- ([yshift=3mm]q_2) node[midway,swap] {This is an arrow};
- end{tikzpicture}
- end{document}
Add Comment
Please, Sign In to add comment