# Creating line break for tabular table inside a theorem environment

I have a table inside theorem environment and I would like to have a line break before the table is being drawn. Currently it will start drawing the table on the same line that the theorem is listed and it looks rather ugly. Does anyone know how I could achieve this?

I have an example in the following code:

\documentclass[12pt]{article}
\usepackage{amsthm}

\theoremstyle{plain}
\newtheorem{thm}{Theorem}[chapter]
\theoremstyle{definition}
\newtheorem{exmp}[thm]{Example}

\begin{document}
\begin{exmp}
\begin{tabular}{ccc}
$row1 & row1 & row1$\\
$row2 & row2 & row2$\\
$row3 & row3 & row3$\\
\end{tabular}
\end{exmp}
\end{document}


The solution is to add \leavevmode after \begin{exmp} and also leave a blank line before the tabular environment.

• insert the command \leavevmode before the table. (i'm sure this has been asked/answered before; i'll look for a dup.) – barbara beeton Mar 20 '18 at 19:34
• I was looking for something similar about this but wasn't able to find. Thank you for the suggestion though. I tried doing this but it doesn't seem to work. – Razvan Mar 20 '18 at 19:36
• this question asks about starting a theorem environment with a list, not a tabular, but the principle is the same: tex.stackexchange.com/q/8110/579 and this one is also similar: tex.stackexchange.com/q/319717 (can't find an exact duplicate. maybe it's time to create a "generic" question on this topic.) – barbara beeton Mar 20 '18 at 19:45