Sign up ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am drawing finite automata in Tex using the tikz automata library. Here is how my figure begins.

\begin{tikzpicture}[shorten >=1pt,node distance=2cm,on grid,auto] 
\node[state,initial] (q_start)   {$q_start$};

This creates an initial node. The "start ->" arrow is pointing to the node from the left.

How do I change this direction? I want "start ->" to point at the initial node from the top.

share|improve this question

1 Answer 1

up vote 7 down vote accepted

Key initial where sets the direction (above, below, left, right), see 24.3 Initial and Accepting States of the manual.

\begin{tikzpicture}[shorten >=1pt,node distance=2cm,on grid,auto]
\node[state,initial,initial where=above,] (q_start)   {$q_\text{start}$};


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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