如何改变节点向左的距离
\node[state] (q4) [below left of=q3] {$homing$};
好的,它稍微偏左了一点,但我想让它更向左移动一点。我该怎么做?
答案1
您可以使用xshift
:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}[state/.style={draw=red,ultra thick,rectangle,rounded corners}]
\node[state] (q3) {$test$};
\node[state] (q4) [below left of=q3] {$homing$};
\node[state] (q5) [below left of=q3,xshift=-2cm] {$homing1$};
\end{tikzpicture}
\end{document}