\class - Tex命令



名稱

\class - 用於指定用於樣式數學的CSS類。

摘要

{ \class #1 #2 }

選項

輸入描述
#1CSS 類名(不帶引號)
#2要設定樣式的數學公式

描述

\class 命令用於指定用於樣式數學的 CSS 類。

示例

  1. 在html頁面的頭部新增以下樣式。

    .smHighlightRed {
       font-size:small;
       background-color:yellow;
       color:red;
    }
    

    在Tex命令中使用該樣式。

    ab\class{smHighlightRed}{cdef}gh 
    $ ab\class{smHighlightRed}{cdef}gh $
廣告
© . All rights reserved.