I would like to put multiple equations in a table like below.
solved for x | solved for y |
---|---|
x = a + b (1.1) | y = d + e (1.2) |
x = d + b * k (1.3) | y= j^2 (1.4) |
the equation should be aligned to the left and the numbering to the right. I've not been able to fit the equation envrioment into a table so the equations will be numbered.
Best Answer
Update
As pointed out in the comments, the first version did not add an option to refer to equations. Hence,
\addtag
was redesigned and moved directly inside the cells making numbering optional. Additionally, an argument of\addtag[<label>]
is optional. It is a label name and is required only if the equation needs to be referenced.The new code
EDIT.
Note the equation numbers. The document class
article
defines equations as single numbers, whereasreport
andbook
will add a chapter to form a combined tag, that is(2.1)
etc. as long as\chapter
is used. If you wish to have the same effect using justarticle
, add the following code to preamble:EDIT2. (display style)
Inline equations by default are typeset using a text style, which is a more compact form to fit expressions between texts. This can be changed by appending
\displaystyle
to each expression. However,>{...}
can do that automatically per each cell in the column. See the snippet below. You just need to add\displaystyle
after\(
Equations may no longer fit the rows after the change. In that case, increase the stretching factor of
\arraystretch
to something larger than 1.8, e.g.Here's a simple solution