Math & ScienceEqnArray and formula markers in Lyx

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
chochmah
Posts: 3
Joined: Mon Sep 21, 2015 1:33 pm

EqnArray and formula markers in Lyx

Post by chochmah »

I'm trying to use a formula marker to mark a EqnArray in Lyx. Not a single line in the array but the whole thing. Is there a way to do that? I tried to google the problem but that did not yield any results.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

EqnArray and formula markers in Lyx

Post by Stefan Kottwitz »

Welcome to the forum!

I suggest to use align instead of eqnarray. That's mainly because eqnarray has a different spacing around relation signs than normal equations. So it's looking bad compared to other math formulas. align does the same much better. Have a look here, there are also sample images of formula output: eqnarray vs. align.

Stefan
LaTeX.org admin
rais
Posts: 419
Joined: Sun Nov 16, 2014 8:51 pm

EqnArray and formula markers in Lyx

Post by rais »

I think the OP is looking for an {aligned} inside an {equation} environment. Then again, I may have misunderstood the ``whole thing'' part ...

KR
Rainer
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

EqnArray and formula markers in Lyx

Post by Stefan Kottwitz »

Yes, or split within equation. But let's see what he said... for reference: amsmath manual. LyX supports amsmath.

Stefan
LaTeX.org admin
chochmah
Posts: 3
Joined: Mon Sep 21, 2015 1:33 pm

Re: EqnArray and formula markers in Lyx

Post by chochmah »

Thank you very much Stefan, I've gotten it to work with align and it looks indeed much nicer. I'll change all my multi line formulas to align.

Cheers!
Post Reply