我想要实现如下所示的目标:
但是,我不确定如何添加 x 和 y 标签,而不必手动执行所有操作(就像我必须为 m 执行的操作一样)
这是我当前的代码:
\documentclass[border=10pt,tikz]{standalone}
\usepackage{tkz-euclide}
\usetikzlibrary{patterns}
\begin{document}
\begin{tikzpicture}[scale=1.25]
\coordinate (C) at (-1.5cm,-1.cm);
\coordinate (A) at (1.5cm,-1.0cm);
\coordinate (B) at (1.5cm,1.0cm);
\coordinate (BL) at (-0.5,-1/3);
\coordinate (BR) at (0.5,1/3);
\coordinate (TR) at (0,1.088);
\coordinate (TL) at (-1,0.42);
\filldraw[color=cyan!40,draw=black] (BL) -- (BR) -- (TR) -- (TL) -- (BL); % block
\node[rotate=33.69] at (-0.25,0.377) {$m$};
\filldraw[draw=black,fill=orange!40] (C) -- (B) -- (A) -- (C); % triangle
\draw (1.25cm,-1.0cm) rectangle (1.5cm,-0.75cm); % right angle
\tkzLabelAngle(A,C,B){$\theta$};
\tkzMarkAngle[size=.7cm](A,C,B);
\end{tikzpicture}
\end{document}