修改三角形标记

修改三角形标记

我有一张需要修改的图表。直角的标记和 的标签$\theta$不在正确的位置。指示 的弧不在正确的位置。 和的$\angle ACB$长度$x$和不在正确的位置。指示 的长度的线从正确位置向右移动。$y$$\overline{PC}$$\overline{PB}$$\overline{BC}$

我希望$a + x$排版方向与线条相同。

\documentclass[10pt]{amsart}
\usepackage{tikz}
\usetikzlibrary{calc,angles,positioning,intersections,quotes,decorations.markings}
\usepackage{tkz-euclide}
\usetkzobj{all}

\begin{document}

\begin{tikzpicture}
\path (60:2.5) coordinate (A) (10:6) coordinate (B) (0:0) coordinate (C);
\draw (A)
-- (B) node [at start, above left]{$A$} node [midway, above]{$c$}
-- (C) node [at start, right]{$B$}
-- (A) node [at start, below]{$C$} node [midway, left]{$b$} -- cycle;
\coordinate (P) at ($(B)!(A)!(C)$);
\draw [dashed] (A) -- (P) node [below]{$P$} node [midway, right]{$h$} -- (C);
C -- node [midway, below]{$x$} -- P -- node [midway, below]{$y$} B;
\draw pic[draw, angle radius=2mm,"$\theta$",angle eccentricity=2] {angle = B--C--A};
\tkzMarkRightAngle(A,P,B);
\draw[|<->|] ($(B)!7mm!90:(C)$)--node[fill=white] {$x + y$} ($(C)!7mm!-90:(B)$);
\end{tikzpicture}

\end{document}

答案1

尝试这个:

\documentclass[10pt]{amsart}
\usepackage{tikz}
\usetikzlibrary{calc,angles,positioning,intersections,quotes,decorations.markings}
\usepackage{tkz-euclide}

\begin{document}

\begin{tikzpicture}
\path (60:2.5) coordinate (A) (10:6) coordinate (B) (0:0) coordinate (C);
\draw (A)
-- (B) node [at start, above]{$A$} node [midway, above]{$c$}
-- (C) node [at start, right]{$B$}
-- (A) node [at start, left]{$C$} node [midway, left]{$b$} -- cycle;
\coordinate (P) at ($(B)!(A)!(C)$);
\draw [dashed] (A) --node [midway, right]{$h$}(P)node [below]{$P$}-- (C);
\draw (C) -- node [midway, below]{$x$}(P) -- node [midway, below]{$y$} (B);
\draw pic[draw, angle radius=5mm,"$\theta$",angle eccentricity=1.5] {angle = B--C--A};
\tkzMarkRightAngle(A,P,B);
\draw[|<->|] ($(B)!7mm!90:(C)$)--node[fill=white,sloped] {$x + y$} ($(C)!7mm!-90:(B)$);
\end{tikzpicture}

\end{document}

现在的输出:

在此处输入图片描述

相关内容