Re: Is this a bug?? \underbar{\alpha} crashes...

2010-04-14 Thread Jacob
Thank you for the concise reply.



Re: Is this a bug?? \underbar{\alpha} crashes...

2010-04-14 Thread Jacob
Thank you for the concise reply.



Re: Is this a bug?? \underbar{\alpha} crashes...

2010-04-14 Thread Jacob
Thank you for the concise reply.



Re: Is this a bug?? \underbar{\alpha} crashes...

2010-03-30 Thread Jacob
Paul A. Rubin ru...@... writes:

 Erez Yerushalmi wrote:

* Snip *
  I wonder if this is a bug??
* Snip *
  Am I missing something
  
 
 http://www.mail-archive.com/lyx-users-UqbJ+GOpo4+hPH1hqNUYSQ at
public.gmane.org/msg59654.html
 
 /Paul

Sorry if this is not the appropriate place for this. It has been a little while.

I have been experiencing the same problem. It seems to me that this IS a bug,
and while what has been proposed (use \underline instead of \underbar) works,
and is valuable input/information, it is a workaround to the bug, not a fix. The
bug still exists. At least, this is how I am reading the problem.

Any news on someone actually addressing the bug?

Jacob
(using lyx 1.6.5)



Re: Is this a bug?? \underbar{\alpha} crashes...

2010-03-30 Thread Paul Rubin
Jacob bishop.ja...@... writes:

 
 I have been experiencing the same problem. It seems to me that this IS a bug,
 and while what has been proposed (use \underline instead of \underbar) works,
 and is valuable input/information, it is a workaround to the bug, not a fix. 
 The bug still exists. At least, this is how I am reading the problem.
 
 Any news on someone actually addressing the bug?

It's not exactly a bug in LyX, more like a quirk of LaTeX not (yet) addressed
by LyX.  See, for instance,
http://newsgroups.derkeiler.com/Archive/Comp/comp.text.tex/2009-11/msg00659.html.

That post led me to a LyX math-macro that defines a new command (I used 
\ubar but the name is arbitrary) that does the trick:

\begin_layout Standard
\begin_inset FormulaMacro
\renewcommand{\ubar}[1]{\underbar{\ensuremath{#1}}}
\end_inset

With this macro defined in the document body, you just type \ubar rather 
than \underbar in a math inset.  It seems to work with a variety of math
symbols, not just Greek letters.

I don't know any way to provide this in a module, though.  You can put the 
code in the preamble, but then LyX won't recognize it as a math macro.  So 
AFAIK your options are:

1.  insert the LaTeX code

\global\long\def\ubar#1{\underbar{\ensuremath{#1}}}

in the preamble (this can be done with a module), and in math insets type

\ubar\{

(which will generate an inset surrounded by braces), type your stuff in the
inset, and live with the fact that LyX does not display the underbar (but 
LaTeX will);

2.  create a document containing the macro definition in the body and save
it as a LyX template; or

3.  create a child document with the macro in it, and include the child in 
any document where you're going to feel an urge to use underbars.

This is bug #4565; I've amended the ticket to suggest the ensuremath fix.  
We'll see what happens.

/Paul





Re: Is this a bug?? \underbar{\alpha} crashes...

2010-03-30 Thread Jacob
Paul A. Rubin ru...@... writes:

 Erez Yerushalmi wrote:

* Snip *
  I wonder if this is a bug??
* Snip *
  Am I missing something
  
 
 http://www.mail-archive.com/lyx-users-UqbJ+GOpo4+hPH1hqNUYSQ at
public.gmane.org/msg59654.html
 
 /Paul

Sorry if this is not the appropriate place for this. It has been a little while.

I have been experiencing the same problem. It seems to me that this IS a bug,
and while what has been proposed (use \underline instead of \underbar) works,
and is valuable input/information, it is a workaround to the bug, not a fix. The
bug still exists. At least, this is how I am reading the problem.

Any news on someone actually addressing the bug?

Jacob
(using lyx 1.6.5)



Re: Is this a bug?? \underbar{\alpha} crashes...

2010-03-30 Thread Paul Rubin
Jacob bishop.ja...@... writes:

 
 I have been experiencing the same problem. It seems to me that this IS a bug,
 and while what has been proposed (use \underline instead of \underbar) works,
 and is valuable input/information, it is a workaround to the bug, not a fix. 
 The bug still exists. At least, this is how I am reading the problem.
 
 Any news on someone actually addressing the bug?

It's not exactly a bug in LyX, more like a quirk of LaTeX not (yet) addressed
by LyX.  See, for instance,
http://newsgroups.derkeiler.com/Archive/Comp/comp.text.tex/2009-11/msg00659.html.

That post led me to a LyX math-macro that defines a new command (I used 
\ubar but the name is arbitrary) that does the trick:

\begin_layout Standard
\begin_inset FormulaMacro
\renewcommand{\ubar}[1]{\underbar{\ensuremath{#1}}}
\end_inset

With this macro defined in the document body, you just type \ubar rather 
than \underbar in a math inset.  It seems to work with a variety of math
symbols, not just Greek letters.

I don't know any way to provide this in a module, though.  You can put the 
code in the preamble, but then LyX won't recognize it as a math macro.  So 
AFAIK your options are:

1.  insert the LaTeX code

\global\long\def\ubar#1{\underbar{\ensuremath{#1}}}

in the preamble (this can be done with a module), and in math insets type

\ubar\{

(which will generate an inset surrounded by braces), type your stuff in the
inset, and live with the fact that LyX does not display the underbar (but 
LaTeX will);

2.  create a document containing the macro definition in the body and save
it as a LyX template; or

3.  create a child document with the macro in it, and include the child in 
any document where you're going to feel an urge to use underbars.

This is bug #4565; I've amended the ticket to suggest the ensuremath fix.  
We'll see what happens.

/Paul





Re: Is this a bug?? \underbar{\alpha} crashes...

2010-03-30 Thread Jacob
Paul A. Rubin  writes:

> Erez Yerushalmi wrote:

* Snip *
> > I wonder if this is a bug??
* Snip *
> > Am I missing something
> > 
> 
> http://www.mail-archive.com/lyx-users-UqbJ+GOpo4+hPH1hqNUYSQ 
public.gmane.org/msg59654.html
> 
> /Paul

Sorry if this is not the appropriate place for this. It has been a little while.

I have been experiencing the same problem. It seems to me that this IS a bug,
and while what has been proposed (use \underline instead of \underbar) works,
and is valuable input/information, it is a workaround to the bug, not a fix. The
bug still exists. At least, this is how I am reading the problem.

Any news on someone actually addressing the bug?

Jacob
(using lyx 1.6.5)



Re: Is this a bug?? \underbar{\alpha} crashes...

2010-03-30 Thread Paul Rubin
Jacob  writes:

> 
> I have been experiencing the same problem. It seems to me that this IS a bug,
> and while what has been proposed (use \underline instead of \underbar) works,
> and is valuable input/information, it is a workaround to the bug, not a fix. 
> The bug still exists. At least, this is how I am reading the problem.
> 
> Any news on someone actually addressing the bug?

It's not exactly a bug in LyX, more like a quirk of LaTeX not (yet) addressed
by LyX.  See, for instance,
http://newsgroups.derkeiler.com/Archive/Comp/comp.text.tex/2009-11/msg00659.html.

That post led me to a LyX math-macro that defines a new command (I used 
\ubar but the name is arbitrary) that does the trick:

\begin_layout Standard
\begin_inset FormulaMacro
\renewcommand{\ubar}[1]{\underbar{\ensuremath{#1}}}
\end_inset

With this macro defined in the document body, you just type \ubar rather 
than \underbar in a math inset.  It seems to work with a variety of math
symbols, not just Greek letters.

I don't know any way to provide this in a module, though.  You can put the 
code in the preamble, but then LyX won't recognize it as a math macro.  So 
AFAIK your options are:

1.  insert the LaTeX code

\global\long\def\ubar#1{\underbar{\ensuremath{#1}}}

in the preamble (this can be done with a module), and in math insets type

\ubar\{

(which will generate an inset surrounded by braces), type your stuff in the
inset, and live with the fact that LyX does not display the underbar (but 
LaTeX will);

2.  create a document containing the macro definition in the body and save
it as a LyX template; or

3.  create a child document with the macro in it, and include the child in 
any document where you're going to feel an urge to use underbars.

This is bug #4565; I've amended the ticket to suggest the ensuremath fix.  
We'll see what happens.

/Paul





Re: Is this a bug?? \underbar{\alpha} crashes...

2010-02-25 Thread Erez Yerushalmi
Let me add to this email that I'm using window-XP, Lyx 1.6.5.

Dear All,

I wonder if this is a bug??

When I use the \underbar I get an error message.  See them below.

In math box, I type
x
\underbar{x}
\underbar{\alpha}

What I get is the following.
First, x is italics.
Second, OK, x comes with underbar, *but* pdf is not italic.   Strange.
Third, crashes with the following errors:

$x$ $\underbar{x}$ $\underbar{\alpha}

$

I've inserted a begin-math/end-math symbol since I think

you left one out. Proceed, with fingers crossed.



and


$x$ $\underbar{x}$ $\underbar{\alpha}

$

I've deleted a group-closing symbol because it seems to be

spurious, as in `$x}$'. But perhaps the } is legitimate and

you forgot something else, as in `\hbox{$x}'. In such cases

the way to recover is to insert both the forgotten and the

deleted material, e.g., by typing `I$}'.

Am I missing something

Thanks a lot,  Erez



-- 
Erez Yerushalmi
PhD Student, Economics
Warwick University, UK
homepage: http://go.warwick.ac.uk/ep/pg/ecrfaw


RE: Is this a bug?? \underbar{\alpha} crashes...

2010-02-25 Thread Vincent van Ravesteijn - TNW

Am I missing something

I guess you should use \underline instead of \underbar (which is used
when pressing Ctrl+U).

Vincent


Re: Is this a bug?? \underbar{\alpha} crashes...

2010-02-25 Thread Paul A. Rubin

Erez Yerushalmi wrote:

Dear all,

I wonder if this is a bug??

When I use the \underbar I get an error message.  See them below.

In math box, I type
x
\underbar{x}
\underbar{\alpha}

What I get is the following. First x is italics.  Ok. Second x comes with
underbar, but pdf is not italic.  Final equation crashes with the following
errors:

$x$ $\underbar{x}$ $\underbar{\alpha}

$

I've inserted a begin-math/end-math symbol since I think

you left one out. Proceed, with fingers crossed.



and


$x$ $\underbar{x}$ $\underbar{\alpha}

$

I've deleted a group-closing symbol because it seems to be

spurious, as in `$x}$'. But perhaps the } is legitimate and

you forgot something else, as in `\hbox{$x}'. In such cases

the way to recover is to insert both the forgotten and the

deleted material, e.g., by typing `I$}'.

Am I missing something



http://www.mail-archive.com/lyx-users@lists.lyx.org/msg59654.html

/Paul



Re: Is this a bug?? \underbar{\alpha} crashes...

2010-02-25 Thread Uwe Stöhr

Erez Yerushalmi schrieb:


When I use the \underbar I get an error message.  See them below.
In math box, I type
x
\underbar{x}
\underbar{\alpha}


You don't need the braces, just press Spacebar to finish a command. For 
more info about formulas, have a look at the Math manual that you find 
in the Help menu of LyX.



What I get is the following.
First, x is italics.


This is correct. Variables are italic in math. That's the common 
typesetting rule.



Second, OK, x comes with underbar, *but* pdf is not italic.


You need to use \underline instead of \underbar. You can alternatively 
use the corresponding math toolbar button to achieve this.



Third, crashes with the following errors:

$x$ $\underbar{x}$ $\underbar{\alpha}
$

I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.


If this problem persits, please provide a _small_ LyX example file.

regards Uwe


Re: Is this a bug?? \underbar{\alpha} crashes...

2010-02-25 Thread Erez Yerushalmi
Hi Uwe

Thanks to your points!
Yes, I'm now using \underline,  instead, and problem solved!  :-)

*However*, Yes, I usually do number 1 and 2 like you said. I just used them
as an example of progression towards the bug.

So, the *problem* arises when I'm in math mode, and I type as usual:
 \underbar space, \alpha space, and I get my equation.  All seems fine.

However, when I PDF it, LyX *crashes*.

See LyX attachment like you asked for.
I'm using XP, Lyx 1.6.5

Best Regards,  Erez



On Thu, Feb 25, 2010 at 6:30 PM, Uwe Stöhr uwesto...@web.de wrote:

 Erez Yerushalmi schrieb:


  When I use the \underbar I get an error message.  See them below.
 In math box, I type
 x
 \underbar{x}
 \underbar{\alpha}


 You don't need the braces, just press Spacebar to finish a command. For
 more info about formulas, have a look at the Math manual that you find in
 the Help menu of LyX.


  What I get is the following.
 First, x is italics.


 This is correct. Variables are italic in math. That's the common
 typesetting rule.

  Second, OK, x comes with underbar, *but* pdf is not italic.


 You need to use \underline instead of \underbar. You can alternatively use
 the corresponding math toolbar button to achieve this.

  Third, crashes with the following errors:


 $x$ $\underbar{x}$ $\underbar{\alpha}
 $

 I've inserted a begin-math/end-math symbol since I think
 you left one out. Proceed, with fingers crossed.


 If this problem persits, please provide a _small_ LyX example file.

 regards Uwe




-- 
Erez Yerushalmi
PhD Student, Economics
Warwick University, UK
homepage: http://go.warwick.ac.uk/ep/pg/ecrfaw


underbar crash.lyx
Description: Binary data


Re: Is this a bug?? \underbar{\alpha} crashes...

2010-02-25 Thread Uwe Stöhr

Am 25.02.2010 19:53, schrieb Erez Yerushalmi:


Yes, I'm now using \underline,  instead, and problem solved!  :-)


So, the *problem* arises when I'm in math mode, and I type as usual:
  \underbar space, \alpha space, and I get my equation.  All seems fine.

However, when I PDF it, LyX *crashes*.


It doesn't crash here, I only get a LaTeX error. The reason is that \underbar is a text command and 
thus cannot handle Greek characters and other math constructs. You must use \underline.


regards Uwe


Re: Is this a bug?? \underbar{\alpha} crashes...

2010-02-25 Thread Erez Yerushalmi
Thanks a lot !!   Like always, I learn something new from you every time.
:-)
I appreciate it.
Erez


On Thu, Feb 25, 2010 at 8:55 PM, Uwe Stöhr uwesto...@web.de wrote:

 Am 25.02.2010 19:53, schrieb Erez Yerushalmi:

  Yes, I'm now using \underline,  instead, and problem solved!  :-)


 So, the *problem* arises when I'm in math mode, and I type as usual:
  \underbar space, \alpha space, and I get my equation.  All seems fine.

 However, when I PDF it, LyX *crashes*.


 It doesn't crash here, I only get a LaTeX error. The reason is that
 \underbar is a text command and thus cannot handle Greek characters and
 other math constructs. You must use \underline.

 regards Uwe




-- 
Erez Yerushalmi
PhD Student, Economics
Warwick University, UK
homepage: http://go.warwick.ac.uk/ep/pg/ecrfaw


Re: Is this a bug?? \underbar{\alpha} crashes...

2010-02-25 Thread Erez Yerushalmi
Let me add to this email that I'm using window-XP, Lyx 1.6.5.

Dear All,

I wonder if this is a bug??

When I use the \underbar I get an error message.  See them below.

In math box, I type
x
\underbar{x}
\underbar{\alpha}

What I get is the following.
First, x is italics.
Second, OK, x comes with underbar, *but* pdf is not italic.   Strange.
Third, crashes with the following errors:

$x$ $\underbar{x}$ $\underbar{\alpha}

$

I've inserted a begin-math/end-math symbol since I think

you left one out. Proceed, with fingers crossed.



and


$x$ $\underbar{x}$ $\underbar{\alpha}

$

I've deleted a group-closing symbol because it seems to be

spurious, as in `$x}$'. But perhaps the } is legitimate and

you forgot something else, as in `\hbox{$x}'. In such cases

the way to recover is to insert both the forgotten and the

deleted material, e.g., by typing `I$}'.

Am I missing something

Thanks a lot,  Erez



-- 
Erez Yerushalmi
PhD Student, Economics
Warwick University, UK
homepage: http://go.warwick.ac.uk/ep/pg/ecrfaw


RE: Is this a bug?? \underbar{\alpha} crashes...

2010-02-25 Thread Vincent van Ravesteijn - TNW

Am I missing something

I guess you should use \underline instead of \underbar (which is used
when pressing Ctrl+U).

Vincent


Re: Is this a bug?? \underbar{\alpha} crashes...

2010-02-25 Thread Paul A. Rubin

Erez Yerushalmi wrote:

Dear all,

I wonder if this is a bug??

When I use the \underbar I get an error message.  See them below.

In math box, I type
x
\underbar{x}
\underbar{\alpha}

What I get is the following. First x is italics.  Ok. Second x comes with
underbar, but pdf is not italic.  Final equation crashes with the following
errors:

$x$ $\underbar{x}$ $\underbar{\alpha}

$

I've inserted a begin-math/end-math symbol since I think

you left one out. Proceed, with fingers crossed.



and


$x$ $\underbar{x}$ $\underbar{\alpha}

$

I've deleted a group-closing symbol because it seems to be

spurious, as in `$x}$'. But perhaps the } is legitimate and

you forgot something else, as in `\hbox{$x}'. In such cases

the way to recover is to insert both the forgotten and the

deleted material, e.g., by typing `I$}'.

Am I missing something



http://www.mail-archive.com/lyx-users@lists.lyx.org/msg59654.html

/Paul



Re: Is this a bug?? \underbar{\alpha} crashes...

2010-02-25 Thread Uwe Stöhr

Erez Yerushalmi schrieb:


When I use the \underbar I get an error message.  See them below.
In math box, I type
x
\underbar{x}
\underbar{\alpha}


You don't need the braces, just press Spacebar to finish a command. For 
more info about formulas, have a look at the Math manual that you find 
in the Help menu of LyX.



What I get is the following.
First, x is italics.


This is correct. Variables are italic in math. That's the common 
typesetting rule.



Second, OK, x comes with underbar, *but* pdf is not italic.


You need to use \underline instead of \underbar. You can alternatively 
use the corresponding math toolbar button to achieve this.



Third, crashes with the following errors:

$x$ $\underbar{x}$ $\underbar{\alpha}
$

I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.


If this problem persits, please provide a _small_ LyX example file.

regards Uwe


Re: Is this a bug?? \underbar{\alpha} crashes...

2010-02-25 Thread Erez Yerushalmi
Hi Uwe

Thanks to your points!
Yes, I'm now using \underline,  instead, and problem solved!  :-)

*However*, Yes, I usually do number 1 and 2 like you said. I just used them
as an example of progression towards the bug.

So, the *problem* arises when I'm in math mode, and I type as usual:
 \underbar space, \alpha space, and I get my equation.  All seems fine.

However, when I PDF it, LyX *crashes*.

See LyX attachment like you asked for.
I'm using XP, Lyx 1.6.5

Best Regards,  Erez



On Thu, Feb 25, 2010 at 6:30 PM, Uwe Stöhr uwesto...@web.de wrote:

 Erez Yerushalmi schrieb:


  When I use the \underbar I get an error message.  See them below.
 In math box, I type
 x
 \underbar{x}
 \underbar{\alpha}


 You don't need the braces, just press Spacebar to finish a command. For
 more info about formulas, have a look at the Math manual that you find in
 the Help menu of LyX.


  What I get is the following.
 First, x is italics.


 This is correct. Variables are italic in math. That's the common
 typesetting rule.

  Second, OK, x comes with underbar, *but* pdf is not italic.


 You need to use \underline instead of \underbar. You can alternatively use
 the corresponding math toolbar button to achieve this.

  Third, crashes with the following errors:


 $x$ $\underbar{x}$ $\underbar{\alpha}
 $

 I've inserted a begin-math/end-math symbol since I think
 you left one out. Proceed, with fingers crossed.


 If this problem persits, please provide a _small_ LyX example file.

 regards Uwe




-- 
Erez Yerushalmi
PhD Student, Economics
Warwick University, UK
homepage: http://go.warwick.ac.uk/ep/pg/ecrfaw


underbar crash.lyx
Description: Binary data


Re: Is this a bug?? \underbar{\alpha} crashes...

2010-02-25 Thread Uwe Stöhr

Am 25.02.2010 19:53, schrieb Erez Yerushalmi:


Yes, I'm now using \underline,  instead, and problem solved!  :-)


So, the *problem* arises when I'm in math mode, and I type as usual:
  \underbar space, \alpha space, and I get my equation.  All seems fine.

However, when I PDF it, LyX *crashes*.


It doesn't crash here, I only get a LaTeX error. The reason is that \underbar is a text command and 
thus cannot handle Greek characters and other math constructs. You must use \underline.


regards Uwe


Re: Is this a bug?? \underbar{\alpha} crashes...

2010-02-25 Thread Erez Yerushalmi
Thanks a lot !!   Like always, I learn something new from you every time.
:-)
I appreciate it.
Erez


On Thu, Feb 25, 2010 at 8:55 PM, Uwe Stöhr uwesto...@web.de wrote:

 Am 25.02.2010 19:53, schrieb Erez Yerushalmi:

  Yes, I'm now using \underline,  instead, and problem solved!  :-)


 So, the *problem* arises when I'm in math mode, and I type as usual:
  \underbar space, \alpha space, and I get my equation.  All seems fine.

 However, when I PDF it, LyX *crashes*.


 It doesn't crash here, I only get a LaTeX error. The reason is that
 \underbar is a text command and thus cannot handle Greek characters and
 other math constructs. You must use \underline.

 regards Uwe




-- 
Erez Yerushalmi
PhD Student, Economics
Warwick University, UK
homepage: http://go.warwick.ac.uk/ep/pg/ecrfaw


Re: Is this a bug?? \underbar{\alpha} crashes...

2010-02-25 Thread Erez Yerushalmi
Let me add to this email that I'm using window-XP, Lyx 1.6.5.

Dear All,

I wonder if this is a bug??

When I use the \underbar I get an error message.  See them below.

In math box, I type
x
\underbar{x}
\underbar{\alpha}

What I get is the following.
First, x is italics.
Second, OK, x comes with underbar, *but* pdf is not italic.   Strange.
Third, crashes with the following errors:

$x$ $\underbar{x}$ $\underbar{\alpha}

$

I've inserted a begin-math/end-math symbol since I think

you left one out. Proceed, with fingers crossed.



and


$x$ $\underbar{x}$ $\underbar{\alpha}

$

I've deleted a group-closing symbol because it seems to be

spurious, as in `$x}$'. But perhaps the } is legitimate and

you forgot something else, as in `\hbox{$x}'. In such cases

the way to recover is to insert both the forgotten and the

deleted material, e.g., by typing `I$}'.

Am I missing something

Thanks a lot,  Erez



-- 
Erez Yerushalmi
PhD Student, Economics
Warwick University, UK
homepage: http://go.warwick.ac.uk/ep/pg/ecrfaw


RE: Is this a bug?? \underbar{\alpha} crashes...

2010-02-25 Thread Vincent van Ravesteijn - TNW

>Am I missing something

I guess you should use \underline instead of \underbar (which is used
when pressing Ctrl+U).

Vincent


Re: Is this a bug?? \underbar{\alpha} crashes...

2010-02-25 Thread Paul A. Rubin

Erez Yerushalmi wrote:

Dear all,

I wonder if this is a bug??

When I use the \underbar I get an error message.  See them below.

In math box, I type
x
\underbar{x}
\underbar{\alpha}

What I get is the following. First x is italics.  Ok. Second x comes with
underbar, but pdf is not italic.  Final equation crashes with the following
errors:

$x$ $\underbar{x}$ $\underbar{\alpha}

$

I've inserted a begin-math/end-math symbol since I think

you left one out. Proceed, with fingers crossed.



and


$x$ $\underbar{x}$ $\underbar{\alpha}

$

I've deleted a group-closing symbol because it seems to be

spurious, as in `$x}$'. But perhaps the } is legitimate and

you forgot something else, as in `\hbox{$x}'. In such cases

the way to recover is to insert both the forgotten and the

deleted material, e.g., by typing `I$}'.

Am I missing something



http://www.mail-archive.com/lyx-users@lists.lyx.org/msg59654.html

/Paul



Re: Is this a bug?? \underbar{\alpha} crashes...

2010-02-25 Thread Uwe Stöhr

Erez Yerushalmi schrieb:


When I use the \underbar I get an error message.  See them below.
In math box, I type
x
\underbar{x}
\underbar{\alpha}


You don't need the braces, just press Spacebar to finish a command. For 
more info about formulas, have a look at the Math manual that you find 
in the Help menu of LyX.



What I get is the following.
First, x is italics.


This is correct. Variables are italic in math. That's the common 
typesetting rule.



Second, OK, x comes with underbar, *but* pdf is not italic.


You need to use \underline instead of \underbar. You can alternatively 
use the corresponding math toolbar button to achieve this.



Third, crashes with the following errors:

$x$ $\underbar{x}$ $\underbar{\alpha}
$

I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.


If this problem persits, please provide a _small_ LyX example file.

regards Uwe


Re: Is this a bug?? \underbar{\alpha} crashes...

2010-02-25 Thread Erez Yerushalmi
Hi Uwe

Thanks to your points!
Yes, I'm now using \underline,  instead, and problem solved!  :-)

*However*, Yes, I usually do number 1 and 2 like you said. I just used them
as an example of progression towards the bug.

So, the *problem* arises when I'm in math mode, and I type as usual:
 \underbar space, \alpha space, and I get my equation.  All seems fine.

However, when I PDF it, LyX *crashes*.

See LyX attachment like you asked for.
I'm using XP, Lyx 1.6.5

Best Regards,  Erez



On Thu, Feb 25, 2010 at 6:30 PM, Uwe Stöhr  wrote:

> Erez Yerushalmi schrieb:
>
>
>  When I use the \underbar I get an error message.  See them below.
>> In math box, I type
>> x
>> \underbar{x}
>> \underbar{\alpha}
>>
>
> You don't need the braces, just press Spacebar to finish a command. For
> more info about formulas, have a look at the Math manual that you find in
> the Help menu of LyX.
>
>
>  What I get is the following.
>> First, x is italics.
>>
>
> This is correct. Variables are italic in math. That's the common
> typesetting rule.
>
>  Second, OK, x comes with underbar, *but* pdf is not italic.
>>
>
> You need to use \underline instead of \underbar. You can alternatively use
> the corresponding math toolbar button to achieve this.
>
>  Third, crashes with the following errors:
>>
>>
>> $x$ $\underbar{x}$ $\underbar{\alpha}
>> $
>>
>> I've inserted a begin-math/end-math symbol since I think
>> you left one out. Proceed, with fingers crossed.
>>
>
> If this problem persits, please provide a _small_ LyX example file.
>
> regards Uwe
>



-- 
Erez Yerushalmi
PhD Student, Economics
Warwick University, UK
homepage: http://go.warwick.ac.uk/ep/pg/ecrfaw


underbar crash.lyx
Description: Binary data


Re: Is this a bug?? \underbar{\alpha} crashes...

2010-02-25 Thread Uwe Stöhr

Am 25.02.2010 19:53, schrieb Erez Yerushalmi:


Yes, I'm now using \underline,  instead, and problem solved!  :-)


So, the *problem* arises when I'm in math mode, and I type as usual:
  \underbar space, \alpha space, and I get my equation.  All seems fine.

However, when I PDF it, LyX *crashes*.


It doesn't crash here, I only get a LaTeX error. The reason is that \underbar is a text command and 
thus cannot handle Greek characters and other math constructs. You must use \underline.


regards Uwe


Re: Is this a bug?? \underbar{\alpha} crashes...

2010-02-25 Thread Erez Yerushalmi
Thanks a lot !!   Like always, I learn something new from you every time.
:-)
I appreciate it.
Erez


On Thu, Feb 25, 2010 at 8:55 PM, Uwe Stöhr  wrote:

> Am 25.02.2010 19:53, schrieb Erez Yerushalmi:
>
>  Yes, I'm now using \underline,  instead, and problem solved!  :-)
>>
>>
>> So, the *problem* arises when I'm in math mode, and I type as usual:
>>  \underbar space, \alpha space, and I get my equation.  All seems fine.
>>
>> However, when I PDF it, LyX *crashes*.
>>
>
> It doesn't crash here, I only get a LaTeX error. The reason is that
> \underbar is a text command and thus cannot handle Greek characters and
> other math constructs. You must use \underline.
>
> regards Uwe
>



-- 
Erez Yerushalmi
PhD Student, Economics
Warwick University, UK
homepage: http://go.warwick.ac.uk/ep/pg/ecrfaw