Re: Text wrap float problems

2008-05-28 Thread Helge Hafting

Uwe Stöhr wrote:


Yes, as I said, how should LaTeX typeset a wrapped thing that is 
within a paragraph that contains a page break? Also Word and co cannot 
do this.
Easy to answer. And probably hard to program into current latex, or this 
would be solved already.


If the paragraph contains a manual page break:
1. place the figure in a useful way, i.e. within the upper and lower 
margins.

2. Typeset the part of the paragraph before the break beside the figure.
   This does not necessarily fill the page completely, because of that 
break.

   Any such ugliness is the user's fault for specifying a break though.
3. Move to the next page, typeset the rest of the paragraph there. The 
figure is

   not on the next page, so use the full width there.

If the page break isn't inserted by the user, then the paragraph doesn't 
contain
a page break at all - it is instead the typesetter's job to find the 
ideal spot to break.


1. Place the figure
2. Typeset the narrow paragraph beside it until the page is full.
3. Move on to the next page. Continue the paragraph there, but
   now with full width of course.

This is how it should be done - perhaps it will happen some day if
someone interested bothers with it. Latex can typeset paragraphs
with varying width already.

Helge Hafting


Re: Text wrap float problems

2008-05-25 Thread Uwe Stöhr

Dawid Ciecierski schrieb:


Thanks for the suggestions but I still am unclear about possible solutions
to the problem.


I told you and this is also wriiten in the LyX documentation: When the wrapped table/image is at a 
page break, you have to adjust its position manually. To continue on writing your document and do 
this when you are ready, otherwise you would only spend time for an issue that changes with every 
change of the document.



According to what you're saying Uwe, neither LyX 1.6 is
going to fix the wrapping problem, nor ERT that LyX 1.6 is going to use. Is
this really the case?


Yes, as I said, how should LaTeX typeset a wrapped thing that is within a paragraph that contains a 
page break? Also Word and co cannot do this.


regards Uwe


Re: Text wrap float problems

2008-05-23 Thread Dawid Ciecierski
Hello again,

Thanks for the suggestions but I still am unclear about possible solutions
to the problem. According to what you're saying Uwe, neither LyX 1.6 is
going to fix the wrapping problem, nor ERT that LyX 1.6 is going to use. Is
this really the case?

If so, is it really the case that the whole LaTeX community simply abstains
from using wraps and is having to insert images taking up whole lines even
if they are tiny?

Regards,
Dawid Ciecierski

2008/5/16 Uwe Stöhr <[EMAIL PROTECTED]>:

>
>  The upcoming Lyx 1.6 (hopefully) fixes this by using a better latex
>> package to do the wrapping.
>>
>
> What do you expect? Since LyX 1.5.4 we switched to the best available
> LaTeX-package for wrap floats. LyX 1.6 will also use this package, but
> provides some more customizations for wrap floats and also table wrap
> floats. But that wrapping will fail at line breaks will stay and is not
> fixable by any LaTeX-package.
>
>  There are two ways I can recommend, if you want to use wrapped figures:
>>
>> 1. Install one of the alpha releases of LyX-1.6, where this is fixed.
>>
>
> Don't do this!!! Alpha releases are very buggy and you could loose parts of
> your thesis. Use LyX 1.5.4 or Lyx 1.5.5.
>
>  2. Alternatively, use a released version of LyX, and use ERT to make the
>> figures
>>   manually using the same technique as lyx-1.6 do it.
>>
>> For the latter, put
>> \usepackage{wrapfig} in the document preamble.
>>
>
> Since LyX 1.5.4 we use wrapfig, so you don't need to do this.
>


Re: Text wrap float problems

2008-05-16 Thread Uwe Stöhr

Helge Hafting schrieb:

The problem is that text wrap doesn't work all that well in current 
versions

of LyX.  It simply breaks down if the wrapped figure gets too close to:
- a heading
- a page break


This is not a problem of LyX but of LaTeX (as describedn in the EmbeddedObjects 
manual btw.).

The upcoming Lyx 1.6 (hopefully) fixes this by using a better latex 
package to do the wrapping.


What do you expect? Since LyX 1.5.4 we switched to the best available LaTeX-package for wrap floats. 
LyX 1.6 will also use this package, but provides some more customizations for wrap floats and also 
table wrap floats. But that wrapping will fail at line breaks will stay and is not fixable by any 
LaTeX-package.



There are two ways I can recommend, if you want to use wrapped figures:

1. Install one of the alpha releases of LyX-1.6, where this is fixed.


Don't do this!!! Alpha releases are very buggy and you could loose parts of your thesis. Use LyX 
1.5.4 or Lyx 1.5.5.


2. Alternatively, use a released version of LyX, and use ERT to make the 
figures

   manually using the same technique as lyx-1.6 do it.

For the latter, put
\usepackage{wrapfig} in the document preamble.


Since LyX 1.5.4 we use wrapfig, so you don't need to do this.

regards Uwe


Re: Text wrap float problems

2008-05-16 Thread Eric S Fraga
On Fri, May 16, 2008 at 01:52:41PM +0100, Dawid Ciecierski wrote:
> I have been using LyX only for half a year or so but since the switch I have
> fallen in love with it. I'm currently writing my thesis, which happens to
> incorporate quuite a few images in the main body of text. Since they are
> usually small, I'm hoping to use wraps so that text can wrap around it for a
> smoother `reading experience'. However, even with the newest version I'm

I can't help you in your quest to get figure/text wrapping to work
correctly (it's really a LaTeX problem and not a LyX one) but I would
strongly recommend against text wrapping in a thesis unless you really
are talking about _many_ _very small_ figures.  Having short text
lines (<50% of a typical A4 line width) does not make for a smoother
reading experience, in my experience (having examined many PhD and MSc
theses...).  I think text wrapping around figures only makes sense
with larger page formats (newsletters) and/or where space is at a
premium (conference papers, newsletters again), neither of which
applies here.

A useful alternative is to consider using subfigures, grouping
together 2, 4, ... small figures into one LyX "figure".  Might make
more sense depending on what your figures are.

Just something to consider...  and maybe help you avoid wasting time
trying to get LyX/LaTeX doing text warpping properly?

cheers,
eric


Re: Text wrap float problems

2008-05-16 Thread Helge Hafting

Dawid Ciecierski wrote:

Hello,

I have been using LyX only for half a year or so but since the switch I have
fallen in love with it. I'm currently writing my thesis, which happens to
incorporate quuite a few images in the main body of text. Since they are
usually small, I'm hoping to use wraps so that text can wrap around it for a
smoother `reading experience'. However, even with the newest version I'm
getting pretty odd behaviour; have a look at
http://www.doc.ic.ac.uk/~dfc04/wrap.jpg Not sure if this is a known bug or
if it's caused by some mysterious setting I have not come across (due to my
limited experience with LyX). I'm also limiting output size of figures, to
approx. 35% of column width; could that be causing misery?

Anyway, will be grateful for any advice at all so that me & my thesis don't
have to come back to Word :-)
  

The problem is that text wrap doesn't work all that well in current versions
of LyX.  It simply breaks down if the wrapped figure gets too close to:
- a heading
- a page break

The last one is the worst, and means that text wrapping is something you
should do only occationally, when you only have a few wraps and
can position all of them carefully.

The upcoming Lyx 1.6 (hopefully) fixes this by using a better latex 
package to

do the wrapping.

The case you demonstrate can be fixed by changing to an ordinary float.
If you put the 4 pictures beside each other then a full-width float
will look nice. Perhaps this is not an option for the rest of your book 
though.


There are two ways I can recommend, if you want to use wrapped figures:

1. Install one of the alpha releases of LyX-1.6, where this is fixed. Of 
course,

   an alpha release can be risky. I use lyx-1.6 every day myself.
   It will be tricky to install if you aren't familiar with compilling 
software.


2. Alternatively, use a released version of LyX, and use ERT to make the 
figures

   manually using the same technique as lyx-1.6 do it.

For the latter, put
\usepackage{wrapfig} in the document preamble.
When you want to insert a figure, use "Insert->TeX"
and type:
\begin{wrapfigure}{o}{0.4\linewidth}
That was for a figure 40% of the line width, adjust the 0.4 if needed.
Then "insert->graphics" after this, and specify your image.
After this, another TeX box, where you type:
\caption{figure caption text}\end{wrapfigure}

This should work well, but any mistyping of the commands will
mean that printing attempts give you strange errors.
If you have lots of such figures, make one that works
and copy it around as a template instead of re-typing for every figure.

Helge Hafting







Text wrap float problems

2008-05-16 Thread Dawid Ciecierski
Hello,

I have been using LyX only for half a year or so but since the switch I have
fallen in love with it. I'm currently writing my thesis, which happens to
incorporate quuite a few images in the main body of text. Since they are
usually small, I'm hoping to use wraps so that text can wrap around it for a
smoother `reading experience'. However, even with the newest version I'm
getting pretty odd behaviour; have a look at
http://www.doc.ic.ac.uk/~dfc04/wrap.jpg Not sure if this is a known bug or
if it's caused by some mysterious setting I have not come across (due to my
limited experience with LyX). I'm also limiting output size of figures, to
approx. 35% of column width; could that be causing misery?

Anyway, will be grateful for any advice at all so that me & my thesis don't
have to come back to Word :-)
Best regards,
Dawid Ciecierski