Vectors not rendering properly

  • Thread starter Thread starter Orodruin
  • Start date Start date
AI Thread Summary
Vector arrows rendered using the TeX command \vec are displaying excessive white space after the symbol, affecting readability. This issue appears to be browser-specific, with users reporting the problem in Safari on Mac OS and iOS, while it renders correctly in Firefox and Chrome. The MathJax team has acknowledged the issue and indicated that it should be resolved in the upcoming MathJax v2.7 release. Users can test the fix in the beta version before the official update. The discussion highlights the importance of browser compatibility for proper rendering of mathematical symbols.
Orodruin
Staff Emeritus
Science Advisor
Homework Helper
Insights Author
Gold Member
2024 Award
Messages
22,816
Reaction score
14,870
I have noticed for quite some time that vector arrows specified using the TeX command \vec result in a much larger white space after the symbol than it should, eg, ##\vec v_i \cdot \vec w##. It is a bit bad for readability and looks quite ugly. Can this be fixed?
 
Physics news on Phys.org
Looks fine to me. Here's a screen grab of what you wrote:

vectors.jpg


(Mac OS 10.11.6, Firefox 49.0)
 
DrClaude said:
Looks fine to me. Here's a screen grab of what you wrote:

View attachment 106865

(Mac OS 10.11.6, Firefox 49.0)
So it is browser based. I get this
vectorerror.png
in Safari, both on my Mac OS 10.11.6 (Safari 9.1.2) and on IOS 10.0.2.

Edit: Looks fine in Chrome 53.0.2785.116.

Edit II: Of course, I can solve this by using Chrome on PF, but I do not think may people will use something different from Safari to browse PF on their iPhones ...
 
Last edited:
Orodruin said:
So it is browser based.
Indeed. I get the same problem as you do in Safari.
 
I can confirm this as well. Renders fine in Firefox (two different computers), but with the same spacing problem in Safari/602.1 (mobile).
 
Greg Bernhardt said:
They need a Safari and OSX version
Orodruin said:
both on my Mac OS 10.11.6 (Safari 9.1.2) and on IOS 10.0.2
By Mac OS 10.11.6 I mean OSX 10.11.6. I don't know how to get the Safari version on the iOS, but I suspect it is updated along with iOS.
 
  • Like
Likes Greg Bernhardt
Apparently Mobile Safari 10.
 
  • #10
I'm on my iPad now, and I see that I get the same problem in Firefox 5.3 (iOS 10.0.2). Note the bug is not present in Firefox on Mac OS X 10 (as mentioned above).
 
  • #11
Thanks, I'm going to put this into Feedback so they can see the example.
 
  • #13
Hi,

This issue should be fixed in the upcoming MathJax v2.7 release (we're just wrapping up the public beta run).

You can try it out by pasting your TeX source on e.g., http://beta.mathjax.org/mathjax/latest/test/sample-dynamic-2.html.

Regards,
Peter from the MathJax team.
 
  • Like
Likes Greg Bernhardt, Ibix, mfb and 1 other person
  • #14
Looks good there. Thanks for the quick feedback.
 
  • #15
Thanks for taking the time to take a look, @mfb!
 
  • #16
MathJax 2.7 is out. Might take a day to refresh the cache.
 
Back
Top