- First draw the node
B
. Then use above left
and above right
to
draw the nodes A
and B
respectively. OR
- Use xshift and push the node
B
by half of the length between
nodes. (You know the node distance). But in this method the minimum distance between the node A
(or C
) and node B
is not 1.5cm but greater. OR
- First draw
A
and then B
and then C
.
And in cases 1 and 3 the nodes A
and c
are not separated by 1.5cm :-(
.
Code:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}[node distance=1.5cm]
\node at (0,0) (B) {B};
\node (C) [above right of=B] {C};
\node (A) [above left of=B] {A};
\end{tikzpicture}
\begin{tikzpicture}[node distance=1.5cm]
\node at (0,0) (A) {A};
\node (C) [right of= A] {C};
\node (B) [below of=A,xshift=.75cm] {B};
\end{tikzpicture}
\begin{tikzpicture}[node distance=1.5cm]
\node at (0,0) (A) {A};
\node (B) [below right of= A] {B};
\node (B) [above right of=B] {C};
\end{tikzpicture}
\end{document}

\documentclass
and the appropriate packages so that those trying to help don't have to recreate it. While solving problems is fun, setting them up is not. Then those trying to help can simply cut and paste your MWE and get started on solving problem.