Rabu, 04 Desember 2024

Straight Angle In Latex 1a

1. Type this following latex code in the latex editor:

% !TEX TS-program=pdflatex

% !TEX encoding=UTF-8 Unicode

%

% File name: straightAngle1.tex

% Description:

% The Straight Angle

%

% Composer: private course and tutor course

\documentclass[12pt,a4paper]{report}

\usepackage{tikz}

\usepackage{amsmath}

\usepackage{bm}

\usepackage[active,tightpage]{preview}

\PreviewEnvironment{tikzpicture}

\setlength\PreviewBorder{0.25pt}


\begin{document}

%---------------------------

% horizontal straight angle with angle in the top side

%---------------------------

\begin{tikzpicture}[scale=3.5,thick]

% Label the nodes and position

 \coordinate[label=below:$\textbf{A}$] (A) at (0,0);

 \coordinate[label=below left:$\textbf{B}$] (B) at (-1.5,0);

 \coordinate[label=below right:$\textbf{C}$] (C) at (1.5,0);


 % Draw the Angle Leg / Angle Ray

 \draw (B) -- (A) node [circle,fill=black,radius=0.01,scale=0.1] {vertex};

 \draw (C) -- (B) ; 

 

 % Label the sides

 \node[above] at (-0.75,0) {$\textbf{a}$};

 \node[below] at (-0.75,0) {\textbf{left ray}};

 \node[below] at (0.75,0) {\textbf{right ray}};

 \node[above] at (0.75,0) {$\textbf{b}$};


 % Draw the right angle mark

 \draw [thick] (0.2,0) arc(0:180:0.2);

\end{tikzpicture}
\end{document}

2. Save file as straightAngle1.tex
3. Then build or typeset the Latex code.

Output




<< go to Types Of Angles


Tidak ada komentar:

Posting Komentar

Various Other Posts