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.

I have a question which is no doubt simple to most people but I have been struggling with it for a while now. I have the following code:

\begin{tikzpicture}

% Add information on the process above the thermocline
\node [text width=1cm,align=center,font = \scriptsize] (A) at (7.5,6) {A};
\node [text width=1cm,align=center,font = \scriptsize]  (B) at (6.5,5.5) {B};
\node [text width=1cm,align=center,font = \scriptsize] (C) at (7.5,4.75) {C};
\node [text width=1cm,align=center,font = \scriptsize]  (D) at (8.5,5.5) {D};

\draw [->] (A.west)--(B.north);
\draw [->] (B.south)--(C.west);
\draw [->] (C.east)--(D.south);
\draw [->] (D.north)--(A.east);

\end{tikzpicture}

which returns:

enter image description here

How can I alter these lines so they are curved, furthermore I would like it to be almost a circle where the nodes are written on top of the curved path thus resulting in gaps in the circle where these nodes are placed.

share|improve this question
    
have you seen the diagram at the top of page 48 of the manual? –  cmhughes Jan 24 '13 at 21:28
add comment

1 Answer

up vote 3 down vote accepted

Here is something similar to what you want:

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{arrows}
\begin{document}
\begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=3cm, thick,main node/.style={font=\sffamily\Large\bfseries}]
  \node[main node] (1) {A};
  \node[main node] (2) [below left of=1] {B};
  \node[main node] (3) [below right of=2] {C};
  \node[main node] (4) [below right of=1] {D};

  \path[every node/.style={font=\sffamily\small}]
    (1) edge [bend right] node[left] {} (2)
    (2) edge [bend right] node[left] {} (3)
    (3) edge [bend right] node[right] {} (4)
    (4) edge [bend right] node[right] {} (1);
\end{tikzpicture}
\end{document}

resulting in:

enter image description here

The is a modified example of TeXample.

share|improve this answer
add comment

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.