I don't know why, but I tried to print some code in a tikzmath
file, and the result is really strange, it looks like that tikzmath
tries to substitute texts even if does not begin with a backslash... For example here the variable is not even used, and a substitution is done...
MWE:
\documentclass{report}
\usepackage{tikz}
\usetikzlibrary{math}
\begin{document}
\begin{tikzpicture}
\tikzmath{
% Fails
\color = "blue!80";
% Works
% \ccolor = "blue!80";
{\draw[-latex] (0,0) -- (1,1) node{$\textcolor{red}{A}$};};
}
\end{tikzpicture}
\end{document}
Thank you!
node[red]{$A$};
.