0

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.

cfr
  • 198,882
Bs He
  • 135
  • 1
  • 9
  • Could you post a minimal example showing what happens? – Bernard Sep 11 '15 at 22:39
  • Environment table is float and it is not always places where someone wish with option [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 option H which provide package float. – Zarko Sep 11 '15 at 22:43
  • 3
    If you need that a tabular environment is printed just there, you don't need a caption, so no table environment either. – egreg Sep 11 '15 at 22:47
  • See queastionhttp://tex.stackexchange.com/questions/8625/force-figure-placement-in-text. I think that your question is duplicate to this one, – Zarko Sep 11 '15 at 22:55
  • Perhaps omit the \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
  • you have not given enough information but never use \\ 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 the table environment at all. – David Carlisle Sep 12 '15 at 10:11

1 Answers1

-1

Omit \begin{table} will solve the case.

LaRiFaRi
  • 43,807
Bs He
  • 135
  • 1
  • 9