Skip to content

v4 rendering error with double braces around align command like \begin{array}{{cc}} #3565

@SDineenAtOptica

Description

@SDineenAtOptica

Issue Summary

Alignment commands in an array or similar produce an error when the alignment command is in double braces such as {{cc}}. This rendering problem did not occur in MJ 3 and does not with TeXLive. Also, the tagging approach is quite common in our library of articles going back decades: \begin{array}{{cc}}

Steps to Reproduce:

  1. With a MathJax 4.1 setup for LaTeX, observe the rendering of this equation with and without the double braces around the alignment preamble:
\left( \begin{array}{{cc}}
		a & b \\
		c & d
  \end{array} \right)
  1. Observe the error message when double braces like in the example are used:
    Illegal pream-token ({)

Technical details:

  • MathJax Version: 4.1.2
  • Client OS: Windows 11
  • Browser: Chrome 148.0.7778.179
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    AcceptedIssue has been reproduced by MathJax teamCode ExampleContains an illustrative code example, solution, or work-aroundReady for Reviewv4

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions