Kamis, 05 Desember 2024

Right Angle In Latex 1

1. Type this following latex code in latex editor:
% !TEX TS-program=pdflatex
% !TEX encoding=UTF-8 Unicode
%
% File name: rightAngle1.tex
% Description:
% The Right 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}
% figure 1 right angle in the bottom left side
\begin{tikzpicture}[scale=3.5,thick]
% Label the nodes and position
 \coordinate[label=below right:$\textbf{A}$] (A) at (0,0);
 \coordinate[label=below left:$\textbf{B}$] (B) at (-1.5,0);
 \coordinate[label=above:$\textbf{C}$] (C) at (-1.5,1.5);

 % Draw the Angle Leg / Angle Ray
 \draw (B) -- (A);
 \draw (C) -- (B) ; 
 
 % Label the sides
 \node[above] at (-0.75,0) {$\textbf{c}$};
 \node[below] at (-0.75,0) {\textbf{horizontal angle leg}};
 \node[left] at (-1.5,0.7) {\textbf{vertical angle leg}};
 \node[right] at (-1.5,0.75) {$\textbf{a}$};

 % Draw the right angle mark
 \draw [thick] (-1.2,0) -- (-1.2,0.3) -- (-1.50,0.3);
\end{tikzpicture}
\end{document}
2. Save file as rightAngle1.tex
3. Then build or typeset the Latex code.

Output

Right Angle In Latex



Notes To see the more clear picture, click on the picture.

Bibliography

http://latex.org/
https://tex.stackexchange.com/
https://www.overleaf.com/

Related Post


Tidak ada komentar:

Posting Komentar

Various Other Posts