xaml-math icon indicating copy to clipboard operation
xaml-math copied to clipboard

Align matrix equation

Open hbadi opened this issue 2 years ago • 2 comments

Hello,

I'd like to align the following system of equations : \\matrix{ a_n + b_n &=& \\alpha + \\epsilon \\\\ c_n &=& \\beta}

image

So that terms on left aligned right and terms on right align left, something like this (it's a trick using paint) image

Any idea to do that ?

Best regards.

hbadi avatar Nov 02 '23 22:11 hbadi

So far, we don't support right-alignment in matrices at all. It's not that hard to add, just we don't have the corresponding syntax and code.

Something similar to your example is possible to build using manually aligned symbols, like this:

\begin{align}
  a_n + & b_n = \alpha +\epsilon \\
        & c_n = \beta
\end{align}
image

But a proper support for alignment in cells would be of course much better.

ForNeVeR avatar Nov 03 '23 21:11 ForNeVeR

Hi @ForNeVeR ,

Thanks a lot ! That works fine with your code !

hbadi avatar Nov 06 '23 22:11 hbadi