Re: Case equations

2005-04-24 Thread Herbert Voss
Myriam Abramson wrote:
Could somebody please send me a .lyx example of a multi-line case
equation? 
I get it fine within LyX but it does not seem to print okay. I get a
misplaced tab character error when I enter text with \textrm in the
case equation. 
Enable Layout-Document-Packages-use amsmath
Herbert


Re: Case equations

2005-04-24 Thread Myriam Abramson

wheew... thank you. Terrific list!

 Could somebody please send me a .lyx example of a multi-line case
 equation? I get it fine within LyX but it does not seem to print
 okay. I get a
 misplaced tab character error when I enter text with \textrm in the
 case equation.

 Enable Layout-Document-Packages-use amsmath

 Herbert

-- 
   myriam


Re: Case equations

2005-04-24 Thread Herbert Voss
Myriam Abramson wrote:
Could somebody please send me a .lyx example of a multi-line case
equation? 
I get it fine within LyX but it does not seem to print okay. I get a
misplaced tab character error when I enter text with \textrm in the
case equation. 
Enable Layout-Document-Packages-use amsmath
Herbert


Re: Case equations

2005-04-24 Thread Myriam Abramson

wheew... thank you. Terrific list!

 Could somebody please send me a .lyx example of a multi-line case
 equation? I get it fine within LyX but it does not seem to print
 okay. I get a
 misplaced tab character error when I enter text with \textrm in the
 case equation.

 Enable Layout-Document-Packages-use amsmath

 Herbert

-- 
   myriam


Re: Case equations

2005-04-24 Thread Herbert Voss
Myriam Abramson wrote:
Could somebody please send me a .lyx example of a multi-line case
equation? 
I get it fine within LyX but it does not seem to print okay. I get a
"misplaced tab" character error when I enter text with \textrm in the
case equation. 
Enable Layout->Document->Packages->use amsmath
Herbert


Re: Case equations

2005-04-24 Thread Myriam Abramson

wheew... thank you. Terrific list!

>> Could somebody please send me a .lyx example of a multi-line case
>> equation? I get it fine within LyX but it does not seem to print
>> okay. I get a
>> "misplaced tab" character error when I enter text with \textrm in the
>> case equation.
>
> Enable Layout->Document->Packages->use amsmath
>
> Herbert

-- 
   myriam


Re: Case equations

2005-04-23 Thread Myriam Abramson

Could somebody please send me a .lyx example of a multi-line case
equation? 
I get it fine within LyX but it does not seem to print okay. I get a
misplaced tab character error when I enter text with \textrm in the
case equation. 

-- 
   myriam



Re: Case equations

2005-04-23 Thread Myriam Abramson

Could somebody please send me a .lyx example of a multi-line case
equation? 
I get it fine within LyX but it does not seem to print okay. I get a
misplaced tab character error when I enter text with \textrm in the
case equation. 

-- 
   myriam



Re: Case equations

2005-04-23 Thread Myriam Abramson

Could somebody please send me a .lyx example of a multi-line case
equation? 
I get it fine within LyX but it does not seem to print okay. I get a
"misplaced tab" character error when I enter text with \textrm in the
case equation. 

-- 
   myriam



Re: Case equations

2005-04-20 Thread Hannan Sadar
Hi Myriam,

You could also write in math-mode \cases and a space. With the use of
Control + Enter you could control the number of lines in the case.

Hope its helps.

Hannan

On 4/20/05, Myriam Abramson [EMAIL PROTECTED] wrote:
 
 Hi!
 
 How do you write a case equation in LyX? I mean an equation like
 
 B = { 1 if x  0;
   0 if x = 0
 
 so that the brace covers multiple lines?
 
 I looked everywhere and read the Users' guide but it did not cover
 that.
 
 TIA
 --
myriam
 



Re: Case equations

2005-04-20 Thread Angus Leeming
Kayvan A. Sylvan wrote:

 On Tue, Apr 19, 2005 at 08:37:14PM -0400, Myriam Abramson wrote:
 
 Hi!
 
 How do you write a case equation in LyX? I mean an equation like
 
 B = { 1 if x  0;
   0 if x = 0
 
 so that the brace covers multiple lines?
 
 I think that you can use the math panel and then click on the button that
 looks like a blue box surrounded by brackets. Then you can change the
 left bracket to your braces and change the right one to blank.
 
 In the inner blue square, insert a math matrix and fill in the parts.

Actually, it's even easier:

Create a math inset: Insert-Math-Display formula
Type:
B=\casesspace1right arrow\textrmspaceif Insert-Math-Inline 
formulax0right arrowright arrowcntl-enterdown arrowleft 
arrow0right arrow\textrmspaceif Insert-Math-Inline formulax=0Esc

Looks horrible, but really it isn't!

-- 
Angus



Re: Case equations

2005-04-20 Thread Kayvan A. Sylvan
Cool! Thanks. I did not ask the question, but I am sure I will have occasion
to use stuff like this... Is there any documentation that goes over all the
mysterious math stuff (like \cases)?

---Kayvan

On Wed, Apr 20, 2005 at 09:49:13AM +0100, Angus Leeming wrote:
 Kayvan A. Sylvan wrote:
 
  On Tue, Apr 19, 2005 at 08:37:14PM -0400, Myriam Abramson wrote:
  
  Hi!
  
  How do you write a case equation in LyX? I mean an equation like
  
  B = { 1 if x  0;
0 if x = 0
  
  so that the brace covers multiple lines?
  
  I think that you can use the math panel and then click on the button that
  looks like a blue box surrounded by brackets. Then you can change the
  left bracket to your braces and change the right one to blank.
  
  In the inner blue square, insert a math matrix and fill in the parts.
 
 Actually, it's even easier:
 
 Create a math inset: Insert-Math-Display formula
 Type:
 B=\casesspace1right arrow\textrmspaceif Insert-Math-Inline 
 formulax0right arrowright arrowcntl-enterdown arrowleft 
 arrow0right arrow\textrmspaceif Insert-Math-Inline formulax=0Esc
 
 Looks horrible, but really it isn't!
 
 -- 
 Angus

-- 
Kayvan A. Sylvan  | Proud husband of   | Father to my kids:
Sylvan Associates, Inc.   | Laura Isabella Sylvan  | Katherine Yelena (8/8/89)
http://sylvan.com/~kayvan | crown of her husband | Robin Gregory (2/28/92)


Re: Case equations

2005-04-20 Thread Herbert Voss
Angus Leeming wrote:
Create a math inset: Insert-Math-Display formula
Type:
B=\casesspace1right arrow\textrmspaceif Insert-Math-Inline 
only the if should be text, then you do not need
this math inside text inside math ...
Herbert
--
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes


Re: Case equations

2005-04-20 Thread Angus Leeming
Kayvan A. Sylvan wrote:

 Cool! Thanks. I did not ask the question, but I am sure I will have
 occasion to use stuff like this... Is there any documentation that goes
 over all the mysterious math stuff (like \cases)?

I believe that André's goal was to support the whole of AMSLaTeX. He didn't
quite succeed, but he was getting quite close.

Something that isn't supported?

\sum \begin{Sb}
x \leq 0 \\
y \leq x
\end{Sb}

André was playing with environment insets at one stage, but other things
intruded. Babies. Life.

-- 
Angus



Re: Case equations

2005-04-20 Thread Paul A. Rubin
Angus Leeming wrote:
Kayvan A. Sylvan wrote:

On Tue, Apr 19, 2005 at 08:37:14PM -0400, Myriam Abramson wrote:
Hi!
How do you write a case equation in LyX? I mean an equation like
B = { 1 if x  0;
 0 if x = 0
so that the brace covers multiple lines?
I think that you can use the math panel and then click on the button that
looks like a blue box surrounded by brackets. Then you can change the
left bracket to your braces and change the right one to blank.
In the inner blue square, insert a math matrix and fill in the parts.

Actually, it's even easier:
Create a math inset: Insert-Math-Display formula
Type:
B=\casesspace1right arrow\textrmspaceif Insert-Math-Inline 
formulax0right arrowright arrowcntl-enterdown arrowleft 
arrow0right arrow\textrmspaceif Insert-Math-Inline formulax=0Esc

Looks horrible, but really it isn't!
Easier still: in a display environment, try Insert-Math-Cases 
environment, and use control-enter to add cases as needed. You still 
need to switch to textrm font for the ifs (alt-m m or type ).

-- Paul


Re: Case equations

2005-04-20 Thread Hannan Sadar
Hi Myriam,

You could also write in math-mode \cases and a space. With the use of
Control + Enter you could control the number of lines in the case.

Hope its helps.

Hannan

On 4/20/05, Myriam Abramson [EMAIL PROTECTED] wrote:
 
 Hi!
 
 How do you write a case equation in LyX? I mean an equation like
 
 B = { 1 if x  0;
   0 if x = 0
 
 so that the brace covers multiple lines?
 
 I looked everywhere and read the Users' guide but it did not cover
 that.
 
 TIA
 --
myriam
 



Re: Case equations

2005-04-20 Thread Angus Leeming
Kayvan A. Sylvan wrote:

 On Tue, Apr 19, 2005 at 08:37:14PM -0400, Myriam Abramson wrote:
 
 Hi!
 
 How do you write a case equation in LyX? I mean an equation like
 
 B = { 1 if x  0;
   0 if x = 0
 
 so that the brace covers multiple lines?
 
 I think that you can use the math panel and then click on the button that
 looks like a blue box surrounded by brackets. Then you can change the
 left bracket to your braces and change the right one to blank.
 
 In the inner blue square, insert a math matrix and fill in the parts.

Actually, it's even easier:

Create a math inset: Insert-Math-Display formula
Type:
B=\casesspace1right arrow\textrmspaceif Insert-Math-Inline 
formulax0right arrowright arrowcntl-enterdown arrowleft 
arrow0right arrow\textrmspaceif Insert-Math-Inline formulax=0Esc

Looks horrible, but really it isn't!

-- 
Angus



Re: Case equations

2005-04-20 Thread Kayvan A. Sylvan
Cool! Thanks. I did not ask the question, but I am sure I will have occasion
to use stuff like this... Is there any documentation that goes over all the
mysterious math stuff (like \cases)?

---Kayvan

On Wed, Apr 20, 2005 at 09:49:13AM +0100, Angus Leeming wrote:
 Kayvan A. Sylvan wrote:
 
  On Tue, Apr 19, 2005 at 08:37:14PM -0400, Myriam Abramson wrote:
  
  Hi!
  
  How do you write a case equation in LyX? I mean an equation like
  
  B = { 1 if x  0;
0 if x = 0
  
  so that the brace covers multiple lines?
  
  I think that you can use the math panel and then click on the button that
  looks like a blue box surrounded by brackets. Then you can change the
  left bracket to your braces and change the right one to blank.
  
  In the inner blue square, insert a math matrix and fill in the parts.
 
 Actually, it's even easier:
 
 Create a math inset: Insert-Math-Display formula
 Type:
 B=\casesspace1right arrow\textrmspaceif Insert-Math-Inline 
 formulax0right arrowright arrowcntl-enterdown arrowleft 
 arrow0right arrow\textrmspaceif Insert-Math-Inline formulax=0Esc
 
 Looks horrible, but really it isn't!
 
 -- 
 Angus

-- 
Kayvan A. Sylvan  | Proud husband of   | Father to my kids:
Sylvan Associates, Inc.   | Laura Isabella Sylvan  | Katherine Yelena (8/8/89)
http://sylvan.com/~kayvan | crown of her husband | Robin Gregory (2/28/92)


Re: Case equations

2005-04-20 Thread Herbert Voss
Angus Leeming wrote:
Create a math inset: Insert-Math-Display formula
Type:
B=\casesspace1right arrow\textrmspaceif Insert-Math-Inline 
only the if should be text, then you do not need
this math inside text inside math ...
Herbert
--
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes


Re: Case equations

2005-04-20 Thread Angus Leeming
Kayvan A. Sylvan wrote:

 Cool! Thanks. I did not ask the question, but I am sure I will have
 occasion to use stuff like this... Is there any documentation that goes
 over all the mysterious math stuff (like \cases)?

I believe that André's goal was to support the whole of AMSLaTeX. He didn't
quite succeed, but he was getting quite close.

Something that isn't supported?

\sum \begin{Sb}
x \leq 0 \\
y \leq x
\end{Sb}

André was playing with environment insets at one stage, but other things
intruded. Babies. Life.

-- 
Angus



Re: Case equations

2005-04-20 Thread Paul A. Rubin
Angus Leeming wrote:
Kayvan A. Sylvan wrote:

On Tue, Apr 19, 2005 at 08:37:14PM -0400, Myriam Abramson wrote:
Hi!
How do you write a case equation in LyX? I mean an equation like
B = { 1 if x  0;
 0 if x = 0
so that the brace covers multiple lines?
I think that you can use the math panel and then click on the button that
looks like a blue box surrounded by brackets. Then you can change the
left bracket to your braces and change the right one to blank.
In the inner blue square, insert a math matrix and fill in the parts.

Actually, it's even easier:
Create a math inset: Insert-Math-Display formula
Type:
B=\casesspace1right arrow\textrmspaceif Insert-Math-Inline 
formulax0right arrowright arrowcntl-enterdown arrowleft 
arrow0right arrow\textrmspaceif Insert-Math-Inline formulax=0Esc

Looks horrible, but really it isn't!
Easier still: in a display environment, try Insert-Math-Cases 
environment, and use control-enter to add cases as needed. You still 
need to switch to textrm font for the ifs (alt-m m or type ).

-- Paul


Re: Case equations

2005-04-20 Thread Hannan Sadar
Hi Myriam,

You could also write in math-mode \cases and a space. With the use of
Control + Enter you could control the number of lines in the case.

Hope its helps.

Hannan

On 4/20/05, Myriam Abramson <[EMAIL PROTECTED]> wrote:
> 
> Hi!
> 
> How do you write a case equation in LyX? I mean an equation like
> 
> B = { 1 if x > 0;
>   0 if x = 0
> 
> so that the brace covers multiple lines?
> 
> I looked everywhere and read the Users' guide but it did not cover
> that.
> 
> TIA
> --
>myriam
> 
>


Re: Case equations

2005-04-20 Thread Angus Leeming
Kayvan A. Sylvan wrote:

> On Tue, Apr 19, 2005 at 08:37:14PM -0400, Myriam Abramson wrote:
>> 
>> Hi!
>> 
>> How do you write a case equation in LyX? I mean an equation like
>> 
>> B = { 1 if x > 0;
>>   0 if x = 0
>> 
>> so that the brace covers multiple lines?
> 
> I think that you can use the math panel and then click on the button that
> looks like a blue box surrounded by brackets. Then you can change the
> left bracket to your braces and change the right one to blank.
> 
> In the inner blue square, insert a math matrix and fill in the parts.

Actually, it's even easier:

Create a math inset: Insert->Math->Display formula
Type:
B=\cases1\textrmif Math->Inline 
formula>x>00\textrmif Math->Inline formula>x=0

Looks horrible, but really it isn't!

-- 
Angus



Re: Case equations

2005-04-20 Thread Kayvan A. Sylvan
Cool! Thanks. I did not ask the question, but I am sure I will have occasion
to use stuff like this... Is there any documentation that goes over all the
mysterious math stuff (like "\cases")?

---Kayvan

On Wed, Apr 20, 2005 at 09:49:13AM +0100, Angus Leeming wrote:
> Kayvan A. Sylvan wrote:
> 
> > On Tue, Apr 19, 2005 at 08:37:14PM -0400, Myriam Abramson wrote:
> >> 
> >> Hi!
> >> 
> >> How do you write a case equation in LyX? I mean an equation like
> >> 
> >> B = { 1 if x > 0;
> >>   0 if x = 0
> >> 
> >> so that the brace covers multiple lines?
> > 
> > I think that you can use the math panel and then click on the button that
> > looks like a blue box surrounded by brackets. Then you can change the
> > left bracket to your braces and change the right one to blank.
> > 
> > In the inner blue square, insert a math matrix and fill in the parts.
> 
> Actually, it's even easier:
> 
> Create a math inset: Insert->Math->Display formula
> Type:
> B=\cases1\textrmif Math->Inline 
> formula>x>0 arrow>0\textrmif Math->Inline formula>x=0
> 
> Looks horrible, but really it isn't!
> 
> -- 
> Angus

-- 
Kayvan A. Sylvan  | Proud husband of   | Father to my kids:
Sylvan Associates, Inc.   | Laura Isabella Sylvan  | Katherine Yelena (8/8/89)
http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92)


Re: Case equations

2005-04-20 Thread Herbert Voss
Angus Leeming wrote:
Create a math inset: Insert->Math->Display formula
Type:
B=\cases1\textrmif Math->Inline 
only the "if" should be text, then you do not need
this "math inside text inside math" ...
Herbert
--
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes


Re: Case equations

2005-04-20 Thread Angus Leeming
Kayvan A. Sylvan wrote:

> Cool! Thanks. I did not ask the question, but I am sure I will have
> occasion to use stuff like this... Is there any documentation that goes
> over all the mysterious math stuff (like "\cases")?

I believe that André's goal was to support the whole of AMSLaTeX. He didn't
quite succeed, but he was getting quite close.

Something that isn't supported?

\sum \begin{Sb}
x \leq 0 \\
y \leq x
\end{Sb}

André was playing with environment insets at one stage, but other things
intruded. Babies. Life.

-- 
Angus



Re: Case equations

2005-04-20 Thread Paul A. Rubin
Angus Leeming wrote:
Kayvan A. Sylvan wrote:

On Tue, Apr 19, 2005 at 08:37:14PM -0400, Myriam Abramson wrote:
Hi!
How do you write a case equation in LyX? I mean an equation like
B = { 1 if x > 0;
 0 if x = 0
so that the brace covers multiple lines?
I think that you can use the math panel and then click on the button that
looks like a blue box surrounded by brackets. Then you can change the
left bracket to your braces and change the right one to blank.
In the inner blue square, insert a math matrix and fill in the parts.

Actually, it's even easier:
Create a math inset: Insert->Math->Display formula
Type:
B=\cases1\textrmif Math->Inline 
formula>x>00\textrmif Math->Inline formula>x=0

Looks horrible, but really it isn't!
Easier still: in a display environment, try Insert->Math->Cases 
environment, and use control-enter to add cases as needed. You still 
need to switch to textrm font for the "if"s (alt-m m or type ).

-- Paul


Re: Case equations

2005-04-19 Thread Kayvan A. Sylvan
On Tue, Apr 19, 2005 at 08:37:14PM -0400, Myriam Abramson wrote:
 
 Hi!
 
 How do you write a case equation in LyX? I mean an equation like
 
 B = { 1 if x  0;
   0 if x = 0
 
 so that the brace covers multiple lines? 

I think that you can use the math panel and then click on the button that
looks like a blue box surrounded by brackets. Then you can change the left
bracket to your braces and change the right one to blank.

In the inner blue square, insert a math matrix and fill in the parts.

---Kayvan


Re: Case equations

2005-04-19 Thread Kayvan A. Sylvan
On Tue, Apr 19, 2005 at 08:37:14PM -0400, Myriam Abramson wrote:
 
 Hi!
 
 How do you write a case equation in LyX? I mean an equation like
 
 B = { 1 if x  0;
   0 if x = 0
 
 so that the brace covers multiple lines? 

I think that you can use the math panel and then click on the button that
looks like a blue box surrounded by brackets. Then you can change the left
bracket to your braces and change the right one to blank.

In the inner blue square, insert a math matrix and fill in the parts.

---Kayvan


Re: Case equations

2005-04-19 Thread Kayvan A. Sylvan
On Tue, Apr 19, 2005 at 08:37:14PM -0400, Myriam Abramson wrote:
> 
> Hi!
> 
> How do you write a case equation in LyX? I mean an equation like
> 
> B = { 1 if x > 0;
>   0 if x = 0
> 
> so that the brace covers multiple lines? 

I think that you can use the math panel and then click on the button that
looks like a blue box surrounded by brackets. Then you can change the left
bracket to your braces and change the right one to blank.

In the inner blue square, insert a math matrix and fill in the parts.

---Kayvan