How do I draw a semicircle in TikZ? A and B are the endpoints of its diameter, and I have two other points specified. I have a command that is not able to be compiled. I put a "%" in front of it.
\documentclass{amsart}
\usepackage{mathtools}
\usepackage{tikz}
\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}[baseline=(current bounding box.north)]
%A semicircle is drawn.
\path (-1.5,0) coordinate (A) (1.5,0) coordinate (B) (60:1.5) coordinate (C) (120:1.5) coordinate (D);
%\draw (A) -- (B) arc (C) arc (D) arc (A) -- cycle;
%Labels for the vertices are typeset.
\node[anchor=north, inner sep=0] at ($(A) +(0,-0.15)$){$A$};
\node[anchor=north, inner sep=0] at ($(B) +(0,-0.15)$){$B$};
\node[anchor=240, inner sep=0] at ($(C) +(60:0.15)$){$C$};
\node[anchor=300, inner sep=0] at ($(D) +(120:0.15)$){$D$};
\end{tikzpicture}
\end{document}



pgfmathsetmacroand\newcommand. – A gal named Desire Sep 21 '16 at 01:19\draw(A) -- (B);and\draw (1.5,0) arc (0:180:1.5);. I thought it would be nice to have one command for it. – A gal named Desire Sep 21 '16 at 01:19\usetikzlibrary{shapes.geometric} ... \node [semicircle] {}; .... – cfr Sep 21 '16 at 03:29