Graphics, Figures & TablesDraw an angle labeled \theta

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

Draw an angle labeled \theta

Post by Philosophaie »

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

Code: Select all

\begin{document}

\begin{tikzpicture}[dot/.style={fill,circle,inner sep=1.5pt}]

  \coordinate (Q) at (0,0);
  \coordinate (A) at ($(Q)+(0:4)$);
  \coordinate (P) at ($(Q)+(90:3)$);

  \draw (A) -- (Q) -- (P) -- cycle;

  \path (A) -- node [midway,sloped,above] {r} (P);
  \path (A) -- node [midway,sloped,below] {a} (Q);
  \path (P) -- node [midway,sloped,below] {x} (Q);
  ***\angle {A} --  ["$\theta$",draw,,angle radius=1cm] {angle = Q--A--P}*** 
  \tkzMarkRightAngle(A,Q,P);
\end{tikzpicture}

\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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

Draw an angle labeled \theta

Post by Stefan Kottwitz »

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
LaTeX.org admin
Post Reply