On Tue, Jun 17, 2003 at 10:38:07AM -0700, Chris Carlen wrote:
> I have tried going into math mode, then entering the following:
> 
> \[
> f: \left(
> \begin{split}
>     y = &&\\
>     & f(x) +\\
>     && +g(x)
> \end{split}
> \right)
> \]
> \end{document}
> 
> which actually shows what I want in LyX, but then gives LaTeX errors.

Like what?

Something indicating that you have not switched on AMS support?
[Layout->Document->Extra->Use_AMS]
 
> It seems I will have little choice but to learn LaTeX math editing in 
> depth, which I had hope to avoid by using LyX.
> 
> Can someone give me a step-by-step instruction on how to enter an 
> equation in LyX using LaTex code that doesn't give errors? 

You can type the formula as you did, mark it and press C-m.

> From there I will go about learning LaTeX to get the effects I want.
> But at this point there is something I don't understand about getting LyX
> to digest it in the first place.

I thought you said "it actually shows what you want"?

> In other words, do you go into math mode, or type in ERT mode?

Math mode for ordinary math.
 
> In math mode, the above code turns into LyX WYSIWYM math editing.  This
> is a problem because it is then impossible to see the text LateX code
> underneath.

What does Export as LaTeX yield?

> Clues as to what is going on would be appreciated.
> 
> Finally, can \usepackage{amsmath} be used in LyX?

Sure.

Andre'

-- 
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one.     (T. Jefferson or B. Franklin or both...)

Reply via email to