Re: Float placement

2008-08-26 Thread rgheck

Guillaume Larocque wrote:

Hi, I would like to use the natbib package for my citations in Lyx
with the [sort] option so that multiple citations are ordered into the
sequence in which they appear in the list of references. However,
specifying

\usepackage[numbers,sort&compress]{natbib}

in the preamble of my document produces an error when compiling to
pdf. It says the package has already been called. Is there any other
way of doing this in Lyx?

  
You can just add the options to the Options field in 
Document>Settings>Document Class. They're passed to other packages, as 
they're loaded.


rh



Re: Float placement

2008-08-25 Thread Guillaume Larocque
Hi, I would like to use the natbib package for my citations in Lyx
with the [sort] option so that multiple citations are ordered into the
sequence in which they appear in the list of references. However,
specifying

\usepackage[numbers,sort&compress]{natbib}

in the preamble of my document produces an error when compiling to
pdf. It says the package has already been called. Is there any other
way of doing this in Lyx?

Thanks,

Guillaume


Re: Float placement

2008-08-25 Thread G. Milde
On 22.08.08, Guillaume Larocque wrote:
> Guillaume Larocque wrote:
> >> Ok, here are the exact symptoms of the problem. If I have a few floats
> >> inserted in a sequence in Lyx, as soon as Latex decides that one float
> >> will be on a separate page, all the floats following it will also be
> >> placed on a separate page, regardless of their size. 
> >
> >Are you saying that after the first float gets a separate page, each of
> >the subsequent floats sits alone on a page?  

> Yes. What I have in a few places in my document is something like: one
> large float, 4 smaller floats, one other large float and then 3
> smaller floats again.

> Latex decides to put the one large float on a separate page and then
> it puts all the rest of the floats on seperate pages 
> **also at the end of the Chapter.**

It looks to me as if your documentclass (or some loaded package or
preamble setting) creates a "page of floats" only **at the end of a
chapter**.

As the order of floats is never changed, subsequent floats in this 
chapter are placed behind this "page of floats". As a new chapter starts
on a new page, these floats will also be alone on a page.

> Its probably deciding that there are too many floats that will break
> the text. I get that behaviour even if I select 'top of page' for all
> the floats.

What happens, if you activate the "ignore LaTeX rules" button?

> I managed to get the floats pretty much where I want them with info
> from this website: http://people.cs.uu.nl/piet/floats/node1.html

> Particularly with the use of:
> \afterpage{\clearpage}

> and by moving some floats between paragraphs. I was just hoping that
> Latex would figure all this out for me.

As "good layout" (and font-placing) is a matter of taste, LaTeX cannot
please all without some configuration efforts from the side of users
that have a different taste from the documentclass designers.

This is why typesetting with LaTeX/LyX is straightforward if you find a
documentstyle you happen to like (or which fullfills the requirements
of the institution you write for) but is a pain, if you do not like the
default output.

Günter


Re: Float placement

2008-08-22 Thread Guillaume Larocque
Guillaume Larocque wrote:
>> Ok, here are the exact symptoms of the problem. If I have a few floats
>> inserted in a sequence in Lyx, as soon as Latex decides that one float
>> will be on a separate page, all the floats following it will also be
>> placed on a separate page, regardless of their size. That has got to
>> be a bug. I just don't see why this behaviour would make sense.
>
>
>Are you saying that after the first float gets a separate page, each of
>the subsequent floats sits alone on a page?  If so, I don't reproduce
>that here.  I made a small test document (Komascript book class) like
>this:  .  The big
>float is big enough that it has to be on its own page; the smaller
>floats are not.  What I get is all text on page 1, the big float alone
>on page 2, the other two floats one after the other at the top of page 3
>followed by more text.

Yes. What I have in a few places in my document is something like: one
large float, 4 smaller floats, one other large float and then 3
smaller floats again.

Latex decides to put the one large float on a separate page and then
it puts all the rest of the floats on seperate pages also at the end
of the Chapter. Its probably deciding that there are too many floats
that will break the text. I get that behaviour even if I select 'top
of page' for all the floats.

I managed to get the floats pretty much where I want them with info
from this website: http://people.cs.uu.nl/piet/floats/node1.html

Particularly with the use of:
\afterpage{\clearpage}

and by moving some floats between paragraphs. I was just hoping that
Latex would figure all this out for me.

Thanks for the answers,

Guillaume


Re: Float placement

2008-08-22 Thread Paul A. Rubin

Guillaume Larocque wrote:

Ok, here are the exact symptoms of the problem. If I have a few floats
inserted in a sequence in Lyx, as soon as Latex decides that one float
will be on a separate page, all the floats following it will also be
placed on a separate page, regardless of their size. That has got to
be a bug. I just don't see why this behaviour would make sense.



Are you saying that after the first float gets a separate page, each of 
the subsequent floats sits alone on a page?  If so, I don't reproduce 
that here.  I made a small test document (Komascript book class) like 
this:  .  The big 
float is big enough that it has to be on its own page; the smaller 
floats are not.  What I get is all text on page 1, the big float alone 
on page 2, the other two floats one after the other at the top of page 3 
followed by more text.


Or did I misunderstand what you wrote?

/Paul



Re: Float placement

2008-08-22 Thread G. Milde
On 21.08.08, Guillaume Larocque wrote:
> Ok, here are the exact symptoms of the problem. If I have a few floats
> inserted in a sequence in Lyx, as soon as Latex decides that one float
> will be on a separate page, all the floats following it will also be
> placed on a separate page, regardless of their size. That has got to
> be a bug. I just don't see why this behaviour would make sense.

This is a (La)TeX feature. Like it or not, but LyX cannot circumvent it that
easily.

The idea is that the *order* of the floats should not be changed. So, if
a "too big" float will go on a separate page, no other float that follows
it in the source will appear before this extra page. Instead, they will
be printed at the next possible location, which most likely is the
remaining space on this extra page.

You can either

* change the order or placement of the floats in the LyX file,

* change settings so that the "odd" float is not placed on a separate page.

  (See http://texnik.dante.de/cgi-bin/mainFAQ.cgi?file=floats/parameter)
  
Günter  


Re: Float placement

2008-08-21 Thread Guillaume Larocque
Ok, here are the exact symptoms of the problem. If I have a few floats
inserted in a sequence in Lyx, as soon as Latex decides that one float
will be on a separate page, all the floats following it will also be
placed on a separate page, regardless of their size. That has got to
be a bug. I just don't see why this behaviour would make sense.

Thanks,

Guillaume

>
> Just a guess: Put each float in a seperate paragraph (press Enter).
>
>
>
> Lyx won't allow me to insert paragraph breaks between floats.
>
> Guillaume
>


Re: Float placement

2008-08-14 Thread Waluyo Adi Siswanto
I had this problem before, then I found a way to control Figure float.
You can control the float by "right click" inside the figure float and
uncheck "use default placement", select either one
"top of page", "bottom of page", "here if possible" or "here definitely".
It behaves similarly in Table float, do the same thing.

If you want to change the default, Document>Settings>Float placement>
uncheck the default system and select other type.

Actually, You can select more than one, but I have not tried. You can find
the explanation in the User Guide 4.6.3


Regards
/Adi


On Fri, Aug 15, 2008 at 4:17 AM, Guillaume Larocque <[EMAIL PROTECTED]>wrote:

> Hi, I am writing my thesis using Lyx (Koma-script(Book) layout) and I
> have issues with the placement of floats. I find that in some cases,
> even if a figure only takes 50-60% of the page, the floats will be put
> on a separate page without any text over or below it. This is
> especially a problem when multiple floats are inserted one after the
> other in Lyx. What I would like is it a more compact document where
> floats are placed at the top or botton of pages more often, even if
> multiple floats follow each other in the document. I have tried
> inserting this in the preamble of the document:
>
> \renewcommand{\bottomfraction}{0.5}
> \renewcommand{\topfraction}{0.85}
>
> but that did not seem to solve the problem.
>
> Thank you for any hints that may help me solve this issue.
>
> Guillaume
>



-- 
Waluyo Adi Siswanto, PhD
Dept. Engineering Mechanics
Univ. Tun Hussein Onn Malaysia (UTHM)
http://www.uthm.edu.my


Re: Float placement

2008-08-14 Thread Guillaume Larocque




Just a guess: Put each float in a seperate paragraph (press Enter).

  

Lyx won't allow me to insert paragraph breaks between floats.

Guillaume


Re: Float placement

2008-08-14 Thread Friedrich Hagedorn
On Thu, Aug 14, 2008 at 05:11:43PM -0400, Guillaume Larocque wrote:
> In fact, my problem seems to be 
> related to the particular case where multiple floats are inserted one after 
> the other in Lyx.

Just a guess: Put each float in a seperate paragraph (press Enter).

By,  Friedrich

Otherwise you could send me the lyx-file and I look up tomorow.


Re: Float placement

2008-08-14 Thread Guillaume Larocque



I got my floats mostly to the right place when I set the options

  * Here if posible
  * Top of page
  * Bottom of page

Therefore you have right-click on a collapsed float object and you can
select these option in the Float-Settings.

  
The user manual on embedded objects seems to suggest that these are 
already the default latex placement priorities. In fact, my problem 
seems to be related to the particular case where multiple floats are 
inserted one after the other in Lyx.


Thanks,

Guillaume


Re: Float placement

2008-08-14 Thread Friedrich Hagedorn
On Thu, Aug 14, 2008 at 04:17:14PM -0400, Guillaume Larocque wrote:
> Hi, I am writing my thesis using Lyx (Koma-script(Book) layout) and I
> have issues with the placement of floats. I find that in some cases,
> even if a figure only takes 50-60% of the page, the floats will be put
> on a separate page without any text over or below it. This is
> especially a problem when multiple floats are inserted one after the
> other in Lyx. 

Could you give an example if the comments below dont work?

> What I would like is it a more compact document where
> floats are placed at the top or botton of pages more often, even if
> multiple floats follow each other in the document.

I got my floats mostly to the right place when I set the options

  * Here if posible
  * Top of page
  * Bottom of page

Therefore you have right-click on a collapsed float object and you can
select these option in the Float-Settings.

When this doesnt help I reorder my float in the text (chance the position
of definition).

I hope that helps.

By,  Friedrich


Re: Float Placement in Windows version of LYX

2008-04-09 Thread Paul A. Rubin

neon none wrote:

Hello,

I am trying to control the float placement in Windows version of Lyx. While
the LyxWiki prescribes going to Layout menu and use Float placement dialog
to do so, I see no such 'Layout' menu in the version I am using (LyxWindows
1.5.4) [the official windows installation].  So, what should I do to control
float placement in Lyx windows version?

Thanks,
Neon



Right click somewhere in the float (but not in the caption) and the 
layout menu will pop up.


/Paul



Re: Float Placement in Windows version of LYX

2008-04-09 Thread Uwe Stöhr

neon none schrieb:


I am trying to control the float placement in Windows version of Lyx.


Have a look at section 3.5 of the EmbeddedObjects manual.

regards Uwe


Re: Float Placement in Windows version of LYX

2008-04-09 Thread Siegfried MEUNIER-GUTTIN-CLUZEL

I suppose it is Document > Settings  and choose Float placement
( I translate from french ... sorry ).

Hope it helps.
Siegfried.




Re: float placement refinements

2007-02-06 Thread Ramon Flores
Em Sexta, 2 de Fevereiro de 2007 20:53, Enrico Forestieri escreveu:

>LaTeX is a quite sophisticated typesetting system and lets you fine tune a
>large set of style parameters. Below you can find a list of parameters that
>I think are of interest to you. Those not starting with a backslash are 
>counters and are to be set as \setcounter{topnumber}{1}, for example, 
>the  others must changed using \renewcommand, such as 
>\renewcommand{\topfraction}{0.4},
>or \renewcommand{\floatsep}{15mm} for rubber lengths.
>
>Changes made in the preamble apply from the first page on. Changes made
>afterwards take effect on the next page, not the current one.

>topnumber - A counter whose value is the maximum number of floats allowed
>at the top of a page.

This is exactly what I was looking for.

Thank you very much.

Ramon


Re: float placement refinements

2007-02-04 Thread Enrico Forestieri
Ramon Flores writes:

>  I have read several times the "Float Placement" section and I have not 
> finded 
> any clue of how to
> 1) forbid more than one figure per page, in a page with text, or
> 2) set the distance between figures.

LaTeX is a quite sophisticated typesetting system and lets you fine tune a
large set of style parameters. Below you can find a list of parameters that
I think are of interest to you. Those not starting with a backslash are
counters and are to be set as \setcounter{topnumber}{1}, for example, the others
must changed using \renewcommand, such as \renewcommand{\topfraction}{0.4},
or \renewcommand{\floatsep}{15mm} for rubber lengths.

Changes made in the preamble apply from the first page on. Changes made
afterwards take effect on the next page, not the current one.

topnumber - A counter whose value is the maximum number of floats allowed
at the top of a page.

\topfraction - The maximum fraction of the page that can be occupied by
floats at the top of the page. Thus, the value 0.25 specifies that as
much as the top quarter of the page may be devoted to floats.

bottomnumber - Same as topnumber except for the bottom of the page.

\bottomfraction - Same as \topfraction except for the bottom of the page.

totalnumber - A counter whose value is the maximum number of floats that
can appear on a single page, irrespective of their positions.

\textfraction - The minimum fraction of a page that must be devoted to text.
The other 1-\textfraction fraction may be occupied by floats.

\floatsep - The vertical space added between floats that appear at the top
or bottom of a text page. It is a rubber length.

\textfloatsep - The vertical space added between the floats appearing at
the top or bottom of a page and the text on that page. Rubber length.

\intextsep - The vertical space placed above and below a float that is put
in the middle of the text with the "h" location option. Rubber length.

HTH

-- 
Enrico



Re: float placement refinements

2007-02-04 Thread Uwe Stöhr

Ramon Flores schrieb:

 I have read several times the "Float Placement" section and I have not finded 
any clue of how to

1) forbid more than one figure per page, in a page with text, or


You can only force that LaTeX puts floats on a separate page without text. But you can for example 
set a \pagebreak in ERT or a pagebreak vie LyX's menu (note that they are different) directly before 
the float to force its appearace on the next page. You can also adjust the bottompagefraction within 
the document at the critical positions or globally.
You can use LaTeX's default settings or ignore it, you can set the float placement order tbp, etc. 
as described.



2) set the distance between figures.


This is not possible because you have floats and that means they can float to the position where 
LateX thinks it's the best or you adjusted with the parameters I listed above.
If you really need a definite float place then use the "here definetively " placement option and 
insert a vertical space between two consecutive floats.


regards Uwe


Re: float placement refinements

2007-02-04 Thread Ramon Flores
Em Sexta, 2 de Fevereiro de 2007 20:53, o Uwe Stöhr escreveu:
> Ramon Flores schrieb:
> > Is there any way to say to LyX not to put more that one figure in a page
> > with text?.
> > Or alternatively, is there any way to say to LyX to set apart the two
> > figures?
>
> This is a wide field to play on. The toys for this are explained in the
> Embedded Insets manual:
> http://www.lyx.org/trac/browser/lyx-devel/branches/BRANCH_1_4_X/lib/doc/Emb
>eddedObjects.lyx which is also available in Spanish:
> http://www.lyx.org/trac/browser/lyx-devel/branches/BRANCH_1_4_X/lib/doc/es_
>EmbeddedObjects.lyx

Where?.
 I have read several times the "Float Placement" section and I have not finded 
any clue of how to
1) forbid more than one figure per page, in a page with text, or
2) set the distance between figures.

Thanks
Ramon


Re: float placement refinements

2007-02-02 Thread Uwe Stöhr

Ramon Flores schrieb:

Is there any way to say to LyX not to put more that one figure in a page with 
text?.

Or alternatively, is there any way to say to LyX to set apart the two figures?


This is a wide field to play on. The toys for this are explained in the 
Embedded Insets manual:
http://www.lyx.org/trac/browser/lyx-devel/branches/BRANCH_1_4_X/lib/doc/EmbeddedObjects.lyx
which is also available in Spanish:
http://www.lyx.org/trac/browser/lyx-devel/branches/BRANCH_1_4_X/lib/doc/es_EmbeddedObjects.lyx

regards Uwe


Re: float placement

2006-02-05 Thread Enrico Forestieri
Martin A. Hansen <[EMAIL PROTECTED]> writes:
> 
> hello
> 
> i am generally confused and unhappy about float placements.

Try to put the following in the preamble and see if it helps
(check "Use default placement" in LyX's Float Settings).

%
% Figures and tables default placement rule
%
[EMAIL PROTECTED] [EMAIL PROTECTED]
%
% Floating objects parameters
%
\setcounter{topnumber}{2}
\setcounter{bottomnumber}{1}
\setcounter{totalnumber}{3}
\setcounter{dbltopnumber}{2}
\def\topfraction{1}
\def\bottomfraction{.5}
\def\textfraction{0}
\def\floatpagefraction{1}
\def\dbltopfraction{1}
\def\dblfloatpagefraction{1}

If not, try tweaking the above values.

--
Enrico




Re: float placement

2003-03-26 Thread Juergen Spitzmueller
Myriam Abramson wrote:
> I'm using floats for figures. I have to make sure that there are 3-4
> spaces between the figure and the text. Since the document is
> double-spaced, Lyx only puts 2 spaces. How to add additional spaces?
> It seems that Lyx is too intelligent and overrides any spaces I put
> in.

AFAIK these are the parameters:

\textfloatsep
The vertical space added between the floats appearing at
the top or bottom of a page and the text on that page.
(i.e. with option t or b)

\intextsep 
The vertical space placed above and below a float that is
put in the middle of the text (with the h location option).

LaTeX default:

\setlength\textfloatsep{20pt plus 2pt minus 4pt}
\setlength\intextsep   {12pt plus 2pt minus 2pt}

Make shure to use variable lengths (plus/minus) if you use other values.

Jürgen.


Re: float placement problems after upgrading to 1.2.x

2002-12-03 Thread Dekel Tsur
On Fri, Nov 29, 2002 at 12:22:33PM +0100, Martijn Brouwer wrote:
> I encountered the problem that my floats were not placed according to
> the !tbp settings in the document layout dialog.
> When I exported my document to tex I saw that most figures had htbp
> placement settings. When I remember well, these are the figures I
> inserted before switching to 1.2.x.

This is a bug in Lyx 1.2.0/1.2.1, which is fixed in 1.2.2/1.3.0.




Re: Float placement

2001-10-09 Thread Herbert Voss

Clodoaldo Carvalho wrote:
> 
> I'm having a hard time trying to place a xfig generated figure in my
> text. I put the "!htbp" command at float placement window but the figure
> appears alone and there's still some free space left at the same page.
> The figure contains some LaTeX formula and was exported as a .eps file.
> I'm also using psfrag in the preamble. Any help would be appreciated.

have a look at

http://www.educat.hu-berlin.de/~voss/lyx/floats/floats.html#position

Herbert

-- 
http://www.educat.hu-berlin.de/~voss/lyx/



Re: float placement, overwriting page numbers

2001-10-01 Thread Herbert Voss

Martin Craig wrote:
> 
> I am having problems with text sometimes overwriting the page numbers at
> the bottom when there is a float in the page (figure or table). My float
> placement is set to 'tbp', but the only combination I've found that
> avoids the problem is setting it to 'p', i.e. separating the floats from
> the text completely, but I don't want to do this.

try to decrease the width of your images. choose
for example 0.95 0f columnwidth.

Herbert


-- 
http://www.educat.hu-berlin.de/~voss/lyx/





Re: float placement, overwriting page numbers

2001-10-01 Thread I Wayan Warmada


On 30 Sep 2001, Martin Craig wrote:

> I am having problems with text sometimes overwriting the page numbers at
> the bottom when there is a float in the page (figure or table). My float
> placement is set to 'tbp', but the only combination I've found that
> avoids the problem is setting it to 'p', i.e. separating the floats from
> the text completely, but I don't want to do this.

try to use htp or hbp or !htp or !hbp. I haven't problem with this one.

Wayan




Re: float placement

2001-08-27 Thread Kathryn Andersen

On Mon, Aug 27, 2001 at 05:04:59PM +0200, Saalfeld, Christoph wrote:
> I'm writing a glossary using the description environment. Now I've inserted
> a figure for such an entry and I need to have a caption for it, so I must
> put in a figure float. By doing so, the result I get is a figure placed at
> the end of my glossary after the last entry. (probably because of the
> description environment).
> So I would like to change the placement setup to "h" for this float only.
> The document wide placement setup for floats ist "hbp" = "here, bottom,
> another page". As far as I can see, LyX adds this placement option to each
> figure entry while exporting to TeX.
> 
> How can I tell LyX to place this float "here" ???

Well, if you *didn't* need it to have a caption or be included in a list
of figures, you could just insert the image as a "figure" without
putting it inside a float.  That will put it exactly where you place it.

Unfortunately I expect that isn't what you're looking for.

Kathryn Andersen
(who used that method with some of the illustrations for her zine)
-=-=-=-=-=-=-=-=-=-
"We have just recently started watching X files. Too soon to say if
we'll become X-Philes but we are intrigued to find out what all that
truth is doing out there when it should be at home doing the washing up
like everyone else."
-- Steve Playford (3/11/1995)
-- 
 _--_|\ | Kathryn Andersen  <[EMAIL PROTECTED]>
/  \|   
\_.--.*/|   
  v | #include "standard/disclaimer.h"
| Melbourne -> Victoria -> Australia -> Southern Hemisphere
Maranatha!  |   -> Earth -> Sol -> Milky Way Galaxy -> Universe



Re: float placement

2001-08-27 Thread Herbert Voss

"Saalfeld, Christoph" wrote:
> 
> I'm writing a glossary using the description environment. Now I've inserted
> a figure for such an entry and I need to have a caption for it, so I must
> put in a figure float. By doing so, the result I get is a figure placed at
> the end of my glossary after the last entry. (probably because of the
> description environment).
> So I would like to change the placement setup to "h" for this float only.
> The document wide placement setup for floats ist "hbp" = "here, bottom,
> another page". As far as I can see, LyX adds this placement option to each
> figure entry while exporting to TeX.
> 
> How can I tell LyX to place this float "here" ???

http://www.educat.hu-berlin.de/~voss/lyx/floats/floats.html#floats_1

but it's better to write an own "float"-figure environment.

Herbert


-- 
http://www.educat.hu-berlin.de/~voss/lyx/



Re: float placement bug?

2001-05-23 Thread Andre Berger

* Beyer, Marcus <[EMAIL PROTECTED]>, 2001-05-22 22:36 +0200:
> All my figures are placed at the end of the document :-(

Maybe you have "too many unprocessed floats"? Issue a "\clearpage" (in
ERT) every now and then. Also check the de-tex-faq (www.dante.de).

A. B.   [[EMAIL PROTECTED]]

 PGP signature


RE: float placement bug?

2001-05-22 Thread Herbert Voss


On Tue, 22 May 2001, Beyer, Marcus wrote:

> The point is, that I don't want individual placement
> any more! Even if I *remove* completely the float where
> I tried individual placement before, it's the same:
> all of the figures are placed at the end of the document :-(

can you send the dox as private mail?

Herbert




RE: float placement bug?

2001-05-22 Thread Beyer, Marcus


> > I seem to have discovered a strange float placement bug.
> >
> > First I used the strategy "!htb" writing my document
> > and everything went fine. The document's length is now
> > about 25 pages. Now I tried some other strategies including
> > individual placement for each figure as described here:
> > http://www.educat.hu-berlin.de~voss/lyx/floats/floats.html#floats_1
> >
> > As everything went worse I switched to my
> > first strategy: global "!htb".
> >
> > What now happened is strange:
> > All my figures are placed at the end of the document :-(
> 
> this is latex, not lyx! when you choose individual
> placing, you have to choose it for all!
> I suppose, that you do not choose one for
> the first float, so it is placed at the
> end (maybe in fact of its size??) and
> therefore all the other ones behind this.

The point is, that I don't want individual placement
any more! Even if I *remove* completely the float where
I tried individual placement before, it's the same:
all of the figures are placed at the end of the document :-(

Best Regards
Marcus Beyer



Re: float placement bug?

2001-05-22 Thread Herbert Voss


On Tue, 22 May 2001, Beyer, Marcus wrote:

> I seem to have discovered a strange float placement bug.
>
> First I used the strategy "!htb" writing my document
> and everything went fine. The document's length is now
> about 25 pages. Now I tried some other strategies including
> individual placement for each figure as described here:
> http://www.educat.hu-berlin.de~voss/lyx/floats/floats.html#floats_1
>
> As everything went worse I switched to my
> first strategy: global "!htb".
>
> What now happened is strange:
> All my figures are placed at the end of the document :-(

this is latex, not lyx! when you choose individual
placing, you have to choose it for all!
I suppose, that you do not choose one for
the first float, so it is placed at the
end (maybe in fact of its size??) and
therefore all the other ones behind
this.

> When I change the strategy (e.g. to "tb"): the same.
>
> Only thing that helps: putting no strategy at all.
>
> Is this a bug? What can I do?

no.

feel free to send the doc for more information.

HErbert






Re: float placement

2001-02-28 Thread Lars Gullik Bjønnes

Herbert Voss <[EMAIL PROTECTED]> writes:

| Thomas Geffert wrote:
| > 
| > Hi,
| > 
| > I have a question on the placement of floats. I set in the
| > layout->document->extra placement option the placement to bt.
| > 
| > Now I have the problem that Lyx/Latex seems to prefer Top as my
| > pictures are all on top of a side. As I understood the documentation a
| > placement option of bt should prefer the bottom placement?
| > 
| > Also I tried to set some floats at the right position where they were
| > inserted or to place them on an extra page.
| > 
| > Therefore I added a [h] or [p] in the first line of a float and set it
| > to Latex-mode. But the only result is, that I see the [h] or [p]
| > printed above the image. Does this method don't work with Lyx
| > 1.1.6fix1 anymore? If yes, is there another possibility to achieve the
| > individual placement of a float?
| 
| values in layout-document-float-placement are for global 
| controlling of all floats. 
| Individual controlling of floats is possible, 
| if you leave this field blank and write in every
| float (red rectangle) as the very first line in tex (red) 
| one of the possible values for float placment, like [h], [htb], 
| [!htb] or any other valid combination.

also note that the order of the 'h' 't' 'b' is not used by latex. If
'h' is mentiond that goes first, then 't' if mentioned, then 'b' if
mentioned, then 'p' if mentioned.

Lgb



Re: float placement

2001-02-28 Thread Herbert Voss

Thomas Geffert wrote:
> 
> Hi,
> 
> I have a question on the placement of floats. I set in the
> layout->document->extra placement option the placement to bt.
> 
> Now I have the problem that Lyx/Latex seems to prefer Top as my
> pictures are all on top of a side. As I understood the documentation a
> placement option of bt should prefer the bottom placement?
> 
> Also I tried to set some floats at the right position where they were
> inserted or to place them on an extra page.
> 
> Therefore I added a [h] or [p] in the first line of a float and set it
> to Latex-mode. But the only result is, that I see the [h] or [p]
> printed above the image. Does this method don't work with Lyx
> 1.1.6fix1 anymore? If yes, is there another possibility to achieve the
> individual placement of a float?

values in layout-document-float-placement are for global 
controlling of all floats. 
Individual controlling of floats is possible, 
if you leave this field blank and write in every
float (red rectangle) as the very first line in tex (red) 
one of the possible values for float placment, like [h], [htb], 
[!htb] or any other valid combination.

also have a look at

http://www.educat.hu-berlin.de/~voss/lyx/floats/floats.html

Herbert


-- 
[EMAIL PROTECTED]
http://perce.de/lyx/



Re: Float placement

2000-07-03 Thread Daniel Leggate



> >> 
> >> Does the [H] trick for placing individual figures work for other options
> >> such as [p] so that I could place a particular figure on a page on its
> >> own? (I would like to do this so that colour figures can be printed out
> >> on separate pages)
> > 

I found out how to make it work. Before, I was using control-L to type the
[p] in LaTeX mode. This for some reason doesn't work - you have to select
LaTeX from the menu bar instead. Now it is working as expected.

On a competely unrelated note I think I may have come accross a
compatability problem between LyX 1.1.5 and 1.1.4. I am using version
1.1.5 in the lab and found at the weekend when I took some documents home
where I'm using version 1.1.4, I lost some text. This seemed to occur
where I had used protected spaces (control-space). In some places just the
protected space was lost and in other places chunks of text were lost as
well. I guess I need to upgrade to 1.1.5 at home.

Many thanks for the float placement advice.
TTFN
Dan




Re: Float placement

2000-07-03 Thread Juergen Vigna


On 02-Jul-2000 Herbert Voss wrote:
> Dan Leggate wrote:
>> 
>> Does the [H] trick for placing individual figures work for other options
>> such as [p] so that I could place a particular figure on a page on its
>> own? (I would like to do this so that colour figures can be printed out
>> on separate pages)
> 
> It only works for [H], but [p] should work.
> 

Did you remove the options form the Layout->Document->Float-options input
box?

Jürgen

--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Dr. Jürgen VignaE-Mail:  [EMAIL PROTECTED]
Italienallee 13/N   Tel/Fax: +39-0471-450260 / +39-0471-450296
I-39100 Bozen   Web: http://www.sad.it/~jug

-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

If this is a service economy, why is the service so bad?




Re: Float placement

2000-07-02 Thread Herbert Voss

Dan Leggate wrote:
> 
> Does the [H] trick for placing individual figures work for other options
> such as [p] so that I could place a particular figure on a page on its
> own? (I would like to do this so that colour figures can be printed out
> on separate pages)

It only works for [H], but [p] should work.

HErbert


-- 
[EMAIL PROTECTED]
http://perce.de/voss



Re: Float placement

2000-06-30 Thread Dan Leggate

Does the [H] trick for placing individual figures work for other options
such as [p] so that I could place a particular figure on a page on its
own? (I would like to do this so that colour figures can be printed out
on separate pages)

I've tried putting [p] in ERT at the very begining of the float but
viewed as postscript it just ends up with the float position the same as
before and with a "[p]" printed out in front of it. I don't have any
float placement specified in layout->document. Am I doing something
silly here? (using lyx 1.1.5)

If anyone knows  a way of forcing individual figures onto their own page
it would be very useful.

TTFN
Dan

On Thu, 29 Jun 2000, M.Hendler wrote:

> Hi all!
> 
> The placement of  floats drive my crazy!
> I am using the book style an set the placement to: !htbp
> The problem is, that I have 5 floats (6cm x 4.25cm) which all
should be placed
> in the text.
> But LyX places them on a random style. :)

it's not that floats should be ...
but try 

\usepackage{floats}   %<- latex preamble

leave option float placement in layout->document blank
and write in tex (red) as the very first line in the float

[H]

but remember, that the H-Option puts the floats
exactly there, where they appear in the page.

Herbert



Re: Float placement

2000-06-29 Thread Lars Gullik Bjønnes

Herbert Voss <[EMAIL PROTECTED]> writes:

| On Thu, 29 Jun 2000, M.Hendler wrote:
| 
| > Hi all!
| > 
| > The placement of  floats drive my crazy!
| > I am using the book style an set the placement to: !htbp
| > The problem is, that I have 5 floats (6cm x 4.25cm) which all should be placed
| > in the text.
| > But LyX places them on a random style. :)
| 
| it's not that floats should be ...
| but try 
| 
| \usepackage{floats}   %<- latex preamble

that should be 
\usepackage{float}

| 
| leave option float placement in layout->document blank
| and write in tex (red) as the very first line in the float
| 
| [H]

to use the H placement with figure and table you also have to issue a
\restylefloat{table}
\restylefloat{figure}
(at least one version of the float doc told me so)

Lgb




Re: Float placement

2000-06-29 Thread Yann Collete

Hello,

I have encountered the same problem one day.
I had found a solution in a TeX FAQ. The thing to tune
is the Max Float Per Page counter and the size of the page
where to place the floats.
Here are the commands to place in the LaTeX preamble.

\renewcommand{\floatpagefraction}{.9}
\renewcommand{\textfraction}{.1}
\setcounter{totalnumber}{10}
\renewcommand{\topfraction}{.8}
\renewcommand{\bottomfraction}{.8}

It works for me but maybe you'll have to tune the values.

YC



Re: Float placement

2000-06-29 Thread Jean-Pierre.Chretien


>>Date: Thu, 29 Jun 2000 10:50:52 +0200
>>From: "M.Hendler" <[EMAIL PROTECTED]>
>>To: [EMAIL PROTECTED]
>>Subject: Float placement
>>
>>Hi all!
>>
>>The placement of  floats drive my crazy!
>>I am using the book style an set the placement to: !htbp
>>The problem is, that I have 5 floats (6cm x 4.25cm) which all should be placed
>>in the text.
>>But LyX places them on a random style. :)
>>First 2 are on the first page with the text and the rest on the next page.
>>The bad thing is that, on the old page a new subsection starts and thats what 
I really hate now.
>>LyX (or Latex) doesn't take care of the sectioning of a book. I dont want to 
have the floats of
>>section 2 in section 3 ! Or even floats of section 2.3 in section 2.4!

A few ideas:

\clearpage 
in ERT make a newpage and purges the buffer of floats, so that 
all the pending figure are placed,  but
you may not like a newpage at a beginning of a subsection...

Beware that the float must be  preceded and followed by a blank line: 
if not, the float is within the paragraph, which is not a good idea.

If you have several small figures, you may like to have them in one single
float, within a table.

What about wrapfig ? This could give you a better layout in the page.

There has been in the list a technique to change locally the order using ERT, 
but I don'recall it. I seldomly use it, !ht for figures is generally OK
(but I miss a separate global order for tables, I would like !hb because
the caption is over the table in french typography).

>>
>>How can I tell LyX that I really want to have the floats at the place where I 
have inserted them?

No way, you have to understand how the placement algorithm works
and move the figures and paragraphs around untif all is OK. But it's
useless to do so until the very last LaTeX passes, beacuse yous should not
do any prematurate local tuning.
>>
>>I tried all global variations of h, !h and so on.
>>
>>Any ideas?
>>
>>Thanx a lot

Hope that helps

-- 
Jean-Pierre




Re: Float placement

2000-06-29 Thread Herbert Voss



On Thu, 29 Jun 2000, M.Hendler wrote:

> Hi all!
> 
> The placement of  floats drive my crazy!
> I am using the book style an set the placement to: !htbp
> The problem is, that I have 5 floats (6cm x 4.25cm) which all should be placed
> in the text.
> But LyX places them on a random style. :)

it's not that floats should be ...
but try 

\usepackage{floats}   %<- latex preamble

leave option float placement in layout->document blank
and write in tex (red) as the very first line in the float

[H]

but remember, that the H-Option puts the floats
exactly there, where they appear in the page.

Herbert




Re: Float placement questionr

1999-08-02 Thread Juergen Vigna


On 02-Aug-99 Jitse Niesen wrote:
> On Mon, 2 Aug 1999, Henk Coetzee wrote:
> 
>> I'm busy with a document with a lot of figures, and have tried setting
>> float placement to hp, h, !h and !hp, with no apparent logic in the
>> results. I am trying to get the floats, most of which are a page big, 
>> to place themselves as close to the relevant text as possible. This
>> seems to work for the first three and then the 4th figure (smaller than
>> a page) trundles off, with all following figures to the end of the
>> document. (I am using report class). This started after inserting a
>> figure quite close to the end. What have I done?
> 
> Latex usually decides to move the figures to the end of the document
> because it can not fulfil the format constraints you gave. Unfortunately
> the constraints Latex use are quite complex and sometimes result in
> unexpected placement. 
> 

Ok look there is also the option to put into your LaTeX-preamble the line:

\usepackage{float}

and the put as float-option 'H'.

This puts all your floats exactly where they are (not floating anymore ;)

Hope this helps!

Greets Jürgen

-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Dr. Jürgen Vigna  E-Mail: [EMAIL PROTECTED]
Gerbergasse 60Tel:+39-0471-450260
I-39100 Bozen Fax:+39-0471-970042
ITALY Web:http://www.sad.it/~jug

Cops never say good-bye. They're always hoping to see you again in the line-up.
-- Raymond Chandler

-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._



Re: Float placement questionr

1999-08-02 Thread Jitse Niesen

On Mon, 2 Aug 1999, Henk Coetzee wrote:

> I'm busy with a document with a lot of figures, and have tried setting
> float placement to hp, h, !h and !hp, with no apparent logic in the
> results. I am trying to get the floats, most of which are a page big, 
> to place themselves as close to the relevant text as possible. This
> seems to work for the first three and then the 4th figure (smaller than
> a page) trundles off, with all following figures to the end of the
> document. (I am using report class). This started after inserting a
> figure quite close to the end. What have I done?

Latex usually decides to move the figures to the end of the document
because it can not fulfil the format constraints you gave. Unfortunately
the constraints Latex use are quite complex and sometimes result in
unexpected placement. 

It is difficult to tell what exactly went wrong in your case, but I
expect that the fourth figure could not be placed exactly where it
was in the document (so the 'h' specifier is not used) and could not be
put on a seperate page either, for instance since it is too small.
A float page must be filled for more that \floatpagefraction with 
floats. This default to 0.5, so if your float is smaller than half a 
page, it will float all to the end of the document.

Now if some float goes to the end of the document, all floats after it
will also float to the end. If there are too many, some buffer in Latex
will overflow and the 'too many floats' error will appear, which you
refered to in a later post.

More on float placement can be read in the documentation of the
fancyheadings package (which is renamed to fancyhdr, I believe).

Now, how to repair the mess? Leave the float placement option empty,
it which case it defaults to 'thp', I believe. This will in general
result in fine float placement. In general, the more options Latex has
to place the floats, the less often it has to resort to the ugly 
solution of putting all floats at the end.

The alternative is to customize the float placement parameters, eg. by 
placing '\renewcommand\floatpagefraction{0.3}' in the preamble.


Hope this helps,

Jitse Niesen