
\class - Used to specify a CSS class for styling mathematics.
{ \class #1 #2 }
| Input | Description |
|---|---|
| #1 | CSS class name (without quotes) |
| #2 | Mathematics to be styled |
\class command is used to specify a CSS class for styling mathematics.
Add following style in header of html page.
.smHighlightRed {
font-size:small;
background-color:yellow;
color:red;
}
Use the style in Tex command.
ab\class{smHighlightRed}{cdef}gh