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

Square brackets not shown in aligned environment #2888

Open
abnerlee opened this issue Jun 23, 2022 · 1 comment
Open

Square brackets not shown in aligned environment #2888

abnerlee opened this issue Jun 23, 2022 · 1 comment
Labels
Accepted Issue has been reproduced by MathJax team Merged Merged into develop branch Test Needed v3
Milestone

Comments

@abnerlee
Copy link

Replace the text below with the details of the issue you are facing.
DO NOT simply erase the form and type a free-form response.

Issue Summary

Square brackets not shown in aligned environment

Steps to Reproduce:

Try

$$
\begin{aligned}
[a]
\end{aligned}
$$

$$
\begin{aligned}
a[a]
\end{aligned}
$$

in https://www.mathjax.org/#demo

The first [a] is not rendered.

Technical details:

  • MathJax Version: 3.2.2
  • Client OS: (Mac OS X 12.4)
  • Browser: (Chrome 100)

Supporting information:

Based on https://tex.stackexchange.com/a/281943

Update Jan. 2021. The current version of the amsmath package, 2020/09/23 v2.17i, no longer generates the problem described in the OP's query. Hence, taking "precautions" such as inserting a \relax or {} element before a [ element at the start of a line is no longer necessary.

Maybe the newer / correct spec is to render the first [a] ?

@dpvc
Copy link
Member

dpvc commented Jun 26, 2022

Thanks for the report. Apparently this is a recent change in behavior for LaTeX. We will look into updating that TeX input jax to correspond.

In addition to the other suggestions from the TeX StackExchange post that you cite, you could also use

$$
\begin{aligned}[]
[a]
\end{aligned}
$$

to get the desired output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Issue has been reproduced by MathJax team Merged Merged into develop branch Test Needed v3
Projects
None yet
Development

No branches or pull requests

2 participants