The following code gives me the display that I want. I have to do issue extra commands, though, because I have an error in the syntax of the following node command.
\draw (A) -- node[midway, below left]{b} -- (C); -- node[midway, above right]{a} -- (P) node[midway, above]{y} -- (A) node[midway, above]{x};
(The vertices of the triangle are A, B, and C; the foot of the altitude from C to line segment AB is P.) Why doesn't TikZ compile this command?
\documentclass{amsart}
\usepackage{tikz}
\usetikzlibrary{calc,angles,positioning,intersections}
\begin{document}
\begin{tikzpicture}
\coordinate (C) at (0,0);
\node (vertex_C) at ($(C) + (-90:7.5pt)$){$C$};
\coordinate (A) at (135:4);
\node (vertex_A) at ($(A) + (150:7.5pt)$){$A$};
\coordinate (B) at (45:5);
\node (vertex_B) at ($(B) + (30:7.5pt)$){$B$};
\draw (C) -- (A) -- (B) -- (C);
%Draw the height of the triangle from C to line segment $AB$.
%Label the height $h$.
\coordinate (P) at ($(A)!(C)!(B)$);
\draw [dashed] (C) -- (P) node [midway, right]{$h$};
%Label sides of triangle.
\coordinate (AC_midpoint) at ($(A)!0.5!(C)$);
\node (AC_midpoint_label) at ($(AC_midpoint) + (225:7.5pt)$) {$b$};
\coordinate (BC_midpoint) at ($(B)!0.5!(C)$);
\node (BC_midpoint_label) at ($(BC_midpoint) + (-45:7.5pt)$) {$a$};
\coordinate (PA_midpoint) at ($(P)!0.5!(A)$);
\node (PA_midpoint_label) at ($(PA_midpoint) + (90:5pt)$) {$x$};
\coordinate (PB_midpoint) at ($(P)!0.5!(B)$);
\node (PB_midpoint_label) at ($(PB_midpoint) + (90:5pt)$) {$y$};
\draw[decorate,decoration={brace,raise=12pt,amplitude=5pt}] (A) -- node[above left=7mm and 0.125mm, fill=white, inner sep=1pt]{$c$} (B);
%Right-angle mark at vertex C.
\coordinate (U) at ($(C)!4mm!-45:(A)$);
\draw (U) -- ($(C)!(U)!(A)$);
\draw (U) -- ($(C)!(U)!(B)$);
\filldraw[fill=white] (C) -- ($(C)!(U)!(A)$) -- (U) -- ($(C)!(U)!(B)$) -- cycle;
%Right-angle mark at foot of the altitude.
\coordinate (V) at ($(P)!4mm!45:(C)$);
\draw (V) -- ($(P)!(V)!(C)$);
\draw (V) -- ($(P)!(V)!(B)$);
\end{tikzpicture}
\end{document}

\draw (A) -- node[below left]{$b$} (C) -- node[below right]{$a$} (B) -- node[above]{$y$} (P) -- node[above]{$x$} (A) ;– Ignasi Jun 03 '15 at 08:47decorations. Maybe I am outdated... I will check that. – LaRiFaRi Jun 05 '15 at 15:33decorations.markings. – user74973 Jun 05 '15 at 16:18