In addition to other tikz commands local implementation of tikz does not understand opacity
Код:
[math]$\begin{tikzpicture}[scale=.3]
\fill[red!20,opacity=.5] (-4,-2) rectangle (4,2);
\fill[blue!20,opacity=.5] (-2,-4) rectangle (2,4);
\end{tikzpicture}$[/math]
![$\begin{tikzpicture}[scale=.3]
\fill[red!20,opacity=.5] (-4,-2) rectangle (4,2);
\fill[blue!20,opacity=.5] (-2,-4) rectangle (2,4);
\end{tikzpicture}$ $\begin{tikzpicture}[scale=.3]
\fill[red!20,opacity=.5] (-4,-2) rectangle (4,2);
\fill[blue!20,opacity=.5] (-2,-4) rectangle (2,4);
\end{tikzpicture}$](https://dxdy-01.korotkov.co.uk/f/0/9/b/09b002e9d2e60339f105fac6d13b8c8982.png)