Everytime I set a table's position to [H], an error appears saying "A <box> was supposed to be here". The table fits the page and everything appears to be fine, except for the errors. If I change the position of the table the error disappeares but I want the table exactly at that place.

My table code is like this:

\caption{Types of accounts and their permissions}
  • 4
    (1) Welcome, (2) please post a full minimal example instead of just a sniplet. The preamble matters in situations like this. (3) You really should not use [H], rather learn to use floats correctly.
    – daleif
    Jul 12, 2017 at 10:09
  • 1
    Thanks @daleif I tried to look for ways to avoid [H] when I want the table exactly at that position, and found that using [h!] together with\FloatBarrier from the placeins package works just fine and the box error disappears. It is explained here [tex.stackexchange.com/a/19767/139067] Jul 12, 2017 at 10:50
  • There is no reason for the code you show to make a box error, so please add some more code to reproduce the problem. (Noting in the placeins package should make such an error go) also never use [!h] it usually generates a warning that it is being changed. better to use [htp] Jul 12, 2017 at 13:26


Browse other questions tagged .