LaTeX forum ⇒ Graphics, Figures & TablesDraw an angle labeled \theta

Information and discussion about graphics, figures & tables in LaTeX documents.
Philosophaie
Posts: 17
Joined: Sat Mar 21, 2015 8:59 pm

Draw an angle labeled \theta

Postby Philosophaie » Wed Oct 14, 2015 1:05 pm

How do you draw an angle labeled \theta?
I can draw the right angle.


  1. \begin{document}
  2.  
  3. \begin{tikzpicture}[dot/.style={fill,circle,inner sep=1.5pt}]
  4.  
  5. \coordinate (Q) at (0,0);
  6. \coordinate (A) at ($(Q)+(0:4)$);
  7. \coordinate (P) at ($(Q)+(90:3)$);
  8.  
  9. \draw (A) -- (Q) -- (P) -- cycle;
  10.  
  11. \path (A) -- node [midway,sloped,above] {r} (P);
  12. \path (A) -- node [midway,sloped,below] {a} (Q);
  13. \path (P) -- node [midway,sloped,below] {x} (Q);
  14. ***\angle {A} -- ["$\theta$",draw,,angle radius=1cm] {angle = Q--A--P}***
  15. \tkzMarkRightAngle(A,Q,P);
  16. \end{tikzpicture}
  17.  
  18. \end{document}

Tags:

User avatar
Stefan Kottwitz
Site Admin
Posts: 9513
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Wed Oct 14, 2015 2:59 pm

Hm,

  • which document class?
  • which packages? TikZ for sure, and one of the tkz package it seems
  • which additional libraries are required? (at least calc I think)
  • what further settings? Activating tkz objects?

It would be much easier to answer such question, if we could test the code and our suggestion. All this questions would be clear, if you would post the example with a working preamble (minimal, but sufficient). That would be good in general.

Untested: you can do this with the pic feature and the angles library.

Stefan
Site admin


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: MSN [Bot] and 10 guests