General ⇒ Any way to get floats ontop of page?
-
- Posts: 2
- Joined: Wed Oct 31, 2007 1:03 am
Any way to get floats ontop of page?
I have found many topics trying to solve the same problem but I havent found any real solution. I'm ok with the fact that float objects gets flushed downwards but why must they appear at the center of a page? I don't like the layout that way.
This has already been too time consuming, please help!
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
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Any way to get floats ontop of page?
Code: Select all
\begin{figure}[!ht]
…
\end[figure}
\vfill
~
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Any way to get floats ontop of page?
-
- Posts: 2
- Joined: Wed Oct 31, 2007 1:03 am
Re: Any way to get floats ontop of page?
My solution: (the tilde, ~, advice wasn't needed this time but may be in the future)
I moved the \begin{figure}[!th] part to the page were latex thought it should be placed and added a \clearpage before it and a \newpage after it. I guess this way there isn't a problem with the float object as it fits the way I want it to.
This is perhaps not the nicest solution and I imagine that the problem will bother me again in a not so distand future.
This is my first contact with this community, I'm very thankful for your rapid response, thanks alot.