After doing some more googling I came across the float package which lets you prevent LaTeX from repositioning the tables. Then for each table you can use the H placement option e. If you want to make use of H or h! If you want to place the table at the same page, either at the exact place or at least at the top of the page what fits best for the latex engine , use the parameters h and t like this:.
Set the position of the table float in LaTeX — latex_float • huxtable
L a T e X is an editing tool that takes care of the format so you only have to worry about the contents of your document; nevertheless, better control of floating elements is sometimes necessary. This article explains how to position images and tables in a L a T e X document. This is a simple example, for a description of this and other ways to include images in your L a T e X file see the article Inserting Images. Open an example in Overleaf.
Positioning images and tables
I have a LaTeX document that contains a paragraph followed by 4 tables followed by a second paragraph. I want the 4 tables to appear between the two paragraphs which from what I've read means I should use the [h] option after beginning the table environment e. Using this the first two tables appear after paragraph 1 as expected, however paragraph 2 is then displayed with the last two tables appearing on the following page. How can I get the tables to appear in the correct location? I've tried various things to correct the positioning such as using [h!
It only takes a minute to sign up. Connect and share knowledge within a single location that is structured and easy to search. Table does not show up at the same position it was inserted in the TeX file.