Graphics, Figures & TablesPrevent floating graphs

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
h0ps
Posts: 17
Joined: Thu Nov 08, 2012 10:29 pm

Prevent floating graphs

Post by h0ps »

Hi

I have tried using the search option to find a solution to prevent floating graphs but I haven't been able to find any posts, unfortunately. WHat is the best way to fix the graphs to a specific spot and prevent them from floating? My graphs are in my appendix and it doesn't look that nice that they are moved to same page as the bibliography etc.

THx in advance

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Prevent floating graphs

Post by Stefan Kottwitz »

Hi,

have a look at: Prevent floating of figures or tables.

Also, \FloatBarrier of placeins could be useful.

Stefan
LaTeX.org admin
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Prevent floating graphs

Post by cgnieder »

If you don't want your pictures to float then don't put them in a {figure} environment. If you still want to be able to add captions have a look at the caption package and it's \captionof command. Alternatively use the float package and use H as float specifier.

Regards
site moderator & package author
h0ps
Posts: 17
Joined: Thu Nov 08, 2012 10:29 pm

Re: Prevent floating graphs

Post by h0ps »

Thank you very much. I followed the link and it works perfectly.
Post Reply