TikZ で角度のラベルを拡大縮小するにはどうすればいいですか?

TikZ で角度のラベルを拡大縮小するにはどうすればいいですか?

この角度のラベルを拡大縮小できるようにしたいと思います。

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

コード:

\documentclass[a4paper,12pt]{article}

\usepackage{siunitx}
\usepackage{tikz}
\usetikzlibrary{angles, quotes}

\begin{document}

\begin{tikzpicture}
% Declare Points
\coordinate (X) at (6,1);
\coordinate (A) at (0,0);
\coordinate (Y) at (3,5);

% Draw Angle
\draw[thick] (X) -- (A) -- (Y)
pic ["\ang{38}", draw, thick, angle eccentricity=1.8] {angle = X--A--Y};

% Label Points
\draw (A) node[below left, scale=0.85] {A};

\end{tikzpicture}

\end{document}

満足できない回避策

絵を描くの"{\small \ang{38}}"も「効果的」ですが、私は規模ラベル (他の要素と同様、たとえば頂点の名前)。

失敗した試み #1

これ試してみるというアイデアが思い浮かびましたpic ["\ang{38}", draw, thick, angle eccentricity=1.8, text scale=0.85] {angle = X--A--Y};が、text scale存在しないようです。

! Package pgfkeys Error: I do not know the key '/tikz/text scale', to which you
 passed '0.85', and I am going to ignore it. Perhaps you misspelled it.

See the pgfkeys package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.17 ...ck, angle eccentricity=1.8, text scale=0.85]
                                                   {angle = X--A--Y};

失敗した試み #2

からそこにはこれを見つけました:

単純な文字列「text」またはオプション付きの文字列(node["text" {red, draw, thick}]など)を使用すると、node[label={[red,draw,thick]text}]のような効果を、より少ない記述でより読みやすく実現できます。

しかし、まずは単純に色をテストするために、次のようpic [node["\ang{38}" {red}], draw, thick, angle eccentricity=1.8] {angle = X--A--Y};に記述します。

\xparse function is not expandable 
l.17 pic [node["\ang{38}" {red}]
                              , draw, thick, angle eccentricity=1.8] {angle ...

また、読みにくい方法ではエラーも発生します。

質問

このアドバイスや他の手段を使って、規模角度のラベルですか?

答え1

"\ang{38}"scale=0.5

一般的なquotes構文では、"label text" {<options for label node>}, <other stuff>です。オプションが 1 つしかない場合は、中括弧は必要ありません。

小さいラベル

\documentclass[a4paper,12pt]{article}

\usepackage{siunitx}
\usepackage{tikz}
\usetikzlibrary{angles, quotes}

\begin{document}

\begin{tikzpicture}
% Declare Points
\coordinate (X) at (6,1);
\coordinate (A) at (0,0);
\coordinate (Y) at (3,5);

% Draw Angle
\draw[thick] (X) -- (A) -- (Y)
pic ["\ang{38}"scale=0.5, draw, thick, angle eccentricity=1.8] {angle = X--A--Y};

% Label Points
\draw (A) node[below left, scale=0.85] {A};

\end{tikzpicture}

\end{document}

関連情報