ForNeVeR / xaml-math

A collection of .NET libraries for rendering mathematical formulae using the LaTeX typesetting style, for the WPF and Avalonia XAML-based frameworks
MIT License
640 stars 102 forks source link

Align matrix equation #474

Open hbadi opened 11 months ago

hbadi commented 11 months ago

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.

ForNeVeR commented 11 months ago

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.

hbadi commented 11 months ago

Hi @ForNeVeR ,

Thanks a lot ! That works fine with your code !