Take the 2-minute tour ×
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.

Using

\draw [->] (2) to[loop above] node[auto] {$\beta_2$} (2);

I get "clockwise" loop. Is it possible to get a counter-clockwise loop?

share|improve this question
    
If I may be so bold: if my answer solved your problem, would you consider accepting it? –  Torbjørn T. Mar 15 '12 at 22:42
    
Sorry, @TorbjørnT., I got involved with another project and hadn't got around to testing your answer. It works well; thank you for the multiple suggestions! –  Richard Mar 16 '12 at 14:25

1 Answer 1

up vote 5 down vote accepted

Two options:

\documentclass{article}
\usepackage{tikz}
\begin{document}

\begin{tikzpicture}
\node[circle,draw](2){?};
\draw [->] (2) edge[in=100,out=80,loop] node[above] {$\beta_2$} (2);
\end{tikzpicture}

\begin{tikzpicture}
\node[circle,draw](2){?} edge[in=100,out=80,loop] node[above] {$\beta_2$}();
\end{tikzpicture}
\end{document}

enter image description here

Another way is to change the every loop style. By default this is ->,shorten >=1pt, if you change it to <-,shorten <=1pt, the arrow is turned around.

\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[every loop/.style={<-,shorten <=1pt}]
\node[circle,draw](2){?} edge[loop above] node[above] {$\beta_2$}();
\end{tikzpicture}
\end{document}

enter image description here

share|improve this answer

Your Answer

 
discard

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.