Re: Two hopefully simple lyx questions

2013-03-13 Thread Wolfgang Engelmann
Am Dienstag, 12. März 2013, 23:49:03 schrieb Csikos Bela:
snip
 2. Is there any way to use footnotes in the caption
 of figure floats? Lyx automatically disables the Insert-Footnote menu
 item in this case.
 
 I don't know about this one.
in preamble:
\usepackage{footnote} % Ermöglicht Fußnoten in gleitenden Umgebungen


Wolfgang


Re: Two hopefully simple lyx questions

2013-03-13 Thread Wolfgang Engelmann
Am Dienstag, 12. März 2013, 23:49:03 schrieb Csikos Bela:
snip
 2. Is there any way to use footnotes in the caption
 of figure floats? Lyx automatically disables the Insert-Footnote menu
 item in this case.
 
 I don't know about this one.
in preamble:
\usepackage{footnote} % Ermöglicht Fußnoten in gleitenden Umgebungen


Wolfgang


Re: Two hopefully simple lyx questions

2013-03-13 Thread Wolfgang Engelmann
Am Dienstag, 12. März 2013, 23:49:03 schrieb Csikos Bela:
snip
> >2. Is there any way to use footnotes in the caption
> >of figure floats? Lyx automatically disables the Insert->Footnote menu
> >>item in this case.
> 
> I don't know about this one.
in preamble:
\usepackage{footnote} % Ermöglicht Fußnoten in gleitenden Umgebungen


Wolfgang


Re: Two hopefully simple lyx questions

2013-03-12 Thread Liviu Andronic
On Tue, Mar 12, 2013 at 8:20 PM, Regina Anger regina.an...@hotmail.com wrote:
 Hi,

 I am using lyx to write a thesis, and currently there are only two issues
 which cause problems:

 1. Sometimes I use long non-breakable words, like long function names. In
 those cases lyx/latex do not attemp to break a new line, instead the long
 function name ignores margins and even sometimes is placed outside of the
 printable area.
 Is this a known problem? Are there workarrounds available?

https://sites.google.com/site/tsewiki/resources/latex

LyX_Essentials.pdf
Section 5.6

Liviu


 2. Is there any way to use footnotes in the caption of figure floats? Lyx
 automatically disables the Insert-Footnote menu item in this case.

 Thx



-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


RE: Two hopefully simple lyx questions

2013-03-12 Thread Regina Anger
Hi Liviu,

  1. Sometimes I use long non-breakable words, like long function names. In
  those cases lyx/latex do not attemp to break a new line, instead the long
  function name ignores margins and even sometimes is placed outside of the
  printable area.
  Is this a known problem? Are there workarrounds available?
 
 https://sites.google.com/site/tsewiki/resources/latex
 
 LyX_Essentials.pdf
 Section 5.6

Thanks for the pointer.
However, for me latex does not hyphenate long function names at all, and I do 
not want the fuction name to be cut-off in the middle.

Is there any way to specify that in case of hyphenation latex should instead 
put this specific word into the next line completely?

Thx
  

RE: Two hopefully simple lyx questions

2013-03-12 Thread Rich Shepard

On Tue, 12 Mar 2013, Regina Anger wrote:


However, for me latex does not hyphenate long function names at all, and I
do not want the fuction name to be cut-off in the middle.


Regina,

  Sometimes TeX cannot determine where a word should be hypenated so it
sticks out into the right margin. We give TeX hints for hyphenating by
entering the ERT \- at places where it is OK to hyphenate the word. TeX will
pick one of these and use it. I do this quite frequently.

  The alternative is to re-order the sentence so the long string is within
the line and shorter words surround it. I do this, too, on occasion.

Rich



RE: Two hopefully simple lyx questions

2013-03-12 Thread Regina Anger
Hi Rich,

Sometimes TeX cannot determine where a word should be hypenated so it
 sticks out into the right margin. We give TeX hints for hyphenating by
 entering the ERT \- at places where it is OK to hyphenate the word. TeX will
 pick one of these and use it. I do this quite frequently.
 
The alternative is to re-order the sentence so the long string is within
 the line and shorter words surround it. I do this, too, on occasion.

So, there is no way to tell TeX to put a word on the next line completely in 
case it would be hyphenated?
Otherwise it seems I really have to take the re-ordering approach, however if 
possible I would like to avoid this as it seems not very robust in regards to 
changes.

Thx
  

RE: Two hopefully simple lyx questions

2013-03-12 Thread Rich Shepard

On Tue, 12 Mar 2013, Regina Anger wrote:


So, there is no way to tell TeX to put a word on the next line completely
in case it would be hyphenated? Otherwise it seems I really have to take
the re-ordering approach, however if possible I would like to avoid this
as it seems not very robust in regards to changes.


Regina,

  Have you tried entering (as ERT) \n (newline) before your long function
name? I've not done this but it should force a line break there.

Rich



Re: Two hopefully simple lyx questions

2013-03-12 Thread Paul A . Rubin
Try \linebreak[4]\mbox{annoyinglongunbreakableword}. You can put the whole thing
in a TeX box, or put everything up to and including the first brace in a TeX
box, the unbreakable mess in ordinary text, and the trailing brace in another
TeX box.

Footnotes in captions is an unholy mess. Try googling it and you'll see.

Paul





Re: Two hopefully simple lyx questions

2013-03-12 Thread Rich Shepard

On Tue, 12 Mar 2013, Paul A. Rubin wrote:


Footnotes in captions is an unholy mess. Try googling it and you'll see.


  The LyX wiki has useful help on this ... I used it in a recent paper. You
make an mbox in the float, put the graphic in one part and the caption in
the other (I forget the exact process but it's all in the wiki page). Works
OK.

Rich



Re: Two hopefully simple lyx questions

2013-03-12 Thread David L. Johnson

On 03/12/2013 05:20 PM, Regina Anger wrote:

Hi Liviu,

  1. Sometimes I use long non-breakable words, like long function 
names. In
  those cases lyx/latex do not attemp to break a new line, instead 
the long
  function name ignores margins and even sometimes is placed outside 
of the

  printable area.
  Is this a known problem? Are there workarrounds available?
 
 https://sites.google.com/site/tsewiki/resources/latex

 LyX_Essentials.pdf
 Section 5.6

Thanks for the pointer.
However, for me latex does not hyphenate long function names at all, 
and I do not want the fuction name to be cut-off in the middle.


Is there any way to specify that in case of hyphenation latex should 
instead put this specific word into the next line completely?


Thx
What you are really talking about is a too-long math line.  This happens 
all the time with long expressions, though I have never had a math 
function name so long that it caused trouble.


You can manually break the line by using a multiline math environment.  
LyX will let you choose from a list in the menus.


It might just be that you need to make the math line, where the function 
is, a displayed line rather than inline.  Is the function so long that 
it takes more than a whole line of a page?  TeX sometimes has trouble 
with inline equations.  It will not hyphenate such a line (hyphens would 
be interpreted as minus signs), leaving it for you to do manually.



--

David L. Johnson

Let's be straight here.  If we find something we can't understand we
like to call it something you can't understand, or indeed even
pronounce.
-- Douglas Adams



Re: Two hopefully simple lyx questions

2013-03-12 Thread David L. Johnson

On 03/12/2013 05:24 PM, Rich Shepard wrote:

On Tue, 12 Mar 2013, Regina Anger wrote:

However, for me latex does not hyphenate long function names at all, 
and I

do not want the fuction name to be cut-off in the middle.


Regina,

  Sometimes TeX cannot determine where a word should be hypenated so it
sticks out into the right margin. We give TeX hints for hyphenating by
entering the ERT \- at places where it is OK to hyphenate the word. 
TeX will

pick one of these and use it. I do this quite frequently.

  The alternative is to re-order the sentence so the long string is 
within

the line and shorter words surround it. I do this, too, on occasion.

Rich
I think the issue is that this is happening in math mode.  There, lines 
are up to the writer entirely.


--

David L. Johnson

Let's be straight here.  If we find something we can't understand we
like to call it something you can't understand, or indeed even
pronounce.
-- Douglas Adams



Re: Two hopefully simple lyx questions

2013-03-12 Thread Csikos Bela
Regina Anger regina.an...@hotmail.com írta:
Hi,I am using lyx to write a thesis, and currently there are only two issues
which cause problems:1. Sometimes I use long non-breakable words, like
long function names. In those cases lyx/latex do not attemp to break a new
line, instead the long function name ignores margins and even sometimes is 
placed outside of the printable area.Is this a known problem?

You can add the line
\sloppy
in document preamble (Document-settings-Latex preamble).
It helps to keep margins and force line breaks.

For preventing hyphenation of your long functions add this to the very 
beginning of your document in ERT (=insert text code):
\hyphenation{longfunction1 lon-gfun-cti-on2 etc}.

Staying with the above example logfunction1 will not be hyphenated at all, 
longfunction2 can be hyphenated at every indicated dashes.


2. Is there any way to use footnotes in the caption 
of figure floats? Lyx automatically disables the Insert-Footnote menu item 
in this case.

I don't know about this one.

bcsikos



Re: Two hopefully simple lyx questions

2013-03-12 Thread Scott Kostyshak
On Tue, Mar 12, 2013 at 6:43 PM, David L. Johnson
david.john...@lehigh.edu wrote:
 On 03/12/2013 05:24 PM, Rich Shepard wrote:

 On Tue, 12 Mar 2013, Regina Anger wrote:

 However, for me latex does not hyphenate long function names at all, and
 I
 do not want the fuction name to be cut-off in the middle.


 Regina,

   Sometimes TeX cannot determine where a word should be hypenated so it
 sticks out into the right margin. We give TeX hints for hyphenating by
 entering the ERT \- at places where it is OK to hyphenate the word. TeX
 will
 pick one of these and use it. I do this quite frequently.

   The alternative is to re-order the sentence so the long string is within
 the line and shorter words surround it. I do this, too, on occasion.

 Rich

 I think the issue is that this is happening in math mode.  There, lines are
 up to the writer entirely.

I don't have much experience with it, but perhaps the breqn package
could be useful here.

Scott


Re: Two hopefully simple lyx questions

2013-03-12 Thread Liviu Andronic
On Tue, Mar 12, 2013 at 8:20 PM, Regina Anger regina.an...@hotmail.com wrote:
 Hi,

 I am using lyx to write a thesis, and currently there are only two issues
 which cause problems:

 1. Sometimes I use long non-breakable words, like long function names. In
 those cases lyx/latex do not attemp to break a new line, instead the long
 function name ignores margins and even sometimes is placed outside of the
 printable area.
 Is this a known problem? Are there workarrounds available?

https://sites.google.com/site/tsewiki/resources/latex

LyX_Essentials.pdf
Section 5.6

Liviu


 2. Is there any way to use footnotes in the caption of figure floats? Lyx
 automatically disables the Insert-Footnote menu item in this case.

 Thx



-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


RE: Two hopefully simple lyx questions

2013-03-12 Thread Regina Anger
Hi Liviu,

  1. Sometimes I use long non-breakable words, like long function names. In
  those cases lyx/latex do not attemp to break a new line, instead the long
  function name ignores margins and even sometimes is placed outside of the
  printable area.
  Is this a known problem? Are there workarrounds available?
 
 https://sites.google.com/site/tsewiki/resources/latex
 
 LyX_Essentials.pdf
 Section 5.6

Thanks for the pointer.
However, for me latex does not hyphenate long function names at all, and I do 
not want the fuction name to be cut-off in the middle.

Is there any way to specify that in case of hyphenation latex should instead 
put this specific word into the next line completely?

Thx
  

RE: Two hopefully simple lyx questions

2013-03-12 Thread Rich Shepard

On Tue, 12 Mar 2013, Regina Anger wrote:


However, for me latex does not hyphenate long function names at all, and I
do not want the fuction name to be cut-off in the middle.


Regina,

  Sometimes TeX cannot determine where a word should be hypenated so it
sticks out into the right margin. We give TeX hints for hyphenating by
entering the ERT \- at places where it is OK to hyphenate the word. TeX will
pick one of these and use it. I do this quite frequently.

  The alternative is to re-order the sentence so the long string is within
the line and shorter words surround it. I do this, too, on occasion.

Rich



RE: Two hopefully simple lyx questions

2013-03-12 Thread Regina Anger
Hi Rich,

Sometimes TeX cannot determine where a word should be hypenated so it
 sticks out into the right margin. We give TeX hints for hyphenating by
 entering the ERT \- at places where it is OK to hyphenate the word. TeX will
 pick one of these and use it. I do this quite frequently.
 
The alternative is to re-order the sentence so the long string is within
 the line and shorter words surround it. I do this, too, on occasion.

So, there is no way to tell TeX to put a word on the next line completely in 
case it would be hyphenated?
Otherwise it seems I really have to take the re-ordering approach, however if 
possible I would like to avoid this as it seems not very robust in regards to 
changes.

Thx
  

RE: Two hopefully simple lyx questions

2013-03-12 Thread Rich Shepard

On Tue, 12 Mar 2013, Regina Anger wrote:


So, there is no way to tell TeX to put a word on the next line completely
in case it would be hyphenated? Otherwise it seems I really have to take
the re-ordering approach, however if possible I would like to avoid this
as it seems not very robust in regards to changes.


Regina,

  Have you tried entering (as ERT) \n (newline) before your long function
name? I've not done this but it should force a line break there.

Rich



Re: Two hopefully simple lyx questions

2013-03-12 Thread Paul A . Rubin
Try \linebreak[4]\mbox{annoyinglongunbreakableword}. You can put the whole thing
in a TeX box, or put everything up to and including the first brace in a TeX
box, the unbreakable mess in ordinary text, and the trailing brace in another
TeX box.

Footnotes in captions is an unholy mess. Try googling it and you'll see.

Paul





Re: Two hopefully simple lyx questions

2013-03-12 Thread Rich Shepard

On Tue, 12 Mar 2013, Paul A. Rubin wrote:


Footnotes in captions is an unholy mess. Try googling it and you'll see.


  The LyX wiki has useful help on this ... I used it in a recent paper. You
make an mbox in the float, put the graphic in one part and the caption in
the other (I forget the exact process but it's all in the wiki page). Works
OK.

Rich



Re: Two hopefully simple lyx questions

2013-03-12 Thread David L. Johnson

On 03/12/2013 05:20 PM, Regina Anger wrote:

Hi Liviu,

  1. Sometimes I use long non-breakable words, like long function 
names. In
  those cases lyx/latex do not attemp to break a new line, instead 
the long
  function name ignores margins and even sometimes is placed outside 
of the

  printable area.
  Is this a known problem? Are there workarrounds available?
 
 https://sites.google.com/site/tsewiki/resources/latex

 LyX_Essentials.pdf
 Section 5.6

Thanks for the pointer.
However, for me latex does not hyphenate long function names at all, 
and I do not want the fuction name to be cut-off in the middle.


Is there any way to specify that in case of hyphenation latex should 
instead put this specific word into the next line completely?


Thx
What you are really talking about is a too-long math line.  This happens 
all the time with long expressions, though I have never had a math 
function name so long that it caused trouble.


You can manually break the line by using a multiline math environment.  
LyX will let you choose from a list in the menus.


It might just be that you need to make the math line, where the function 
is, a displayed line rather than inline.  Is the function so long that 
it takes more than a whole line of a page?  TeX sometimes has trouble 
with inline equations.  It will not hyphenate such a line (hyphens would 
be interpreted as minus signs), leaving it for you to do manually.



--

David L. Johnson

Let's be straight here.  If we find something we can't understand we
like to call it something you can't understand, or indeed even
pronounce.
-- Douglas Adams



Re: Two hopefully simple lyx questions

2013-03-12 Thread David L. Johnson

On 03/12/2013 05:24 PM, Rich Shepard wrote:

On Tue, 12 Mar 2013, Regina Anger wrote:

However, for me latex does not hyphenate long function names at all, 
and I

do not want the fuction name to be cut-off in the middle.


Regina,

  Sometimes TeX cannot determine where a word should be hypenated so it
sticks out into the right margin. We give TeX hints for hyphenating by
entering the ERT \- at places where it is OK to hyphenate the word. 
TeX will

pick one of these and use it. I do this quite frequently.

  The alternative is to re-order the sentence so the long string is 
within

the line and shorter words surround it. I do this, too, on occasion.

Rich
I think the issue is that this is happening in math mode.  There, lines 
are up to the writer entirely.


--

David L. Johnson

Let's be straight here.  If we find something we can't understand we
like to call it something you can't understand, or indeed even
pronounce.
-- Douglas Adams



Re: Two hopefully simple lyx questions

2013-03-12 Thread Csikos Bela
Regina Anger regina.an...@hotmail.com írta:
Hi,I am using lyx to write a thesis, and currently there are only two issues
which cause problems:1. Sometimes I use long non-breakable words, like
long function names. In those cases lyx/latex do not attemp to break a new
line, instead the long function name ignores margins and even sometimes is 
placed outside of the printable area.Is this a known problem?

You can add the line
\sloppy
in document preamble (Document-settings-Latex preamble).
It helps to keep margins and force line breaks.

For preventing hyphenation of your long functions add this to the very 
beginning of your document in ERT (=insert text code):
\hyphenation{longfunction1 lon-gfun-cti-on2 etc}.

Staying with the above example logfunction1 will not be hyphenated at all, 
longfunction2 can be hyphenated at every indicated dashes.


2. Is there any way to use footnotes in the caption 
of figure floats? Lyx automatically disables the Insert-Footnote menu item 
in this case.

I don't know about this one.

bcsikos



Re: Two hopefully simple lyx questions

2013-03-12 Thread Scott Kostyshak
On Tue, Mar 12, 2013 at 6:43 PM, David L. Johnson
david.john...@lehigh.edu wrote:
 On 03/12/2013 05:24 PM, Rich Shepard wrote:

 On Tue, 12 Mar 2013, Regina Anger wrote:

 However, for me latex does not hyphenate long function names at all, and
 I
 do not want the fuction name to be cut-off in the middle.


 Regina,

   Sometimes TeX cannot determine where a word should be hypenated so it
 sticks out into the right margin. We give TeX hints for hyphenating by
 entering the ERT \- at places where it is OK to hyphenate the word. TeX
 will
 pick one of these and use it. I do this quite frequently.

   The alternative is to re-order the sentence so the long string is within
 the line and shorter words surround it. I do this, too, on occasion.

 Rich

 I think the issue is that this is happening in math mode.  There, lines are
 up to the writer entirely.

I don't have much experience with it, but perhaps the breqn package
could be useful here.

Scott


Re: Two hopefully simple lyx questions

2013-03-12 Thread Liviu Andronic
On Tue, Mar 12, 2013 at 8:20 PM, Regina Anger  wrote:
> Hi,
>
> I am using lyx to write a thesis, and currently there are only two issues
> which cause problems:
>
> 1. Sometimes I use long non-breakable words, like long function names. In
> those cases lyx/latex do not attemp to break a new line, instead the long
> function name ignores margins and even sometimes is placed outside of the
> printable area.
> Is this a known problem? Are there workarrounds available?
>
https://sites.google.com/site/tsewiki/resources/latex

LyX_Essentials.pdf
Section 5.6

Liviu


> 2. Is there any way to use footnotes in the caption of figure floats? Lyx
> automatically disables the Insert->Footnote menu item in this case.
>
> Thx



-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


RE: Two hopefully simple lyx questions

2013-03-12 Thread Regina Anger
Hi Liviu,

> > 1. Sometimes I use long non-breakable words, like long function names. In
> > those cases lyx/latex do not attemp to break a new line, instead the long
> > function name ignores margins and even sometimes is placed outside of the
> > printable area.
> > Is this a known problem? Are there workarrounds available?
> >
> https://sites.google.com/site/tsewiki/resources/latex
> 
> LyX_Essentials.pdf
> Section 5.6

Thanks for the pointer.
However, for me latex does not hyphenate long function names at all, and I do 
not want the fuction name to be cut-off in the middle.

Is there any way to specify that in case of hyphenation latex should instead 
put this specific word into the next line completely?

Thx
  

RE: Two hopefully simple lyx questions

2013-03-12 Thread Rich Shepard

On Tue, 12 Mar 2013, Regina Anger wrote:


However, for me latex does not hyphenate long function names at all, and I
do not want the fuction name to be cut-off in the middle.


Regina,

  Sometimes TeX cannot determine where a word should be hypenated so it
sticks out into the right margin. We give TeX hints for hyphenating by
entering the ERT \- at places where it is OK to hyphenate the word. TeX will
pick one of these and use it. I do this quite frequently.

  The alternative is to re-order the sentence so the long string is within
the line and shorter words surround it. I do this, too, on occasion.

Rich



RE: Two hopefully simple lyx questions

2013-03-12 Thread Regina Anger
Hi Rich,

>Sometimes TeX cannot determine where a word should be hypenated so it
> sticks out into the right margin. We give TeX hints for hyphenating by
> entering the ERT \- at places where it is OK to hyphenate the word. TeX will
> pick one of these and use it. I do this quite frequently.
> 
>The alternative is to re-order the sentence so the long string is within
> the line and shorter words surround it. I do this, too, on occasion.

So, there is no way to tell TeX to put a word on the next line completely in 
case it would be hyphenated?
Otherwise it seems I really have to take the re-ordering approach, however if 
possible I would like to avoid this as it seems not very robust in regards to 
changes.

Thx
  

RE: Two hopefully simple lyx questions

2013-03-12 Thread Rich Shepard

On Tue, 12 Mar 2013, Regina Anger wrote:


So, there is no way to tell TeX to put a word on the next line completely
in case it would be hyphenated? Otherwise it seems I really have to take
the re-ordering approach, however if possible I would like to avoid this
as it seems not very robust in regards to changes.


Regina,

  Have you tried entering (as ERT) \n (newline) before your long function
name? I've not done this but it should force a line break there.

Rich



Re: Two hopefully simple lyx questions

2013-03-12 Thread Paul A . Rubin
Try \linebreak[4]\mbox{annoyinglongunbreakableword}. You can put the whole thing
in a TeX box, or put everything up to and including the first brace in a TeX
box, the unbreakable mess in ordinary text, and the trailing brace in another
TeX box.

Footnotes in captions is an unholy mess. Try googling it and you'll see.

Paul





Re: Two hopefully simple lyx questions

2013-03-12 Thread Rich Shepard

On Tue, 12 Mar 2013, Paul A. Rubin wrote:


Footnotes in captions is an unholy mess. Try googling it and you'll see.


  The LyX wiki has useful help on this ... I used it in a recent paper. You
make an mbox in the float, put the graphic in one part and the caption in
the other (I forget the exact process but it's all in the wiki page). Works
OK.

Rich



Re: Two hopefully simple lyx questions

2013-03-12 Thread David L. Johnson

On 03/12/2013 05:20 PM, Regina Anger wrote:

Hi Liviu,

> > 1. Sometimes I use long non-breakable words, like long function 
names. In
> > those cases lyx/latex do not attemp to break a new line, instead 
the long
> > function name ignores margins and even sometimes is placed outside 
of the

> > printable area.
> > Is this a known problem? Are there workarrounds available?
> >
> https://sites.google.com/site/tsewiki/resources/latex
>
> LyX_Essentials.pdf
> Section 5.6

Thanks for the pointer.
However, for me latex does not hyphenate long function names at all, 
and I do not want the fuction name to be cut-off in the middle.


Is there any way to specify that in case of hyphenation latex should 
instead put this specific word into the next line completely?


Thx
What you are really talking about is a too-long math line.  This happens 
all the time with long expressions, though I have never had a math 
function name so long that it caused trouble.


You can manually break the line by using a multiline math environment.  
LyX will let you choose from a list in the menus.


It might just be that you need to make the math line, where the function 
is, a displayed line rather than inline.  Is the function so long that 
it takes more than a whole line of a page?  TeX sometimes has trouble 
with inline equations.  It will not hyphenate such a line (hyphens would 
be interpreted as minus signs), leaving it for you to do manually.



--

David L. Johnson

Let's be straight here.  If we find something we can't understand we
like to call it something you can't understand, or indeed even
pronounce.
-- Douglas Adams



Re: Two hopefully simple lyx questions

2013-03-12 Thread David L. Johnson

On 03/12/2013 05:24 PM, Rich Shepard wrote:

On Tue, 12 Mar 2013, Regina Anger wrote:

However, for me latex does not hyphenate long function names at all, 
and I

do not want the fuction name to be cut-off in the middle.


Regina,

  Sometimes TeX cannot determine where a word should be hypenated so it
sticks out into the right margin. We give TeX hints for hyphenating by
entering the ERT \- at places where it is OK to hyphenate the word. 
TeX will

pick one of these and use it. I do this quite frequently.

  The alternative is to re-order the sentence so the long string is 
within

the line and shorter words surround it. I do this, too, on occasion.

Rich
I think the issue is that this is happening in math mode.  There, lines 
are up to the writer entirely.


--

David L. Johnson

Let's be straight here.  If we find something we can't understand we
like to call it something you can't understand, or indeed even
pronounce.
-- Douglas Adams



Re: Two hopefully simple lyx questions

2013-03-12 Thread Csikos Bela
Regina Anger  írta:
>Hi,I am using lyx to write a thesis, and currently there are only two issues
>which cause problems:1. Sometimes I use long non-breakable words, like
>long function names. In those cases lyx/latex do not attemp to break a new
>line, instead the long function name ignores margins and even sometimes >is 
>placed outside of the printable area.Is this a known problem?

You can add the line
\sloppy
in document preamble (Document->settings->Latex preamble).
It helps to keep margins and force line breaks.

For preventing hyphenation of your long functions add this to the very 
beginning of your document in ERT (=insert text code):
\hyphenation{longfunction1 lon-gfun-cti-on2 etc}.

Staying with the above example logfunction1 will not be hyphenated at all, 
longfunction2 can be hyphenated at every indicated dashes.


>2. Is there any way to use footnotes in the caption 
>of figure floats? Lyx automatically disables the Insert->Footnote menu >item 
>in this case.

I don't know about this one.

bcsikos



Re: Two hopefully simple lyx questions

2013-03-12 Thread Scott Kostyshak
On Tue, Mar 12, 2013 at 6:43 PM, David L. Johnson
 wrote:
> On 03/12/2013 05:24 PM, Rich Shepard wrote:
>>
>> On Tue, 12 Mar 2013, Regina Anger wrote:
>>
>>> However, for me latex does not hyphenate long function names at all, and
>>> I
>>> do not want the fuction name to be cut-off in the middle.
>>
>>
>> Regina,
>>
>>   Sometimes TeX cannot determine where a word should be hypenated so it
>> sticks out into the right margin. We give TeX hints for hyphenating by
>> entering the ERT \- at places where it is OK to hyphenate the word. TeX
>> will
>> pick one of these and use it. I do this quite frequently.
>>
>>   The alternative is to re-order the sentence so the long string is within
>> the line and shorter words surround it. I do this, too, on occasion.
>>
>> Rich
>
> I think the issue is that this is happening in math mode.  There, lines are
> up to the writer entirely.

I don't have much experience with it, but perhaps the breqn package
could be useful here.

Scott