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.
\leavevmode
before the table. (i'm sure this has been asked/answered before; i'll look for a dup.)chapter
doesn't exist inarticle
document class; (ii) use of$
signs in table is wrong/fragile (what you like to achieve with them?); (iii)\end{tabular}
is missing; (iv) your problem can be solved with adding~
afterbegin{exmp}
and insert blank line before table.