General ⇒ keeping text with a figure
keeping text with a figure
Anyway, I want to include a figure in one of my problems, but I want to ensure that the figure appears under the first line of text in the problem, and if there isn't space for it on the page, I want the text to move with the figure.
Using just the figure environment moves the figure to the next page but leaves the text behind. How do I force them together?
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
keeping text with a figure
you probably don't need the figure environment, because the figure doesn't need to be able to float. Have a look here for possible solutions: Prevent floating of figures or tables. Further you could put the figure and the text together into one minipage environment.
Stefan