I have two Tikz diagrams - let's denote their code by $D$ and $D'$. Now I want to display them in a row, so I put them in align. That is I write
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{align}
D & & D'
\end{align*}
\end{document}
In addition I would like to put a caption under each diagram. I tried to use the caption software, but doesn't seem to work in the align environment. How can I fix this?


alignenvironment? Are your TikZ diagrams actually equations? If not just write them without a blank line (→ new paragraph) between them. Horizontal alignment can be adjusted with thecenterenvironment or the\centeringcommand inside afigureenvironment, theminipageenvironment (or even with TikZ itself). Thesubcaptionpackage or related ones can help with adding captions to each diagram. There are many Qs about this on this site. – Qrrbrbirlbel Apr 24 '23 at 17:03\includegraphicsby yourTiKZfigures and you will get it. – Ignasi Apr 24 '23 at 18:20