4 x4 bmatrix has broken brackets. Is this normal?

39 views
Skip to first unread message

Nick Lloyd

unread,
Jan 5, 2023, 5:40:37 PM1/5/23
to MathJax Users
I am documenting some matrix math using Python/Sphinx. I am trying my hardest to keep it simple and use up-to-date versions of software and default values supplied by Sphinx etc.. The HTML page created by Sphinx uses MathJax to create a  4x4 bmatrix  array. However the 4x4 matrix is displayed on the web page with incomplete brackets that cover the top and bottom corners of the matrix but not the middle sections. If I cut and paste the "MathJax as TeX Commands" into a regular tex file and compile with TexStudio I get the brackets displayed properly with a complete middle section

Is it proper expected, behavior for MathJax to display broken brackets for a 4x4 matrix?  I understand this may not be an actual MathJax issue, e.g. it may be a Sphinx problem incorrectly configuring MathJax. But its difficult to know where to start and the MathJax community seems like the right place to start.

Here are the "MathJax as TeX Commands" cut from the web page display,

\begin{split}\mathbf{R} =
\begin{bmatrix}
1 & 0 & 0 & 0 \\
0 & -\cos\:2\alpha  & -\sin\:2\alpha & 0 \\
0 & +\sin\:2\alpha & +\cos\:2\alpha  &  0\\
0 & 0 & 0 & 1
\end{bmatrix}\end{split}


Thanks for any help or guidance.

Davide Cervone

unread,
Jan 9, 2023, 9:38:03 AM1/9/23
to mathja...@googlegroups.com
You don't indicate which version of MathJax you are using (v2 or v3), or the browser/os that you are using.

There are a number of issues filed at https://github.com/mathjax/MathJax/issues with similar complaints, e.g., 


so this is a known problem that seems to be dependent on the scaling factor, among other things.  We are preparing a v4.0.0 release with new fonts that I am hopeful will resolve the issue.

Davide

--
You received this message because you are subscribed to the Google Groups "MathJax Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathjax-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mathjax-users/670d17b2-5cbb-4bb1-8f56-1ae3d3bac8d3n%40googlegroups.com.

Nick Lloyd

unread,
Jan 9, 2023, 10:15:01 AM1/9/23
to MathJax Users

Thanks for the response, you have answered my question. For the record I was using Mathjax version 3.2.2, Chrome Version 108.0.5359.125 (Official Build) (64-bit) and Windows 10 for Education, 21H2, OS Build 19044.2364.

I would like to thank the MathJax community for all of their effort. This is a great asset to the scientific community and I am confident your planned future updates will fix the problem.

Thanks,

Nick

Davide Cervone

unread,
Jan 9, 2023, 10:17:12 AM1/9/23
to mathja...@googlegroups.com
Thanks for the response, you have answered my question. For the record I was using Mathjax version 3.2.2, Chrome Version 108.0.5359.125 (Official Build) (64-bit) and Windows 10 for Education, 21H2, OS Build 19044.2364.

Thanks for the additional information.

I would like to thank the MathJax community for all of their effort. This is a great asset to the scientific community and I am confident your planned future updates will fix the problem.

We appreciate your kind words about MathJax, and are glad that you find it useful.

Best regards,
Davide

Reply all
Reply to author
Forward
0 new messages