0

I have the following code:

\documentclass{standalone}

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

\begin{document}

\begin{tikzpicture}[
axis/.style={densely dashed,gray,font=\small},
force/.style={>=latex,draw=blue,fill=blue},
]

\node[circle, fill=black] (m) at (0,0){};
\coordinate (origin) at (0,0);
\coordinate (f2) at (1.732,2);
\coordinate (f1) at (-1.732,2);
\coordinate (a) at (0,2);


\draw[axis,->] (m) -- (a){};
\draw[force,->] (m) -- (f1){};
\draw[force,->] (m) -- (f2){};
\draw pic[draw,angle radius=0.5cm,"$30^\circ$" shift={(2.5mm,5mm)}] {angle=f2--origin--a};

\end{tikzpicture}

\end{document}

This is the output:

enter image description here

The label of the angle seems quite large. How do you change the size of the label? I looked through the TikZ manual and couldn't find anything.

0

You only need to add font size to pic options:

\documentclass{standalone}

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

\begin{document}

\begin{tikzpicture}[
axis/.style={densely dashed,gray,font=\small},
force/.style={>=latex,draw=blue,fill=blue},
]

\node[circle, fill=black] (m) at (0,0){};
\coordinate (origin) at (0,0);
\coordinate (f2) at (1.732,2);
\coordinate (f1) at (-1.732,2);
\coordinate (a) at (0,2);


\draw[axis,->] (m) -- (a){};
\draw[force,->] (m) -- (f1){};
\draw[force,->] (m) -- (f2){};
\draw pic[draw,angle radius=0.5cm,
           font=\scriptsize, % <---
          "$30^\circ$" shift={(2.5mm,5mm)}] {angle=f2--origin--a};
\end{tikzpicture}

\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.