Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align matrix equation #474

Open
hbadi opened this issue Nov 2, 2023 · 2 comments
Open

Align matrix equation #474

hbadi opened this issue Nov 2, 2023 · 2 comments

Comments

@hbadi
Copy link

hbadi commented Nov 2, 2023

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
Copy link
Owner

ForNeVeR commented Nov 3, 2023

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
Copy link
Author

hbadi commented Nov 6, 2023

Hi @ForNeVeR ,

Thanks a lot ! That works fine with your code !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants