I have the following problem. I would like to use a tikz picture in an equation environment. The following is a minimal example:
\documentclass{article}
\usepackage{tikz}
\usepackage{amsmath}
\begin{document}
Some text here.
\begin{equation*}
\left[
\begin{tikzpicture}
\draw[thick] (1, -1) .. controls (0.4, -1) and (0, -0.6) .. (0, 0);
\draw[thick] (0, 0) .. controls (0, 0.6) and (0.6, 1) .. (1, 1);
\draw[thick] (1, -0.5) .. controls (0.7, -0.5) and (0.5, -0.3) .. (0.5, 0);
\draw[thick] (0.5, 0) .. controls (0.5, 0.3) and (0.7, 0.5) .. (1, 0.5);
\draw[thick] (1, -1) .. controls (1.5, -1) and (1.75, -0.6) .. (1.75, -0.25);
\draw[thick] (1, 0.5) .. controls (1.5, 0.5) and (1.75, 0.1) .. (1.75, -0.25);
\draw[thick] (1, -0.5) .. controls (1.5, -0.5) and (1.75, -0.1) .. (1.75, 0.25);
\draw[thick] (1, 1) .. controls (1.5, 1) and (1.75, 0.6) .. (1.75, 0.25);
\draw[dashed] (1, -1.1) -- (1, 1.1);
\end{tikzpicture}
\right]
\end{equation*}
Some more text here
\end{document}
Now if I delete the "\left[ ... \right]", then it looks as expected:
But the result of the code above looks unexpected to me:
It looks as if the image would contain another white space under the actual graphic, which is not shown without the brackets. How can I get rid of this space?



\begin{tikzpicture}[baseline]... (sorry, the previous comment was wrong in this case, but https://tex.stackexchange.com/questions/290357/tikz-bounding-box-cropping-too-much-space-for-curves still could be related for other figures) – Rmano May 10 '21 at 14:19