MHB Highlighting a Letter with HTML: A Quick Tutorial

  • Thread starter Thread starter topsquark
  • Start date Start date
  • Tags Tags
    Html Tutorial
AI Thread Summary
The discussion revolves around a member's attempt to highlight a letter in a mathematical equation using LaTeX. The user wanted to change the color of the letter "T" to red within the equation but initially faced issues with the formatting. After some back-and-forth, a solution was provided using the LaTeX command {\color{red}{T}} to successfully change the color of "T" in the equation. The user expressed gratitude for the tip, acknowledging that they had overlooked the use of color in LaTeX code.
topsquark
Science Advisor
Homework Helper
Insights Author
MHB
Messages
2,020
Reaction score
843
Note: You'll have to quote this to see the code. I don't think the noparse tags are working here.

I recently wanted to correct a member's equation and wanted to highlight a change. I decided to change a letter's color to red:
[math]T \left ( \left [ \begin{array}{c}x-2y \\ 3x-y \end{array} \right ] \right ) [/math]

I'd like to highlight the T: T

But this gives:
[math]T \left ( \left [ \begin{array}{c}x-2y \\ 3x-y \end{array} \right ] \right ) [/math]How do I fix this?

Thanks!

-Dan
 
Physics news on Phys.org
$${\color{red}{T}}\left(\begin{bmatrix}
x-2y\\ 3x-y
\end{bmatrix}\right)$$

Like so?
 
skeeter said:
$${\color{red}{T}}\left(\begin{bmatrix}
x-2y\\ 3x-y
\end{bmatrix}\right)$$

Like so?
YES! Thanks for the tip. For some reason I didn't think of changing the color in LaTeX code. (Doh)

-Dan
 
Back
Top