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>옵션이 하나만 있는 경우 중괄호는 필요하지 않습니다.

작은 라벨

\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}

관련 정보