The use of a functionality from the "quotes" library initially gave me an error.
I changed the babel's language from "brazilian" to "english", and it worked.
I went after a fix, and found out about the "babel" library; used it, and so it worked for the "normal" cases, but not inside the macro I defined.
Basically, that's how things are working:
- english + (no quote package) = works for all cases
- brazilian + (no quote package) = doesn't work
- english + (quote package) = works for all cases
- brazilian + (quote package) = works outside macros, but not inside these.
Minimal working example:
\documentclass[brazil]{standalone}
\usepackage{tikz,babel}
\usetikzlibrary{babel,angles,quotes}
\newcommand\fig[1]%
{\begin{tikzpicture}#1\end{tikzpicture}}%
\begin{document}
\fig{\coordinate (a) at (3.75,3.75);
\coordinate (b) at (3.75,0.75);
\coordinate (lo) at (0, 0.75);
\draw[thick,blue] (0, 0.75) -- (3.75, 3.75);
\pic [draw, -,thick,"$\theta$", angle radius=1cm, angle eccentricity=1.3] {angle = a--lo--b};}
\end{document}
It fails when "brazil" language is set, but it works when it's set to english.

xparseit comes with LaTeX2e and it is a better alternative thanxargs. – yannisl Dec 26 '23 at 23:08