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

Mangled \divergence and \curl output #2554

Closed
stillyslalom opened this issue Oct 11, 2020 · 2 comments
Closed

Mangled \divergence and \curl output #2554

stillyslalom opened this issue Oct 11, 2020 · 2 comments
Labels
Accepted Issue has been reproduced by MathJax team Fixed Test Needed v3 v3.1
Milestone

Comments

@stillyslalom
Copy link

Issue Summary

\divergence and \curl macros from the physics package produce mangled output if they're not the first items in a TeX field

Steps to Reproduce:

  1. In a Pluto.jl Markdown environment, enter
md"""
``
\curl{u} = 0
``

``
0 = \curl{u}
``

``
\divergence{u} = 0
``

``
0 = \divergence{u}
``

"""
  1. The following output is produced:
    image

Technical details:

  • MathJax Version: 3.1.2, tex-svg-full
  • Client OS: Windows 10 insider build 20206.1000
  • Browser: Chrome 85.0.4183.121

Supporting information:

https://gist.github.com/stillyslalom/6968cda032d8ffc25586bc1c008bcdfa

@zorkow zorkow added the Accepted Issue has been reproduced by MathJax team label Oct 16, 2020
@zorkow
Copy link
Member

zorkow commented Oct 16, 2020

Thanks for reporting this.
This seems to be a problem with the SVG output jax. The expressions render correctly with CHTML.
Likewise replacing \curl or \divergence with their underlying implementation (\gradientnabla\crossproduct and \gradientnabla\vdot, respectively) works fine. This will of course not give you automatic brackets or parentheses.

@dpvc
Copy link
Member

dpvc commented Feb 25, 2021

I have made a pull request that resolves the issue.

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 Fixed Test Needed v3 v3.1
Projects
None yet
Development

No branches or pull requests

3 participants