Math & ScienceUsing eqnarray in a box

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
rsousa
Posts: 1
Joined: Tue Jul 14, 2009 10:43 am

Using eqnarray in a box

Post by rsousa »

Hello

I am new to work on laxex but I like a lot.

However I am as new questions arise some basic and this seems to me one of those.

I am trying to put this statement in an equation together with the box. the problem is that the left along with the rest and not wanted.


And I can not put the box.

Code: Select all

\begin{center}
 \framebox{

    MIS($i_{j}$)=$S(i_{j} -SD)$ where $S(i_{j} -SD)>LS$
 }
 \end{center}
to number the equations

Code: Select all

 \begin{eqnarray}
    MIS(i_{j}) &=& S(i_{j} -SD) where  S(i_{j} -SD)>LS
 \end{eqnarray}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Using eqnarray in a box

Post by localghost »

At first, search the forum for "eqnarray" and learn why not to use this environment any more. Take a look at the empheq package from the mh bundle to emphasize equations and systems of equations the way you like.


Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Post Reply