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 have a custom command

    \draw[#1] (0,0) ellipse (0.7cm and 0.1cm);
    \draw[#1] (0.8,0) circle (0.1cm );
    \draw[#1] (1.6,0) ellipse (0.7cm and 0.1cm);

Lets draw two wind turbine


  \windturbine[draw=black,fill=black, very thick]{0,0};  
  \windturbine[draw=black,fill=black, very thick]{0,7};


I would like to rotate the first one with x degree and connect the two drawings with a line, how can I achieve that?

share|improve this question
Does this topic help? – masu Oct 15 '13 at 12:10
Not, that doesn't solve my problem. – OHLÁLÁ Oct 15 '13 at 12:35
up vote 3 down vote accepted

I couldn't find out which one is the "first" (the first you wrote, or the first on the page). Why don't you use the rotate option?

If you set the middle of the coordinates in the middle of the turbine (rewrite the \windturbine command like this), you can easily connect them with a line (using their coordinates).



    \draw[#1] (-0.8,0) ellipse (0.7cm and 0.1cm);
    \draw[#1] (0,0) circle (0.1cm );
    \draw[#1] (0.8,0) ellipse (0.7cm and 0.1cm);



  \windturbine[draw=black,fill=black, very thick]{0,0};  
  \windturbine[draw=black,fill=black, very thick, rotate=30]{0,7};
    \draw[very thick] (0,0) -- (0,7);


share|improve this answer
Thanks for your help, I have one more question, how can I create a node from the \windturbine? – OHLÁLÁ Oct 15 '13 at 15:37
Check this topic. – masu Oct 15 '13 at 15:45
@run did it help? – masu Oct 16 '13 at 13:13
Yes, Thank you, that solved my problem, – OHLÁLÁ Oct 16 '13 at 13:16

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.