Latex Bug: Colors Not Showing for Some Users?

  • LaTeX
  • Thread starter jack action
  • Start date
In summary, MathJax doesn't seem to be able to correctly render Latex formatting codes, such as boldface, italic, or other typesetting codes.
  • #1
jack action
Science Advisor
Insights Author
Gold Member
2023 Award
3,106
7,678
I wrote this post where I used "{\color{red}{text}}" in the Latex. I see it correctly (as in the screenshots at the end of the post), but @hutchphd didn't (next post).

Anyone else has this problem? Don't we have all the same javascript file to decode Latex? @Greg Bernhardt
 
Physics news on Phys.org
  • #2
Color and MathJax don't render very well. This is also true for boldface, italic, or other typesetting codes. They should be avoided. And not only because of that.
 
  • Like
Likes Bystander
  • #3
For me this works, i.e., \color{red}{\text{Test}} in double dollars:
$$\color{red}{\text{Test}}$$
Also boldface works, \boldsymbol{x} gives
$$\boldsymbol{x}$$
 
  • Like
Likes benorin
  • #4
Not so for me.
1645293031783.png
 
  • Like
Likes DaveE
  • #5
Strange. Is it somehow dependent on the web browser you use? I use firefox under linux and it works. I just checked that it also works with the chrome browser...
 
  • #6
vanhees71 said:
Strange. Is it somehow dependent on the web browser you use? I use firefox under linux and it works. I just checked that it also works with the chrome browser...
I use Chrome and get the same negative result with Opera.
 
  • #7
Probably browser dependent (or rather, the MathJax implementation in the browser). The boldsymbol seems to work on iOS Safari but the color doesn’t.
 
  • #8
Orodruin said:
Probably browser dependent (or rather, the MathJax implementation in the browser). The boldsymbol seems to work on iOS Safari but the color doesn’t.
My Safari displays ‚Text‘ in red. Guess we can rule out the browsers.
 
  • #9
@vanhees71 's test works for me too. But shouldn't all of this depend only on a javascript file? Aren't all "conversions" done in that file? The HTML code I have for \color{red}{v_{wv}} is:
HTML:
<mjx-mstyle style="color: red;">
    <mjx-msub><mjx-mi class="mjx-i">
        <mjx-c class="mjx-c1D463 TEX-I"></mjx-c>
    </mjx-mi>
    <mjx-script style="vertical-align: -0.15em;">
        <mjx-texatom size="s" texclass="ORD">
            <mjx-mi class="mjx-i">
                <mjx-c class="mjx-c1D464 TEX-I"></mjx-c>
            </mjx-mi>
            <mjx-mi class="mjx-i">
                <mjx-c class="mjx-c1D463 TEX-I">
                </mjx-c></mjx-mi></mjx-texatom>
        </mjx-script>
    </mjx-msub>
</mjx-mstyle>
How come it doesn't convert to style="color: red;" for everyone within javascript?
 
  • #10
Here are my test results:


Browser​
red​
bold​
Chrome​
0​
1​
Opera​
0​
1​
Safari​
1​
1​
 
  • #11
fresh_42 said:
My Safari displays ‚Text‘ in red. Guess we can rule out the browsers.
Different browser versions = different MathJax implementations perhaps?
 
  • #12
fresh_42 said:
Here are my test results:


Browser​
red​
bold​
Chrome​
0​
1​
Opera​
0​
1​
Safari​
1​
1​
What OS?
 
  • #14
Orodruin said:
What OS?
I don't see how this would help, and I had difficulties getting all information.
Browser​
Version​
OS​
Version​
Java​
Version​
red Text​
Chrome​
98.0.4758.102 / 64 Bit​
W10H​
21H1​
javax.inject​
2 / 2004​
0​
Opera​
83.0.4254.62 / 64 Bit​
W10H​
21H1​
JavaScript allowed​
?​
0​
Safari​
?​
iOS​
15.3.1​
?​
?​
1​
 
Last edited:
  • #15
This is why someone wrote the book:

Javascript: the Good Parts
 
  • #16
Orodruin said:
Probably browser dependent (or rather, the MathJax implementation in the browser). The boldsymbol seems to work on iOS Safari but the color doesn’t.
That's weird. Both rendered correctly on my iPad and iPhone just now.
 
  • Like
Likes vanhees71
  • #17
  • Like
Likes vanhees71
  • #19
vela said:
That's weird. Both rendered correctly on my iPad and iPhone just now.
Your iOS may be more up to date. I run iOS 12 and can’t update because my phone is relatively ancient.
 
  • Like
Likes vanhees71
  • #20
Orodruin said:
Your iOS may be more up to date. I run iOS 12 and can’t update because my phone is relatively ancient.
The sad reality of being a dedicated college prof unable to afford to upgrade his iPhone.

Hang in there @Orodruin !
 
  • #21
vela said:
Some people might have older versions cached.
I think this is the problem. A week ago PF made some changes.

To people who have errors, refresh your cache and see if it works!
 
  • Like
  • Informative
Likes vanhees71 and fresh_42
  • #22
jack action said:
I think this is the problem. A week ago PF made some changes.

To people who have errors, refresh your cache and see if it works!
How likely is it that two different browsers share the same cache?
 
  • #23
fresh_42 said:
How likely is it that two different browsers share the same cache?
None. But the same file version could be cached in both.
 
  • #24
jack action said:
None. But the same file version could be cached in both.
Yep. It worked for Chrome. Now I have to go through all the annoying logins, cookie acceptances etc. again ...
 
  • #25
fresh_42 said:
Yep. It worked for Chrome. Now I have to go through all the annoying logins, cookie acceptances etc. again ...
You can't clear cache separately from cookies/logins ??!
 
  • Like
Likes vanhees71
  • #26
PAllen said:
You can't clear cache separately from cookies/logins ??!
I could, at least in Chrome. Opera is less comfortable. But I do not know where is stored what and I didn't want to run the process and test the result on every single selection. So I only kept the passwords and the auto-fills.
 
  • #27
vanhees71 said:
For me this works, i.e., \color{red}{\text{Test}} in double dollars:
$$\color{red}{\text{Test}}$$
Also boldface works, \boldsymbol{x} gives
$$\boldsymbol{x}$$
I’m on the latest iOS version in Firefox browser and both the red text and boldface work for me.
 
  • Like
Likes vanhees71

1. Why are some users unable to see colors in Latex Bug?

This could be due to a variety of factors, such as a compatibility issue with the user's device or browser, or an outdated version of Latex Bug. It could also be caused by a user's personal settings, such as a color blindness filter.

2. How can I fix the issue of colors not showing in Latex Bug?

First, try updating your Latex Bug software and clearing your browser's cache. If the issue persists, check your device and browser settings to ensure they are not affecting the display of colors. You may also want to try using a different device or browser.

3. Is this a common problem in Latex Bug?

No, this issue is not commonly reported in Latex Bug. However, it may occur for a small percentage of users due to various factors.

4. Are there any known workarounds for the color display issue in Latex Bug?

Some users have reported success in changing their display settings, such as adjusting the color saturation or disabling color filters. However, these workarounds may not work for everyone and may impact the overall display of colors on your device.

5. Will future updates of Latex Bug address this issue?

The development team is continuously working to improve Latex Bug and address any reported issues. It is possible that future updates may include a fix for the color display issue, but this cannot be guaranteed. It is recommended to regularly update your Latex Bug software to ensure the latest version is being used.

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
6
Views
854
  • MATLAB, Maple, Mathematica, LaTeX
Replies
0
Views
851
  • MATLAB, Maple, Mathematica, LaTeX
Replies
16
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
948
  • MATLAB, Maple, Mathematica, LaTeX
Replies
12
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
6
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
955
  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
8
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
16
Views
3K
Back
Top