1. Colour while using ##\LaTeX## 2. Preview first time

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
12 replies · 4K views
brotherbobby
Messages
806
Reaction score
178
I have observed that one cannot use colour here while typing something in ##\LaTeX##.

Let me try : ##\text{Let's see if this can be \color{blue} {coloured}?}##. Nope, I type, via an edit after posting. Of course I can use colour from the panel above, but that will have to work for the entire sentence, not a part of it.

Let's see : ##\text{Let's see if this can be coloured?}##

But not : ##\text{Let's see if this can be coloured?}##.

The line above simply didnt ##\LaTeX##. And something went terribly wrong it seems that I can't quite see.

For some reason, Preview doesn't work also the first time when you post something as the OP. But it works later when you reply.

Question : Does anyone know how to make colour work in LaTeX equations on here? I believe equations on here using MathJax for browser rendering of LaTeX.

Does anyone also know how to enable Preview of one's post first time round? Is there some fault with my browser or system? I am using Google Chrome on Windows 11 (64 bit). This happens on both my (Lenovo) laptop and (Windows Surface) tablet.
 
Physics news on Phys.org
brotherbobby said:
Does anyone also know how to enable Preview of one's post first time round?
In the new thread window, no. I suggest composing your post in a reply box somewhere and previewing there - paste into the new thread when ready.

In replies, LaTeX will only render in preview if an earlier post has used LaTeX. If you preview your reply and LaTeX does not render, refresh the page while in preview mode and MathJax should wake up. The wise poster copies their text to clipboard before refreshing.
 
  • Informative
Likes   Reactions: phinds
Ibix said:
In the new thread window, no. I suggest composing your post in a reply box somewhere and previewing there - paste into the new thread when ready.
Yes, that is a good suggestion, sorry didn't occur to me.

Any word on how to use colour in MathJax?
 
brotherbobby said:
Any word on how to use colour in MathJax?
It looks to me like you've got it working, no?
brotherbobby said:
Please keep your opinions to yourself.
He does raise a good point, though. A fair few of us here do not have young eyes any more. It's worth considering whether a use of colour in maths will improve your communication with your target audience, or if another approach might be better.
 
  • Like
Likes   Reactions: Vanadium 50
Ibix said:
It looks to me like you've got it working, no?
No. I can colour either the whole equation or none of it. I cannot colour a portion of it, which I can, by the way, if I was writing an article using ##\LaTeX## on my system.

Ibix said:
He does raise a good point, though. A fair few of us do not have young eyes any more. It's worth considering whether a use of colour in maths will improve your communication with your target audience, or if another approach might be better.
[Mentor Note: misinformation deleted from post]
All the same, I prefer an answer or a reply to my question. As to whether one should or should not do something, well, that is besides the point. For instance, I would like to colour equations. If people complain on my post with coloured equations, of course I'd stop. It's a different point.
 
Last edited by a moderator:
brotherbobby said:
I think however fallible one's eyesight is, a different colour always helps things stand out.
I used to work for a guy who was completely colour blind. I had to present graphs with different dash patterns or just use shades of grey because it was very difficult to work out what colours he would be able to differentiate.

Up to you, of course. I'm just observing that colour isn't a popular way of highlighting parts of equations and there are likely to be reasons for that.

Anyway, it looks like the color command is ignored inside a text environment. Works otherwise.
##F=\color{red}{m}a##
##F=\text{\color{red}{m}}a##
##F=\color{red}{\text{m}}a##
 
  • Like
Likes   Reactions: Vanadium 50
Ibix said:
I used to work for a guy who was completely colour blind. I had to present graphs with different dash patterns or just use shades of grey because it was very difficult to work out what colours he would be able to differentiate.

Up to you, of course. I'm just observing that colour isn't a popular way of highlighting parts of equations and there are likely to be reasons for that.

Anyway, it looks like the color command is ignored inside a text environment. Works otherwise.
##F=\color{red}{m}a##
##F=\text{\color{red}{m}}a##
##F=\color{red}{\text{m}}a##
Let me try : ## F = \color{red}{m}a##.
It works. Sorry to bother.
 
Let me see.

##\text{Let's see if this can be } \color{blue}{\text{coloured}}\text{?}##

So I suppose the trick is to put \text within \text.
 
Thread will remain closed after insults and misinformation by the OP have been deleted. Do NOT try to enhance LaTeX by changing colors. How many times have you seen colored LaTeX in peer-reviewed journal articles or textbooks? Lordy.
 
  • Skeptical
Likes   Reactions: jack action
Ibix said:
It's worth considering whether a use of colour in maths will improve your communication with your target audience, or if another approach might be better.

brotherbobby said:
If people complain on my post with coloured equations, of course I'd stop.
Noted.
I've seen and replied to quite a few of your posts. It definitely has occurred to me that you go overboard with formatting, to the point of being somewhat of a distraction. I'll keep what you said just above in mind...
 
  • Skeptical
Likes   Reactions: jack action