Brian Williams wrote:
Hi folks,

looks like this isn't such a newbie question after all.

Maybe I should ask it more carefully.

I want to use LyX to produce systems of equations that look like this (output 
exported from LyX):

$\left\{ \begin{array}{rrrrr}
(3-\lambda)C & + & 2D & = & 0\\
C & + & (4-\lambda)D & = & 0\end{array}\right.$

but with each line numbered, like eqnarray

Reasons are that I want the operators to line up correctly, and it will match 
the course textbooks that I am using with an Open University Maths course that 
I'm doing (they were published using TeX).

I've tried all kinds of combinations of brackets and environments with no luck.

By the way, the user guide says this in section 5.2: "If you decide after the fact 
to place parentheses (or other math structure, like a square root, or other decoration) 
around some math structure, you can do that by highlighting (selecting) the structure 
that is to go inside the parentheses...Then, choose the appropriate brackets for left and 
right, and click on Apply. The parentheses will be drawn around the selected 
structure."

This does not appear to be true for equation environments or arrays for that 
matter.

Has this been done in LyX yet?

this is not easy in LaTeX, too. And in LyX a bit crazy in fact of the math editor and its restrictions

Herbert

#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass article
\language frenchb
\inputencoding latin1
\fontscheme default
\graphics default
\paperfontsize 12
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 1
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\paperwidth 17cm
\paperheight 22cm
\leftmargin 1.2cm
\topmargin 1.4cm
\rightmargin 1.7cm
\bottommargin 1.4cm
\headsep 1cm
\secnumdepth 4
\tocdepth 4
\paragraph_separation indent
\defskip medskip
\quotes_language german
\quotes_times 2
\papercolumns 1
\papersides 2
\paperpagestyle default
\bullet 1
        2
        3
        -1
\end_bullet

\layout Standard


\begin_inset Formula \[
\left\{ \begin{array}{rrrrr}
(3-\lambda)C & + & 2D & = & 0\qquad\refstepcounter{equation}(\theequation)\\
C & + & (4-\lambda)D & = & 
0\qquad\refstepcounter{equation}(\theequation)\end{array}\right.\]

\end_inset 


\layout Standard

next try
\layout Standard


\begin_inset Formula \[
\left\{ \begin{array}{rrrrr}
(3-\lambda)C & + & 2D & = & 
0\rlap{\hspace{3cm}\refstepcounter{equation}(\theequation)}\\
C & + & (4-\lambda)D & = & 
0\rlap{\hspace{3cm}\refstepcounter{equation}(\theequation)}\end{array}\right.\]

\end_inset 


\layout Standard

and the same with amsmath and cases
\layout Standard


\begin_inset Formula \[
\begin{cases}
(3-\lambda)C            + 2D           & = 
0\rlap{\hspace{3cm}\refstepcounter{equation}(\theequation)}\\
\hphantom{(3-\lambda)}C + (4-\lambda)D & = 
0\rlap{\hspace{3cm}\refstepcounter{equation}(\theequation)}\end{cases}\]

\end_inset 


\the_end

Reply via email to