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
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
2 replies · 2K views
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?