Okay so I have a definition using the amsthm theorem environments, and a tikzpicture which I want to see side by side. The material inside the definition is not too big, so I expect the final height of the two to be about the same. wrapfig does not work inside the definition environment because it's a list. I could not get cutwin to work, it puts the picture right after "Definition." and the text below.
Then I tried tabularx (tabular gives me some missing \item error) which seems to approximate what I want the best, but somehow places the two on different rows, even though the code is like the following:
\documentclass{article}
\usepackage{tabularx,amsthm,tikz}
\newtheorem{definition}{Definition}
\begin{document}
\begin{tabularx}{\textwidth}{X r}
\begin{definition}
Blah blah blah
\end{definition} & \begin{tikzpicture}
\draw (0,0) grid (1,1);
\end{tikzpicture}\\
\end{tabularx}
\end{document}
Is there a good way of doing this?
(P.S. I'm not sure what tags are appropriate for this.)