I draw an angle of 30 degrees at the origin. The common endpoint of the two line segments comprising this angle is D
and the other endpoints are E'
and F
. F
is at a distance of 4
from line segment DE'
. I want to draw an arc of a circle centered at F with radius 5
. This arc should intersect DE'
at two points. I don't know what arc is drawn with my code!
What is wrong with the code to make the right-angle mark?
\documentclass[10pt]{amsart}
\usepackage{tikz}
\usetikzlibrary{calc,angles,positioning,intersections,quotes,decorations.markings}
\usepackage{tkz-euclide}
\usetkzobj{all}
% Refer to http://tex.stackexchange.com/questions/196181/why-do-my-arcs-end-at-the-wrong-node-positions
% Refer to http://www.texample.net/tikz/examples/intersecting-lines/
% To have TikZ calculate the foot of the altitude of a triangle, see Chapter 13, section 5 in the TikZ manual.
\begin{document}
\noindent {\bf 19.) }In $\triangle{\mathit{DEF}}$, $\vert DF \vert = 8$, $\vert EF \vert = 5$, and $\angle{\mathit{EDF}} = 30$. How many such triangles are there?
\vskip0.2in
\noindent \hspace*{\fill}
\begin{tikzpicture}
%These commands draw edges $DF$ and $E'F$ so that $\angle{\mathit{E'DF}} = 30$.
%$DF$ is to be drawn at an angle of 120 degrees and DE' is to be drawn at an
%angle of angle of 150 degrees. Since the length of DE' is not specified, it
%is to be drawn as a ray.
\coordinate (D) at (0,0);
\node (vertex_D) at ($(D) + (-45:7.5pt)$){$D$};
\coordinate (F) at (120:8);
\node (vertex_F) at ($(F) + (90:7.5pt)$){$F$};
\coordinate (E') at (150:12);
\node (vertex_E') at ($(E') + (-90:7.5pt)$){$E'$};
\draw (D) -- (F);
\draw (D) -- (E');
\path pic[draw, angle radius=10mm,"$30$",angle eccentricity=1.25] {angle = F--D--E'};
%These commands label the length of DF.
\coordinate (DF_midpoint) at ($(D)!0.5!(F)$);
\node (DF_midpoint_label) at ($(DF_midpoint) + (30:7.5pt)$) {8};
%These commands draw the height of the triangle from F to line segment $DE'$.
%The height is labeled $h$.
\coordinate (P) at ($(D)!(F)!(E')$);
\draw [dashed] (F) -- (P) node [midway, right]{$h = 4$};
\node (point_P) at ($(P) + (-120:7.5pt)$){$P$};
%These commands draw an arc of a circle centered at F with radius 5.
\draw[dashed,draw=blue!30] (F) arc (150:290:5);
%The following commands make the right-angle mark and "colors" the inside of it white.
\coordinate (U) at ($(P)!4mm!45:(D)$);
\draw (U) -- ($(D)!(U)!(E')$);
\draw (U) -- ($(F)!(U)!(P)$);
\end{tikzpicture}
\hspace{\fill}
\vskip0.25in
\end{document}
(F) arc (...)
,F
is the starting point of the arc, not the center! – Astrinus Jun 5 '15 at 14:40\draw[dashed] ([shift=(F)]150:5) arc[start angle=150, end angle=290, radius=5];
? – Qrrbrbirlbel Jun 5 '15 at 14:41\angle{\mathit{EDF}} = 30
would be an angle of 278.87° because the number 30 misses the degree sign. Also neither\angle
or\triangle
are macros with an argument, therefore the braces around\mathit{...}
are not necessary.\bf
is deprecated, use\textbf{...}
instead. Also a space between19.
andIn
is missing. – Heiko Oberdiek Jun 5 '15 at 15:36angle
andtriangle
are just for me to read the code. I will have to get in the habit of using\textbf
. Is the command for putting text in italics in text modetextit
? I edited the post again to include the space after19.)
. – user74973 Jun 5 '15 at 16:15