-
-
Notifications
You must be signed in to change notification settings - Fork 806
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
Alternate between right/left alignment in equations #936
Conversation
The cases test image does not look very nice? What still needs to be done here, and can I help you in any way? |
Yeah that should be easily fixable with a parameter that starts with left alignment instead of right, just waiting on some other PRs to be merged. |
Shouldn’t cases look correct by default?
…On Sun, Apr 23, 2023 at 1:06 PM Alex Saveau ***@***.***> wrote:
Yeah that should be easily fixable with a parameter that starts with left
alignment instead of right, just waiting on some other PRs to be merged.
—
Reply to this email directly, view it on GitHub
<#936 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/A2QMYGKJQX546N4RUSBRVALXCVOR7ANCNFSM6AAAAAAXH7DJYI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Yeah I meant a parameter in rust, not in typst. |
102fa05
to
b79121d
Compare
Regardless, why does this have to be a special case? Is it a special case
in latex, too?
…On Sun, Apr 23, 2023 at 3:17 PM Enivex ***@***.***> wrote:
Yeah that should be easily fixable with a parameter that starts with left
alignment instead of right, just waiting on some other PRs to be merged.
In LaTeX the columns in cases are always left-aligned.
$$
\begin{cases}
a & x > y \
b+c & x\leq y+1
\end{cases}
$$
—
Reply to this email directly, view it on GitHub
<#936 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/A2QMYGM26HEZMJDL5GT5H33XCV53HANCNFSM6AAAAAAXH7DJYI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
The only alignment that should be alternating from right to left is in the base equation environment. (Corresponding to align /alignat in latex) Edit: Though like with matrices I guess it makes sense to make alignment optional for the one or two columns in the cases environment. |
This is ready, but it requires #749. If we don't want to go with tabular alignment, I'll need some guidance on what it means to alternate between right/left alignment: #460 (comment) |
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
Fixes #460