[Tex/LaTex] Geometric markings in the text for line segments and angles

accentstechnical-drawing

I am looking for commands that puts marks for line segments, angles, and other geometrical entities around letters in a text. Many geometry books use a line segment with dots at the end and place it over two letters to indicate a particular line segment. Same for an arc between two points on a circle. Plain LaTeX does not allow for this. A package must be downloaded. Please give me these commands and the commands for the symbols for angles, triangle, and parallel lines.

Best Answer

Here is one way to do arc symbols

\documentclass{standalone}
\usepackage{mathtools}
\usepackage{graphics}

\newlength{\tempa}

\newcommand{\arc}[1]% #1=symbols, as in \arc{AB}
{\begingroup% preserve \tempa
\settowidth{\tempa}{$#1$}%
\overset{\mbox{\hspace{.1em}\resizebox{\tempa}{1ex}{$\frown$}}}{#1}
\endgroup}

\begin{document}
$\arc{AB}$, $\arc{ABC}$ and $\arc{P_1 P_2}$
\end{document}

arcs

The mnsymbol package contains a "filled spoon" symbol that may do the trick. You can also create symbols using tikz, but that is a huge can of worms to tackle.

\documentclass{standalone}
\usepackage{mathtools}
\usepackage{mnsymbol}
\usepackage{graphics}

\newlength{\tempa}

\newcommand{\segment}[1]% #1=symbols, as in \arc{AB}
{\begingroup% preserve \tempa
\settowidth{\tempa}{$#1$}%
\overset{\resizebox{\tempa}{!}{$\leftfilledspoon\hspace{-.2em}\rightfilledspoon$}}{#1}
\endgroup}

\begin{document}
$\segment{AB}$
\end{document}

segment

BTW, every time you load a package from CTAN you also get documentation, albeit scattered over many folders. I recommend that you create shortcuts (links) to all these documents and put them into a single folder.

Related Question