2jH38a

Written on June 24, 2019
% ########### TODO #################
\noindent\hspace{0.64cm}\begin{minipage}[c]{0.95\textwidth}
\begin{lstlisting}[numbers=left,language=TeX, frame=lines,basicstyle=\footnotesize\ttfamily]
\begin{tikzpicture}
\coordinate(A) at (2,3); \coordinate(B) at (0,0);
\coordinate(H) at (2,0); \coordinate(C) at (3,0);
\draw (A)--(B)--(C)--cycle;
\draw (A) node[above]{$A$}
  (B) node[left]{$B$}
  (C) node[right]{$C$}
  (H) node[below right]{$H$};
\draw (H) rectangle ++(45:0.2);
\draw (B) -- node[above,shift={(-0.5,0)}]{$4\sqrt{2}$} (A);
\draw (A) -- node[above,shift={(0.5,0)}]{$2\sqrt{5}$} (C);
\draw[<->] ($(B)!4mm!-90:(H)$) -- node[fill=white]{4} ($(H)!4mm!90:(B)$);
\draw[dashed] (A)-- node[sloped]{\small /} (H);
\draw (B) -- node[sloped]{\small //} (H);
\end{tikzpicture}
\end{lstlisting}
\end{minipage}