\class - Tex Command


Advertisements

NAME

\class - Used to specify a CSS class for styling mathematics.

SYNOPSIS

{ \class #1 #2 }

OPTIONS

InputDescription
#1CSS class name (without quotes)
#2Mathematics to be styled

DESCRIPTION

\class command is used to specify a CSS class for styling mathematics.

EXAMPLE

  1. 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 
    $ ab\class{smHighlightRed}{cdef}gh $
Print