LyX ⇒ Figure on separate page
Figure on separate page
I'm having a problem placing a figure into my document. I am using a modified dissertation class, which must be part of the problem.
When I insert an image, no matter how small I make it, the figure always prints as a separate page (the page following the text where the figure float is placed). I would prefer it to just take half of the page, with the text continuing below it.
Does anyone know what could be forcing the page break around the figure? I looked in the TeX code of the class file, and couldn't seem to find anything. Any ideas?
Thanks!
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
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Figure on separate page
hard to tell with so little information. You mention floats, so i guess you are very aware of the mechanism.
Have you checked if the picture has some additional white space? Easy if you put an
\fbox
around it. If it is really related to the class file, you need to prepare a little test case and post it along with the class file you are using.
Re: Figure on separate page
However, I'd rather not post the class file, and I don't really know how to make a test case.
The strange thing is: the figure is in a child document, and when I compile the child document (using article), the image shares the page with the text. When I compile the parent document (using this dissertation class), the image appears on its own separate page.
I was hoping there would be an easy fix: some command to make it clear that figures shouldn't be separated onto their own pages.
Thanks anyway!
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Re: Figure on separate page
You can export your minimal document to LaTeX. That document should be minimal in a way, that it still shows the problem and should be rather short.
Re: Figure on separate page
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Re: Figure on separate page
Glad to hear that you could resolve your problem.