- #1
- 2,020
- 827
I thought I'd try out the tikz thing.
I am trying to draw a square with the four points A, B, C, and D labeled along with functions listed by each "arrow." I based my code on the triangle that was on the tikz example. Something is obviously wrong.
Heck I'd just be happy to get the square to show.
Would someone please guide me through this one? And how would you make the lines arrows?
Thanks!
-Dan
I am trying to draw a square with the four points A, B, C, and D labeled along with functions listed by each "arrow." I based my code on the triangle that was on the tikz example. Something is obviously wrong.
Heck I'd just be happy to get the square to show.
Code:
\begin{tikzpicture}[blue]
\coordinate (A) at (0,0);
\coordinate (B) at (4,0);
\coordinate (D) at (4,4);
\coordinate (C) at (0,4);
\draw[blue, ultra thick] (A) -- (B) -- (D) -- (C) cycle;
\path (A) node[below left] {A} -- (B) node[below right] {B} -- (D) node[above right] {D} -- (C) node[above left];
\path (A) -- node[below] {f} (B) -- node[right] {$\beta$} (D) -- node[above left] {g} (C) -- node[left] {$\alpha$} (A);
\end{tikzpicture}
Would someone please guide me through this one? And how would you make the lines arrows?
Thanks!
-Dan