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

It seems PGF manual for v1.18 doesn't cover the case on how to change the position of the initial text relative to the initial transition. Accoring to the PGF manual section 19.3 the parameters of initial state allow me to change the position of the text:

– initial where=⟨direction⟩ set the place where the text should be shown. Allowed values are above, below, left, and right.

This, however, changes the position of both arrow and the text, for instance

\begin{tikzpicture}[>=latex, initial text={start}, initial where=left]
\node[state,initial] (q_0);

results in this:


What I'd like to have is the text positioned relative to the arrow, e.g. above:


Is there a standard way to achieve this?

share|improve this question
I think you will have to get some more to the point. The manual for which package v1.18 do you mean? Tell us a little more about what you want to achieve and maybe post a minimal working example (MWE) to get things clearer to us. – Benedikt Bauer Oct 19 '12 at 12:44
This question is really hard to be understood. I think you should clarify better things, as Benedikt suggested, because as it stands provide an answer is difficult. – Claudio Fiandrino Oct 19 '12 at 13:48
I think the passage cited by you from the TikZ manual is a bit misleading. The above, left,... options tell, if the arrow for the initial state should come from above, left,... direction of the node. – Benedikt Bauer Oct 19 '12 at 14:39
up vote 9 down vote accepted

I have not seen that this feature is supported by the library automata. But the arrow with text can be disabled and the drawing can be done with usual TikZ means:



  \node[state] (q_0) {$q_0$};
  \draw[<-] (q_0) -- node[above] {start} ++(-2cm,0);



share|improve this answer
Actually there is two arrows on the picture. You may want to drop initial param of \node (and initial text as well. – ony Dec 21 '15 at 11:17
@ony Thanks, answer updated and simplified. – Heiko Oberdiek Dec 22 '15 at 5:10

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.