Edit: how to colour an edited formula

In summary,You could use \bf ... \bf \vec F_{net}=m\vec aor \Large \Large \vec F_{net}=m\vec aHowever, this process can be tedious if specific items need coloring.
  • #1
mcastillo356
Gold Member
592
320
TL;DR Summary
I've needed to edit a formula, and wanted to colour it. No way. LaTeX command "\color{red}" doesn't work. Whch should be the typing?
Hi PF
How to colour the edited formula?
Greetings!
 
Physics news on Phys.org
  • #2
In what application?
[tex] \vec F_{net}=m\vec a [/tex]
... but this seems tedious to do for specific items in an equation.
Quote this post to see the tags COLOR tags surrounding the tex tags.

You could use \bf ...
[tex] \bf \vec F_{net}=m\vec a [/tex]
or \Large
[tex] \Large \vec F_{net}=m\vec a [/tex]
 
  • Informative
Likes mcastillo356
  • #3
robphy said:
In what application?
[tex] \vec F_{net}=m\vec a [/tex]
... but this seems tedious to do for specific items in an equation.
Quote this post to see the tags COLOR tags surrounding the tex tags.

You could use \bf ...
[tex] \bf \vec F_{net}=m\vec a [/tex]
or \Large
[tex] \Large \vec F_{net}=m\vec a [/tex]
Fine. I'll give a try... Suppose I want to colour only ma in F=ma in this sentence: "The formula ##\vec F=m\vec a## is one of the most importants in physics", written inside a paragraph... How?
Thanks!
 
  • #4
Indeed, [itex] \vec F=m\vec a [/itex] is an important equation.

LaTeX in color on PF:
[COLOR=rgb(147, 101, 184)][itex] \vec F=m\vec a [/itex][/COLOR]
 
  • Love
Likes mcastillo356
  • #5
Hi, @robphy , PF
What about if the LaTeX inside a sentence is
\dfrac{|f(u)-f(v)|}{|u-v|}=\dfrac{||u|-|v||}{|u-v|}\leq 1
and I want to colour
\dfrac{||u|-|v||}{|u-v|}
 
  • #7
A little bit mind-blowing, I will take it easy, ie, read and write down #2

Love
 
  • #8
Experimenting:

V3 ## { \color{red} x } + { \color{blue} y }##

V2 ## \color{red}{x} + \color{blue}{y} ##

$$ \color{red}{x} + \color{blue}{y} $$
 
  • #9
Last edited:
  • #10
[itex] \require{colorv2} { \color{red} {\vec F_{net}}}=m {\color{blue}{\vec a}}[/itex]
 
  • #11
pbuk said:
Experimenting:

V3 ## \require{colorv2} { \color{red} x } + { \color{blue} y }##

V2 ## \color{red}{x} + \color{blue}{y} ##

$$ \color{red}{x} + \color{blue}{y} $$
\require{colorv2}
 
  • Like
Likes pbuk
  • #12
robphy said:
\require{colorv2}
Ah yes that forces it but it would be better to fix the broken configuration.
 
  • #13
[itex]\require{color}
\colorbox{yellow}{1+1=10} [/itex]

[itex]
\color{red}1+1=10[/itex]
 
  • #14
pbuk said:
Ah yes that forces it but it would be better to fix the broken configuration.
.. which Greg has now done (it was a breaking change in MathJax 3.1) so no need for \require.
 
  • #15
[itex]\colorbox{yellow}{Joy!} [/itex]

[itex]
\fcolorbox{black}{yellow}{$\vec F_{net}$} =m\color{blue}{\vec a}[/itex]

Now if we could only get some interactive javascript [like Desmos or trinket/Glowscript embeded]. :wink:
 

FAQ: Edit: how to colour an edited formula

What is the purpose of coloring an edited formula?

Coloring an edited formula can make it easier to distinguish between different parts of the formula or highlight important components. It can also make the formula more visually appealing and easier to understand.

What are some common methods for coloring an edited formula?

Some common methods for coloring an edited formula include using different font colors, highlighting specific parts of the formula with a different color, or using colored brackets or parentheses to group certain parts of the formula together.

How do I choose which colors to use for my edited formula?

When choosing colors for an edited formula, it is important to consider the purpose of the color. For example, if you want to highlight an important component, you may want to use a bright or bold color. If you want to group similar components together, you may want to use a lighter or more subtle color.

Can I use any color to edit my formula?

Yes, you can use any color to edit your formula. However, it is important to keep in mind that some colors may be difficult to read on certain backgrounds or may not be accessible for individuals with color blindness. It is best to choose colors that are easy to read and provide enough contrast.

Is there a specific order in which I should color an edited formula?

There is no specific order in which you should color an edited formula. However, it may be helpful to color the most important or complex parts of the formula first, and then work your way to the less important or simpler components. This can help ensure that the most critical parts of the formula are easily identifiable.

Back
Top