Highlighting a Letter with HTML: A Quick Tutorial

  • Context:
  • Thread starter Thread starter topsquark
  • Start date Start date
  • Tags Tags
    Html Tutorial
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
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