0

Question: I want to add angle marks to all angles in the figure with specified angle value.

\documentclass[12pt]{article}
\usepackage{pgf,tikz,pgfplots}
\usetikzlibrary{arrows}
\pagestyle{empty}
\usepackage{tkz-euclide}
\usetkzobj{all}
\begin{document}
\begin{tikzpicture}
\draw [<->,line width=0.8pt] (-3,4)-- (3,4);
\draw [<->,line width=0.8pt] (-3,0)-- (3,0);
\draw [line width=0.5pt] (-1.52,4)-- (1.52,0);
\draw [line width=0.5pt] (1.5,4)-- (-1.52,0);
\draw[color=black] (-1.55,4.30) node {$P$};
\draw[color=black] (1.45,-0.3) node {$B$};
\draw[color=black] (1.45,4.30) node {$S$};
\draw[color=black] (-0.5,2.00) node {$O$};
\draw[color=black] (-1.55,-0.3) node {$S$};
\end{tikzpicture}
\end{document}
SandyM
  • 2,757
  • Ok next time this will not happened... very honestly i am telling you that i am beginner to tikz – SandyM Apr 10 '19 at 10:01
  • No problem :) but you can't add angles unless you give your coordinates some names. Then looking at the linked question. –  Apr 10 '19 at 10:02
  • @JouleV Trying my best but not getting exactly what i want – SandyM Apr 10 '19 at 10:12

1 Answers1

2

I add only one angle, and I think you can do the rest.

\documentclass[tikz]{standalone}
\usetikzlibrary{angles,quotes}
\begin{document}
\begin{tikzpicture}
\draw [<->,line width=0.8pt] (-3,4) coordinate (x1)-- (3,4) coordinate (y1);
\draw [<->,line width=0.8pt] (-3,0) coordinate (x2)-- (3,0) coordinate (y2);
\draw [line width=0.5pt] (-1.52,4) coordinate (p)-- (1.52,0) coordinate (b);
\draw [line width=0.5pt] (1.5,4) coordinate (sa)-- (-1.52,0) coordinate (sb);
\path (p) node[above] {$P$} (b) node[below] {$B$} (sa) node[above] {$S$} (sb) node[below] {$S$} (0,2) node[left] {$O$};
\pic[draw,angle radius=.5cm,angle eccentricity=1.5,"$\alpha$"] {angle=b--p--y1};
\end{tikzpicture}
\end{document}

enter image description here