Re: wrapfig

2016-09-20 Thread gordon cooper

Richard and Paul,

   Thank you for this discussion and the 
detailed reporting.

Have been thinking about wrapping, without actually doing anything.
Now I know what to do.

Regards,

Gordon

Tauranga N.Z.




Re: wrapfig

2016-09-20 Thread Richard Opheim
Thanks! Got it working.

On Tue, Sep 20, 2016 at 11:35 AM, Paul A. Rubin  wrote:

> On 09/20/2016 12:03 PM, Richard Opheim wrote:
>
> Sorry---here's the file with the fonts removed from the preamble and a
> figure file as well.
> As before, the PDF displays but the text still doesn't wrap.
> Also, I'm using the Memoir class, if that makes any difference.
>
> Richard,
>
> I'm copying the user list on this, to keep the discussion visible to
> others.
>
> Thanks for the improved example. There are two things I think you should
> change in it if you need to repost it later for some reason. First, the
> file path for the image refers to a subdirectory. Since the downloaded
> image will be in the same directory as the downloaded LyX file, that will
> need to be changed.
>
> Second, you have the image at the start of the paragraph. I cannot find
> any way to trigger wrapping there (which may just be my lack of familiarity
> with the finer points of wrapfig). If I put it somewhere in the interior of
> the paragraph, I can get it to wrap, so you might want to move it there.
>

My file is now working well with wrapfig placed at the beginning of the
paragraph.


> When you move the figure into the body of the paragraph, you need to make
> sure it is not included in the bold faced section; if it is, spacing will
> be screwed up. The trick is to reset the series for all the text to the
> default, insert the figure where you want it, then select the preceding
> text, bold it, select the following text, and bold that.
>

After fiddling around with it for a while, I find that bolding is not
relevant to the errors I experienced.

>
> With all that done, the image still pops to the bottom of the page,
> apparently because the text is left-justified. If you change the paragraph
> to default justification, wrapping works.
>

Yes, this was the main thing that was hanging me up.


> As I said, I'm no expert on wrapfig, so I don't know whether it is
> compatible with non-default text justification. A Google search was not
> helpful in that regard. Looking at the LaTeX source generated by LyX, I see
> no problems, so I suspect this is an issue with wrapfig.
>

Even after I'd corrected the left justification to paragraph's default, the
output was still wonky---the figure appeared in the correct location, but
the text wouldn't move around it and stayed under the figure. Finally, I
tried throwing away the old test file and making a new one from scratch.
The new test file worked perfectly well. I've noticed that it's not all
that rare for LyX files to get strangely corrupted. Even if all the
settings are correct, they just won't run, and you have to paste the
content into a new file to get it to work.

Thanks again for your help.

>
>
> Paul
>
>

Richard Opheim
P.O. Box 2261 Arizona City, AZ 85123
Cell: (1) 206-965-0564
Skype name: richard.opheim

Self-publishing Consultant
Editing---Layout---Musical Scores---Images---Kindle conversion

website URL:
https://sites.google.com/site/opheimrichard/home

self-publishing faq:
 https:/ 
/sites.google.com/site/opheimrichard/publishing-faq


publishing tasks:
https://sites.google.com/site/opheimrichard/publishing-faq/publishing-tasks

marketing techniques:
https://sites.google.com/site/opheimrichard/publishing-faq/marketing

Japanese translation & consulting:
https://sites.google.com/site/japanesetranslationconsulting/


blog:
http://foliocirculaire.blogspot.com

"I [don't believe in God] . . . But the God I don't believe in is a good
God, a just God, a merciful God. He's not the mean and stupid God you make
Him out to be."
~Lt. Scheisskopf's wife in Catch-22 by Joseph Heller


Re: wrapfig

2016-09-20 Thread Paul A. Rubin

On 09/20/2016 12:03 PM, Richard Opheim wrote:
Sorry---here's the file with the fonts removed from the preamble and a 
figure file as well.

As before, the PDF displays but the text still doesn't wrap.
Also, I'm using the Memoir class, if that makes any difference.


Richard,

I'm copying the user list on this, to keep the discussion visible to others.

Thanks for the improved example. There are two things I think you should 
change in it if you need to repost it later for some reason. First, the 
file path for the image refers to a subdirectory. Since the downloaded 
image will be in the same directory as the downloaded LyX file, that 
will need to be changed.


Second, you have the image at the start of the paragraph. I cannot find 
any way to trigger wrapping there (which may just be my lack of 
familiarity with the finer points of wrapfig). If I put it somewhere in 
the interior of the paragraph, I can get it to wrap, so you might want 
to move it there. When you move the figure into the body of the 
paragraph, you need to make sure it is not included in the bold faced 
section; if it is, spacing will be screwed up. The trick is to reset the 
series for all the text to the default, insert the figure where you want 
it, then select the preceding text, bold it, select the following text, 
and bold that.


With all that done, the image still pops to the bottom of the page, 
apparently because the text is left-justified. If you change the 
paragraph to default justification, wrapping works. As I said, I'm no 
expert on wrapfig, so I don't know whether it is compatible with 
non-default text justification. A Google search was not helpful in that 
regard. Looking at the LaTeX source generated by LyX, I see no problems, 
so I suspect this is an issue with wrapfig.


Paul



Re: wrapfig

2016-09-19 Thread Paul A. Rubin

On 09/19/2016 01:24 AM, Richard Opheim wrote:

Can't get wrapfig to work.
LyX 2.1.1
WIndows 10


Richard Opheim

Your attached test document loads a missing figure and (in the preamble) 
uses some pretty non-standard fonts. A more generic example would help.


Paul



Re: wrapfig......... how to do that.........

2009-07-26 Thread Vincent van Ravesteijn

M-L schreef:

Hello everyone,

I have been reading this:

http://wiki.lyx.org/Tips/PlacingPicturesBesideTheText

Plus a whole heap of stuff on the net to try to have text wrapped
around a graphic.

I can't make it work.

Just a simple line example would be nice and I will experiment with it
from there:

Do I have to use it in an ERT in the chapter/section I want it in?

 \usepackage{wrapfig}[12]{r}[34pt]{5cm}{pictobeused.jpg}

Doesn't work in ERT

So how might one use it?

Thanks in advance,
Charlie
  
You have to do nothing, just use the menu: Insert - Float - Figure 
Wrap Float. Then insert your graphics just as you'd do for a normal float.


Vincent


Re: wrapfig......... how to do that.........

2009-07-26 Thread M-L
On Mon, 27 Jul 2009 01:23:15 +0200 Vincent van Ravesteijn
v.f.vanraveste...@tudelft.nl applied thoughts to keyboard and posted
this:

M-L schreef:
 Hello everyone,

 I have been reading this:

 http://wiki.lyx.org/Tips/PlacingPicturesBesideTheText

 Plus a whole heap of stuff on the net to try to have text wrapped
 around a graphic.

 I can't make it work.

 Just a simple line example would be nice and I will experiment with
 it from there:

 Do I have to use it in an ERT in the chapter/section I want it in?

  \usepackage{wrapfig}[12]{r}[34pt]{5cm}{pictobeused.jpg}

 Doesn't work in ERT

 So how might one use it?

 Thanks in advance,
 Charlie
   
You have to do nothing, just use the menu: Insert - Float - Figure 
Wrap Float. Then insert your graphics just as you'd do for a normal
float.

Vincent

Thank you for your very prompt reply Vincent, it is very much
appreciated.

Be well,
Charlie

-- 
Registered Linux User:- 329524
***
Is not disease the rule of existence? There is not a lily pad floating
on the river but has been riddled by insects. Almost every shrub and
tree has its gall, oftentimes esteemed its chief ornament and hardly to
be distinguished from the fruit. If misery loves company, misery has
company enough. Now, at midsummer, find me a perfect leaf or
fruit. ...Henry David Thoreau

***
Debian, just the best way to create magic
___


Re: wrapfig......... how to do that.........

2009-07-26 Thread Vincent van Ravesteijn

M-L schreef:

Hello everyone,

I have been reading this:

http://wiki.lyx.org/Tips/PlacingPicturesBesideTheText

Plus a whole heap of stuff on the net to try to have text wrapped
around a graphic.

I can't make it work.

Just a simple line example would be nice and I will experiment with it
from there:

Do I have to use it in an ERT in the chapter/section I want it in?

 \usepackage{wrapfig}[12]{r}[34pt]{5cm}{pictobeused.jpg}

Doesn't work in ERT

So how might one use it?

Thanks in advance,
Charlie
  
You have to do nothing, just use the menu: Insert - Float - Figure 
Wrap Float. Then insert your graphics just as you'd do for a normal float.


Vincent


Re: wrapfig......... how to do that.........

2009-07-26 Thread M-L
On Mon, 27 Jul 2009 01:23:15 +0200 Vincent van Ravesteijn
v.f.vanraveste...@tudelft.nl applied thoughts to keyboard and posted
this:

M-L schreef:
 Hello everyone,

 I have been reading this:

 http://wiki.lyx.org/Tips/PlacingPicturesBesideTheText

 Plus a whole heap of stuff on the net to try to have text wrapped
 around a graphic.

 I can't make it work.

 Just a simple line example would be nice and I will experiment with
 it from there:

 Do I have to use it in an ERT in the chapter/section I want it in?

  \usepackage{wrapfig}[12]{r}[34pt]{5cm}{pictobeused.jpg}

 Doesn't work in ERT

 So how might one use it?

 Thanks in advance,
 Charlie
   
You have to do nothing, just use the menu: Insert - Float - Figure 
Wrap Float. Then insert your graphics just as you'd do for a normal
float.

Vincent

Thank you for your very prompt reply Vincent, it is very much
appreciated.

Be well,
Charlie

-- 
Registered Linux User:- 329524
***
Is not disease the rule of existence? There is not a lily pad floating
on the river but has been riddled by insects. Almost every shrub and
tree has its gall, oftentimes esteemed its chief ornament and hardly to
be distinguished from the fruit. If misery loves company, misery has
company enough. Now, at midsummer, find me a perfect leaf or
fruit. ...Henry David Thoreau

***
Debian, just the best way to create magic
___


Re: wrapfig......... how to do that.........

2009-07-26 Thread Vincent van Ravesteijn

M-L schreef:

Hello everyone,

I have been reading this:

http://wiki.lyx.org/Tips/PlacingPicturesBesideTheText

Plus a whole heap of stuff on the net to try to have text wrapped
around a graphic.

I can't make it work.

Just a simple line example would be nice and I will experiment with it
from there:

Do I have to use it in an ERT in the chapter/section I want it in?

 \usepackage{wrapfig}[12]{r}[34pt]{5cm}{pictobeused.jpg}

Doesn't work in ERT

So how might one use it?

Thanks in advance,
Charlie
  
You have to do nothing, just use the menu: Insert -> Float -> Figure 
Wrap Float. Then insert your graphics just as you'd do for a normal float.


Vincent


Re: wrapfig......... how to do that.........

2009-07-26 Thread M-L
On Mon, 27 Jul 2009 01:23:15 +0200 Vincent van Ravesteijn
 applied thoughts to keyboard and posted
this:

>M-L schreef:
>> Hello everyone,
>>
>> I have been reading this:
>>
>> http://wiki.lyx.org/Tips/PlacingPicturesBesideTheText
>>
>> Plus a whole heap of stuff on the net to try to have text wrapped
>> around a graphic.
>>
>> I can't make it work.
>>
>> Just a simple line example would be nice and I will experiment with
>> it from there:
>>
>> Do I have to use it in an ERT in the chapter/section I want it in?
>>
>>  \usepackage{wrapfig}[12]{r}[34pt]{5cm}{pictobeused.jpg}
>>
>> Doesn't work in ERT
>>
>> So how might one use it?
>>
>> Thanks in advance,
>> Charlie
>>   
>You have to do nothing, just use the menu: Insert -> Float -> Figure 
>Wrap Float. Then insert your graphics just as you'd do for a normal
>float.
>
>Vincent

Thank you for your very prompt reply Vincent, it is very much
appreciated.

Be well,
Charlie

-- 
Registered Linux User:- 329524
***
Is not disease the rule of existence? There is not a lily pad floating
on the river but has been riddled by insects. Almost every shrub and
tree has its gall, oftentimes esteemed its chief ornament and hardly to
be distinguished from the fruit. If misery loves company, misery has
company enough. Now, at midsummer, find me a perfect leaf or
fruit. ...Henry David Thoreau

***
Debian, just the best way to create magic
___