Hello,
I am using LyX to write my thesis but I have the following problem. Often LyX decides, at the produced PDF, to place graphics and images outside the section or subsection they belong to in order to keep formating. I can understand that, but I am looking for some time now on how to prevent it and always keep the graphics within their section. I would appreciate your help and advise.
Best
v.
LyX ⇒ Keep floating Figures within a Subsection
Keep floating Figures within a Subsection
Last edited by brianeno on Sat Aug 06, 2011 7:10 pm, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
Keep floating Figures within a Subsection
Hi,
you could use the placeins package:
This prevents figures from floating cross section boundaries. Furthermore, you can use its command \FlotBarrier before subsections for limiting the floating.
Stefan
you could use the placeins package:
Code: Select all
\usepackage[section]{placeins}
Stefan
LaTeX.org admin
Re: Keep floating Figures within a Subsection
Thanks Stefan,
it seems that is not that straight forward to edit the tex code in Lyx. (A bit weird) .. but I found out searching for the placeins that you can check the document's properties at Lyx and select Float Placement as: Here Definitely which keeps the figure at place. The Here if possible options gave me lots of errors.
Thanks a lot
V.
it seems that is not that straight forward to edit the tex code in Lyx. (A bit weird) .. but I found out searching for the placeins that you can check the document's properties at Lyx and select Float Placement as: Here Definitely which keeps the figure at place. The Here if possible options gave me lots of errors.
Thanks a lot
V.