MHB Vertical bar at end of math entry

  • Thread starter Thread starter Kiwi1
  • Start date Start date
  • Tags Tags
    Vertical
AI Thread Summary
Users experiencing a vertical bar appearing next to mathematical expressions rendered with MathJax, such as \(x^2|\), found that the issue was linked to the version of MathJax being used and the method of accessing it. The problem was noted primarily in Chrome, where the vertical bar appeared after scrolling in documents opened from a local hard drive. Testing with Internet Explorer showed no issues, indicating that browser compatibility may play a role. The solution involved downloading a fresh version of MathJax from the web, which resolved the problem. Users are advised to ensure they are using the latest version of MathJax and to consider the method of access (local vs. online) to avoid similar issues.
Kiwi1
Messages
106
Reaction score
0
When I enter math like \(x^2\) I often get a vertical bar shown to the right of my math when I print the document or view it on screen. Something like this: \(x^2|\)

I get this both on this site and also when I write HTML using mathjax.

When I preview this post I don't get the vertical bar. It seems a bit random.

Am I doing something wrong? Can I reliably avoid what looks like an edge on the math image?
 
Physics news on Phys.org
What browser are you using?

The reason I ask, is that MathJax makes extensive use of HTML/CSS, both of which are handled client-side, and different browsers handle this in different ways.
 
MarkFL said:
What browser are you using?

The reason I ask, is that MathJax makes extensive use of HTML/CSS, both of which are handled client-side, and different browsers handle this in different ways.

I was using Chrome v49. I just upgraded to Chrome v50. I have tried opening my document with IE11 and that was fine.

In Chrome (either version) if I open my file then all is fine, when I scroll to the bottom of the doc and back to the top the bars appear.
 
I just looked at a page here with a great deal of $\LaTeX$ on it using Chrome 50.x and didn't notice the issue you reported. Can you give me a link to a page here where the issue occurs for you?
 
Thanks, I think I have found it.

I was working on an HTML file on my local hard drive. Sometimes I use Mathjax off the web and sometimes from a copy on my HDD.

It turns out I get the bars when I use the HDD copy. So I downloaded a fresh copy of MathJax and so far it seems to be problem solved.

This worked:
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>

This did not until I updated MathJax:
<script type="text/javascript" src="file://c:/mathjax/mathjax-master/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
 

Similar threads

Replies
1
Views
3K
Replies
4
Views
4K
Replies
2
Views
10K
Replies
5
Views
2K
Replies
1
Views
2K
Replies
2
Views
4K
Back
Top