直角三角形の問題

直角三角形の問題

コード:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usepackage{tkz-euclide}
\usetkzobj{all}
\usetikzlibrary{intersections}
\usepackage{amsmath}
\usepackage{siunitx}
\sisetup{output-decimal-marker={,}}

\begin{document}

\begin{tikzpicture}[scale=2]%,cap=round,>=latex]

\coordinate [label=left:$C$] (A) at (-1.5cm,-1.cm);
\coordinate [label=right:$A$] (C) at (1.5cm,-1.0cm);
\coordinate [label=above:$B$] (B) at (1.5cm,1.0cm);
\draw (A) -- node[sloped,above] {$\textrm{Hypotenous}$} (B) -- node[right,rotate=-90,xshift=-9mm] {$\textrm{Oposite Side}$} (C) -- node[below] {$\textrm{Adjacent Side}$} (A);

\draw (1.25cm,-1.0cm) rectangle (1.5cm,-0.75cm);
\tkzMarkAngle[size=0.5cm,color=black,mark=](C,A,B) 
\end{tikzpicture}

\end{document}

ここに画像の説明を入力してください

質問:1 与えられた図では、単語の反対側が辺 AB と混ざっていることがわかります。これを修正したいと思います。

質問:2 2 つ目は、角度 ACB を thita (ギリシャ語で、後に \theta となる) とラベル付けしたいということです。

答え1

最初の質問では、ラベルを線の上に配置することを指定するだけです。つまり、次のように入力します。

node[above right,rotate=-90,xshift=-9mm] {$\textrm{Oposite Side}$}

これにより、ラベルが希望どおりに配置されます。

注意:belowこのラベルを反対側に表示するように入力することもできます。

答え2

の追加は\tkzLabelAngletheta にラベルを付けるために使用されます。以下は変更されたコードです。

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usepackage{tkz-euclide}
\usetkzobj{all}
\usetikzlibrary{intersections}
\usepackage{amsmath}
\usepackage{siunitx}
\sisetup{output-decimal-marker={,}}

\begin{document}

\begin{tikzpicture}[scale=2]%,cap=round,>=latex]

\coordinate [label=left:$C$] (A) at (-1.5cm,-1.cm);
\coordinate [label=right:$A$] (C) at (1.5cm,-1.0cm);
\coordinate [label=above:$B$] (B) at (1.5cm,1.0cm);
\draw (A) -- node[sloped,above] {$\textrm{Hypotenous}$} (B) -- node[above right,rotate=-90,xshift=-9mm] {$\textrm{Oposite Side}$} (C) -- node[below] {$\textrm{Adjacent Side}$} (A);

\draw (1.25cm,-1.0cm) rectangle (1.5cm,-0.75cm);
\tkzMarkAngle[size=0.5cm,color=black,mark=](C,A,B) 
\tkzLabelAngle[pos=0.65](C,A,B){$\theta$}
\end{tikzpicture}

\end{document}

答え3

同じコードですが、18行目のコードを以下のように変更します。

\draw (A) -- node[sloped,above] {$\textrm{Hypotenous}$} (B) -- node[left,rotate=90,xshift= 11mm, yshift=-3mm] {$\textrm{Oposite Side}$} (C) -- node[below] {$\textrm{Adjacent Side}$} (A);

三角形

関連情報