In the following code, TikZ is to draw four nodes at the vertices of a parallelogram. In two of the nodes, I would like to put two lines of text. I indicate this using //. I thought that using the contents option would allow for that.
To draw the edges of the parallelogram, should I first label the coordinates something like A, B, C, and D, and proceed to issue a command like \draw (A) -- (B) -- (C) -- (D) -- cycle?
What is the command to put the nodes in the foreground? What is the command to add a bit of space between the border of the node at (2,4) and the two line segments going toward it?
\documentclass{amsart}
\usepackage{tikz}
\usetikzlibrary{calc,angles,shapes,positioning,intersections,quotes,decorations.markings}
\begin{document}
\begin{tikzpicture}
\path (0,0) node [red] {origin}
(1,3) node[blue]{node contents={upper \\ left}}
(2,4) node[green]{diagonal}
(3,2) node[node contents={lower \\ right}] ;
\end{tikzpicture}
\end{document}


\draw (0,0) -- (3,5) -- (8,8) -- (5,3) -- cycle;to draw the parallelogram. To a programmer, would it be more prudent to first declare these coordinates with\coordinatecommand? – Adelyn Apr 15 '15 at 19:44xshiftandyshift. – Christopher Apr 15 '15 at 20:00anchor=north eastbut I would like to move it a little more. – Adelyn Apr 15 '15 at 20:18