Re: problem with latex commands

2002-03-18 Thread Andre Poenitz

On Sat, Mar 16, 2002 at 11:09:56AM +0100, Davide Cavallari wrote:
 The fact is that I want to use the command:
 
 \begin{equation*}
 |x|= 
 \begin{cases} x  \text{if $x0$,}
 -x \text{if $x\le 0$.}
 \end{cases}
 \end{equation*}
 
 What I have to do to make it work in lyx?

\text{} does not work even in 1.2, so the closest thing you might get is

\begin{equation*}
|x|= 
\begin{cases} x  \mathrm{if} x0 \mathrm{,}
-x \mathrm{if} x\le 0.}
\end{cases}
\end{equation*}

You can type this in the main LyX text, highlight it and press C-m to
convert it to math.

Andre'

-- 
André Pönitz .. [EMAIL PROTECTED]



Re: problem with latex commands

2002-03-18 Thread Andre Poenitz

On Sat, Mar 16, 2002 at 11:09:56AM +0100, Davide Cavallari wrote:
 The fact is that I want to use the command:
 
 \begin{equation*}
 |x|= 
 \begin{cases} x  \text{if $x0$,}
 -x \text{if $x\le 0$.}
 \end{cases}
 \end{equation*}
 
 What I have to do to make it work in lyx?

\text{} does not work even in 1.2, so the closest thing you might get is

\begin{equation*}
|x|= 
\begin{cases} x  \mathrm{if} x0 \mathrm{,}
-x \mathrm{if} x\le 0.}
\end{cases}
\end{equation*}

You can type this in the main LyX text, highlight it and press C-m to
convert it to math.

Andre'

-- 
André Pönitz .. [EMAIL PROTECTED]



Re: problem with latex commands

2002-03-18 Thread Andre Poenitz

On Sat, Mar 16, 2002 at 11:09:56AM +0100, Davide Cavallari wrote:
> The fact is that I want to use the command:
> 
> \begin{equation*}
> |x|= 
> \begin{cases} x & \text{if $x>0$,}
> -x &\text{if $x\le 0$.}
> \end{cases}
> \end{equation*}
> 
> What I have to do to make it work in lyx?

\text{} does not work even in 1.2, so the closest thing you might get is

\begin{equation*}
|x|= 
\begin{cases} x & \mathrm{if} x>0 \mathrm{,}
-x &\mathrm{if} x\le 0.}
\end{cases}
\end{equation*}

You can type this in the main LyX text, highlight it and press C-m to
convert it to math.

Andre'

-- 
André Pönitz .. [EMAIL PROTECTED]



Re: problem with latex commands

2002-03-16 Thread Renaud MICHEL

Le Samedi 16 Mars 2002 11:09, vous avez écrit :
 If I write:

 \begin{equation}
 x+1
 \end{equation}

 and select these 3 lines and select TeX Style, I get the error:

 Display math should end with $$

 It works only if I write it in one line:

 \begin{equation}x+1\end{equation}

 Is there a way to write it on multiple lines?

If you want to write LaTeX commands on multiples lines you must use 
ctrl-return, if you just use return LyX will start a new paragraph, that's 
why you have this problem.

-- 
Renaud Michel

Se puede morir por nada, pero ne se puede morir por nadie.
MR



Re: problem with latex commands

2002-03-16 Thread Renaud MICHEL

Le Samedi 16 Mars 2002 11:09, vous avez écrit :
 If I write:

 \begin{equation}
 x+1
 \end{equation}

 and select these 3 lines and select TeX Style, I get the error:

 Display math should end with $$

 It works only if I write it in one line:

 \begin{equation}x+1\end{equation}

 Is there a way to write it on multiple lines?

If you want to write LaTeX commands on multiples lines you must use 
ctrl-return, if you just use return LyX will start a new paragraph, that's 
why you have this problem.

-- 
Renaud Michel

Se puede morir por nada, pero ne se puede morir por nadie.
MR



Re: problem with latex commands

2002-03-16 Thread Renaud MICHEL

Le Samedi 16 Mars 2002 11:09, vous avez écrit :
> If I write:
>
> \begin{equation}
> x+1
> \end{equation}
>
> and select these 3 lines and select TeX Style, I get the error:
>
> Display math should end with $$
>
> It works only if I write it in one line:
>
> \begin{equation}x+1\end{equation}
>
> Is there a way to write it on multiple lines?

If you want to write LaTeX commands on multiples lines you must use 
ctrl-return, if you just use return LyX will start a new paragraph, that's 
why you have this problem.

-- 
Renaud Michel

Se puede morir por nada, pero ne se puede morir por nadie.
MR