23

How do you change the node distance to the left for a

 \node[state]         (q4) [below left of=q3] {$homing$}; 

Ok, it's a little bit on the left, but I want it to move it more to the left. How can I do that ?

  • 3
    Using the positioning library you can use \node[below left = -1cm of q3] {$homing$}; – percusse Mar 19 '12 at 22:44
32

You can use 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}

enter image description here

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.