This is the case, when I type in:
(a)\\
\begin{table}{h!}
...
\end{table}
(b)\\
...
I hope the table appears right below (a)(I leave enough space for the table), and then below the table is (b). However, what I get now is like:
(a)
(b)
{table I want}
{contents within (b)}
How to fix that.
[h!]. Instead tu use\\make empy line in edditor, It will make new paragraph and LaTeX easier put figure/table between paragraphs. Use of this option should be careful. Normally is better to use option[htb]. If like strict to have floats in desired position, use optionHwhich provide packagefloat. – Zarko Sep 11 '15 at 22:43tabularenvironment is printed just there, you don't need a caption, so notableenvironment either. – egreg Sep 11 '15 at 22:47\begin{table}and stick merely with\begin{tabular}, since the latter will not "float" elsewhere on the page. – Steven B. Segletes Sep 12 '15 at 02:30\\before the table (you should avoid using it altogether apart from ending rows within a table) and don't use[!h]which makes it hard for latex to position the table (normally it changes it to[!ht]and warns you, but[htp]is better, but as Stephen says if this table is not a float do not use thetableenvironment at all. – David Carlisle Sep 12 '15 at 10:11