Without a reproducible example, I'm going to take a shot in the dark. If you're using kableExtra, you should be able to specify options through the latex_options
in kable_styling()
. Looking at the documentation, you could try hold_position
:
hold_position
will "hold" the floating table to the exact position. It is useful when the LaTeX table is contained in a table environment after you specified captions inkable()
. It will force the table to stay in the position where it was created in the document. A stronger version:HOLD_position
requires thefloat
package and specifies[H]
.