TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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.