quotes in mathmode?

1999-09-22 Thread Bill Simpson

I want to do, in mathmode,
Pr(``bigger'')
I tried
\Pr(\mbox{"bigger"}) using double quotes.
The quotes are absent when I veiw with dvi.

I tried
\Pr(\mbox{``bigger''})
but I can't get Lyx to "accept" the single left-hand `` quotes.
When I type them they don't show up at all. (Also absent from dvi
view--the right hand ones '' show up fine)

Please tell me what to do. Thanks!

I am using Lyx 1.0.0pre2

Bill



Re: quotes in mathmode?

1999-09-22 Thread Bill Simpson

 
 AFAIU, mathed (the equation editor) does not re-enter in paragraph or LR mode
 as TeX /LaTeX does, so that the keystrokes after \mbox are still in math
 with the corresponding restrictions.
I don't really understand this.
However using \mbox{text} seems to work--looks like normal text, not
italic. The problem is just the quotes

 Have you tried the math text mode (M-m m) instead of \mbox ?
Same problem.
Can't type `` or ".

So is this a bug in LyX?

Bill



Re: quotes in mathmode?

1999-09-22 Thread Jean-Pierre.Chretien


Date: Wed, 22 Sep 1999 10:21:47 + (GMT)
From: Bill Simpson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: quotes in mathmode?

 
 AFAIU, mathed (the equation editor) does not re-enter in paragraph or LR mode
 as TeX /LaTeX does, so that the keystrokes after \mbox are still in math
 with the corresponding restrictions.
I don't really understand this.
However using \mbox{text} seems to work--looks like normal text, not
italic. The problem is just the quotes

No, the problem is that you may invoke in LaTeX any legal construct allowed in a mbox,
including re-entering math mode (that is quite useful if you write math \newcommands as
\newcommand{\myadot}{\mbox{$\dot{a}$}} to be able to use \myadot in math mode AND in 
text mode).
With mathed, you don't need this anymore (have a look at the math macro mechanism)
because you can't re-enter in real text mode once you are in math mode.


 Have you tried the math text mode (M-m m) instead of \mbox ?
Same problem.
Can't type `` or ".


The math text mode does not accept punctuation I guess.


So is this a bug in LyX?

That's a feature of mathed :-). There are counterparts: as I mentioned above
the math macro mechanism is very powerful.

-- 
Jean-Pierre



Re: quotes in mathmode?

1999-09-22 Thread Bill Simpson

 The math text mode does not accept punctuation I guess.
Well someone on comp.text.tex told me that you can do it in LaTeX. I think
you are right and he is wrong.

I just tried editing the LyX file directly. It has

\begin_inset Formula
\[
\Pr(\mbox{``bigger''})=1-F[(c-s)/\sigma ]=F[(s-c)/\sigma ]\]

\end_inset

And it is still the same problem. The `` don't get printed.
Hmm. The LaTeX masters out there don't have a trick for me?
The only thing that occurs to me is to use a pair of \prime for for single
quotes.

Bill



Re: quotes in mathmode?

1999-09-22 Thread Bill Simpson

Hi J-P,

I guess I didn't understand what you wrote.
I thought you said that it was not possible to do Pr(``bigger'') in
mathmode in LaTeX. But I checked and it is possible:

--
\documentclass{article}

\begin{document}
$\Pr(\mbox{``bigger''})=0.5$
\end{document}

-
This works no problem at all. (I actually want it as a numbered displayed
equation)

So I don't understand why I can't do this in LyX.

Thanks for any help!

Bill



Re: quotes in mathmode?

1999-09-22 Thread Lars Gullik Bjønnes

Bill Simpson [EMAIL PROTECTED] writes:

| So I don't understand why I can't do this in LyX.

Mathed uses is not using the same keyhandling/insertion
functions/modules as the rest of LyX.

Some time in the future this will change.

Lgb



quotes in mathmode?

1999-09-22 Thread Bill Simpson

I want to do, in mathmode,
Pr(``bigger'')
I tried
\Pr(\mbox{"bigger"}) using double quotes.
The quotes are absent when I veiw with dvi.

I tried
\Pr(\mbox{``bigger''})
but I can't get Lyx to "accept" the single left-hand `` quotes.
When I type them they don't show up at all. (Also absent from dvi
view--the right hand ones '' show up fine)

Please tell me what to do. Thanks!

I am using Lyx 1.0.0pre2

Bill



Re: quotes in mathmode?

1999-09-22 Thread Bill Simpson

 
 AFAIU, mathed (the equation editor) does not re-enter in paragraph or LR mode
 as TeX /LaTeX does, so that the keystrokes after \mbox are still in math
 with the corresponding restrictions.
I don't really understand this.
However using \mbox{text} seems to work--looks like normal text, not
italic. The problem is just the quotes

 Have you tried the math text mode (M-m m) instead of \mbox ?
Same problem.
Can't type `` or ".

So is this a bug in LyX?

Bill



Re: quotes in mathmode?

1999-09-22 Thread Jean-Pierre.Chretien


Date: Wed, 22 Sep 1999 10:21:47 + (GMT)
From: Bill Simpson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: quotes in mathmode?

 
 AFAIU, mathed (the equation editor) does not re-enter in paragraph or LR mode
 as TeX /LaTeX does, so that the keystrokes after \mbox are still in math
 with the corresponding restrictions.
I don't really understand this.
However using \mbox{text} seems to work--looks like normal text, not
italic. The problem is just the quotes

No, the problem is that you may invoke in LaTeX any legal construct allowed in a mbox,
including re-entering math mode (that is quite useful if you write math \newcommands as
\newcommand{\myadot}{\mbox{$\dot{a}$}} to be able to use \myadot in math mode AND in 
text mode).
With mathed, you don't need this anymore (have a look at the math macro mechanism)
because you can't re-enter in real text mode once you are in math mode.


 Have you tried the math text mode (M-m m) instead of \mbox ?
Same problem.
Can't type `` or ".


The math text mode does not accept punctuation I guess.


So is this a bug in LyX?

That's a feature of mathed :-). There are counterparts: as I mentioned above
the math macro mechanism is very powerful.

-- 
Jean-Pierre



Re: quotes in mathmode?

1999-09-22 Thread Bill Simpson

 The math text mode does not accept punctuation I guess.
Well someone on comp.text.tex told me that you can do it in LaTeX. I think
you are right and he is wrong.

I just tried editing the LyX file directly. It has

\begin_inset Formula
\[
\Pr(\mbox{``bigger''})=1-F[(c-s)/\sigma ]=F[(s-c)/\sigma ]\]

\end_inset

And it is still the same problem. The `` don't get printed.
Hmm. The LaTeX masters out there don't have a trick for me?
The only thing that occurs to me is to use a pair of \prime for for single
quotes.

Bill



Re: quotes in mathmode?

1999-09-22 Thread Bill Simpson

Hi J-P,

I guess I didn't understand what you wrote.
I thought you said that it was not possible to do Pr(``bigger'') in
mathmode in LaTeX. But I checked and it is possible:

--
\documentclass{article}

\begin{document}
$\Pr(\mbox{``bigger''})=0.5$
\end{document}

-
This works no problem at all. (I actually want it as a numbered displayed
equation)

So I don't understand why I can't do this in LyX.

Thanks for any help!

Bill



Re: quotes in mathmode?

1999-09-22 Thread Lars Gullik Bjønnes

Bill Simpson [EMAIL PROTECTED] writes:

| So I don't understand why I can't do this in LyX.

Mathed uses is not using the same keyhandling/insertion
functions/modules as the rest of LyX.

Some time in the future this will change.

Lgb



quotes in mathmode?

1999-09-22 Thread Bill Simpson

I want to do, in mathmode,
Pr(``bigger'')
I tried
\Pr(\mbox{"bigger"}) using double quotes.
The quotes are absent when I veiw with dvi.

I tried
\Pr(\mbox{``bigger''})
but I can't get Lyx to "accept" the single left-hand `` quotes.
When I type them they don't show up at all. (Also absent from dvi
view--the right hand ones '' show up fine)

Please tell me what to do. Thanks!

I am using Lyx 1.0.0pre2

Bill



Re: quotes in mathmode?

1999-09-22 Thread Bill Simpson

> 
> AFAIU, mathed (the equation editor) does not re-enter in paragraph or LR mode
> as TeX /LaTeX does, so that the keystrokes after \mbox are still in math
> with the corresponding restrictions.
I don't really understand this.
However using \mbox{text} seems to work--looks like normal text, not
italic. The problem is just the quotes

> Have you tried the math text mode (M-m m) instead of \mbox ?
Same problem.
Can't type `` or ".

So is this a bug in LyX?

Bill



Re: quotes in mathmode?

1999-09-22 Thread Jean-Pierre.Chretien


>>Date: Wed, 22 Sep 1999 10:21:47 + (GMT)
>>From: Bill Simpson <[EMAIL PROTECTED]>
>>To: [EMAIL PROTECTED]
>>Subject: Re: quotes in mathmode?
>>
>>> 
>>> AFAIU, mathed (the equation editor) does not re-enter in paragraph or LR mode
>>> as TeX /LaTeX does, so that the keystrokes after \mbox are still in math
>>> with the corresponding restrictions.
>>I don't really understand this.
>>However using \mbox{text} seems to work--looks like normal text, not
>>italic. The problem is just the quotes

No, the problem is that you may invoke in LaTeX any legal construct allowed in a mbox,
including re-entering math mode (that is quite useful if you write math \newcommands as
\newcommand{\myadot}{\mbox{$\dot{a}$}} to be able to use \myadot in math mode AND in 
text mode).
With mathed, you don't need this anymore (have a look at the math macro mechanism)
because you can't re-enter in real text mode once you are in math mode.

>>
>>> Have you tried the math text mode (M-m m) instead of \mbox ?
>>Same problem.
>>Can't type `` or ".


The math text mode does not accept punctuation I guess.

>>
>>So is this a bug in LyX?

That's a feature of mathed :-). There are counterparts: as I mentioned above
the math macro mechanism is very powerful.

-- 
Jean-Pierre



Re: quotes in mathmode?

1999-09-22 Thread Bill Simpson

> The math text mode does not accept punctuation I guess.
Well someone on comp.text.tex told me that you can do it in LaTeX. I think
you are right and he is wrong.

I just tried editing the LyX file directly. It has

\begin_inset Formula
\[
\Pr(\mbox{``bigger''})=1-F[(c-s)/\sigma ]=F[(s-c)/\sigma ]\]

\end_inset

And it is still the same problem. The `` don't get printed.
Hmm. The LaTeX masters out there don't have a trick for me?
The only thing that occurs to me is to use a pair of \prime for for single
quotes.

Bill



Re: quotes in mathmode?

1999-09-22 Thread Bill Simpson

Hi J-P,

I guess I didn't understand what you wrote.
I thought you said that it was not possible to do Pr(``bigger'') in
mathmode in LaTeX. But I checked and it is possible:

--
\documentclass{article}

\begin{document}
$\Pr(\mbox{``bigger''})=0.5$
\end{document}

-
This works no problem at all. (I actually want it as a numbered displayed
equation)

So I don't understand why I can't do this in LyX.

Thanks for any help!

Bill



Re: quotes in mathmode?

1999-09-22 Thread Lars Gullik Bjønnes

Bill Simpson <[EMAIL PROTECTED]> writes:

| So I don't understand why I can't do this in LyX.

Mathed uses is not using the same keyhandling/insertion
functions/modules as the rest of LyX.

Some time in the future this will change.

Lgb