0

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?

3
  • 3
    Why do you want to use the align environment? 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 the center environment or the \centering command inside a figure environment, the minipage environment (or even with TikZ itself). The subcaption package or related ones can help with adding captions to each diagram. There are many Qs about this on this site. Apr 24 at 17:03
  • @Qrrbrbirel: Thanks for the all the suggestions. Unfortunately I am getting a bit confused. Could you write out a short example? Or direct me to some of the Q&As on the site. Apr 24 at 17:50
  • tex.stackexchange.com/q/5769/1952. Replace the \includegraphics by your TiKZ figures and you will get it.
    – Ignasi
    Apr 24 at 18:20

0

You must log in to answer this question.

Browse other questions tagged .