Hello Salah,
Let me suggest a few things that should affect the placement of
figures and provide some references to on line materials for
additional information.
Try this first...
If you right-click on a float figure, it will bring up a dialog box
labeled "Placement". In addition to the document default, you can
choose "here", "top", "bottom", and "page". From your description, you
want "here". The defaults are "top", "bottom", and "page". Make the
change, close the dialog box and see if this fixes your problem.
Try this second...
In Layout -> Document the dialog box has a tab labeled "Extra". The
document default placement is defined at the top. Use the letters htbp
to refer to here, top, bottom, and page respectively. You should also
be able to specify something like !hbp to "try really hard" to place
the floats where they are defined.
Try this third...
I found that some of the document styles do not give you the
flexibility to set the placement. The example referred to in the
tutorial appears to be one of these. In this case - change to another
document style (e.g., book) or change your wording to refer to the
figure by number (using a label in the caption and a cross reference
for the in line text).
You may also be able to embed TeX or LaTeX commands directly. To
assemble a float with caption and label - use something like...
\begin{figure}[hbp]
(your figure goes here)
\caption{caption goes here}
\label{name-of-label}
\end{figure}
so the first and last three lines would be embedded TeX commands. The
caption and label could go above your figure if desired. The Insert ->
TeX menu command is used to do the embedded text (should appear in
red).
A few notes from the LaTeX User's Guide...
o it is printed at the earliest place
o it is not printed on a page prior to where it is defined
o it will not appear out of order (figures to figures, tables to
tables)
o it will appear ONLY where specified [htbp]
o a float will not produce an overfull page
o there are other page constraints that apply including topnumber,
topfraction, bottomnumber, bottomfraction, totalnumber, textfraction,
and so on.
The last batch of items could be overridden in a LaTeX preamble - you
might need a LaTeX manual to help describe what to do.
Whew!
Your installation of LyX should include
o the User's Guide
o Extended Features
o Customization
o LaTeX Configuration
and other helpful documents under the Help menu. For example, section
4.3.1.2 of the User's Guide describes float placement (at least in my
copy).
Other online resources include:
o The LyX web site (http://www.lyx.org/)
o The Floats part of the "LyX Tricks and Tips" site
(http://www.educat.hu-berlin.de/~voss/lyx/floats/floats.phtml)
If you need to customize LyX with LaTeX or TeX commands, I suggest
"LaTeX: A Document Preparation System (2nd Edition)". Amazon.com
appears to have it in stock if your local bookstore does not. There is
also "The TeXBook" as well.
Some search phrases that could also help find other sites include
LyX float placement
and similar phrases.
--Maniac |