\mathchoice - TeX命令



mathchoice

\mathchoice - 提供取決於當前樣式(顯示、文字、指令碼或指令碼指令碼)的內容。

摘要

{ \mathchoice #1 #2 #3 #4 }

描述

\mathchoice 命令用於提供取決於當前樣式(顯示、文字、指令碼或指令碼指令碼)的內容;可用於定義供一般用途使用的宏。

選項

輸入描述
#1當 \mathchoice 出現在顯示樣式中時呈現。
#2當 \mathchoice 出現在文字樣式中時呈現。
#3當 \mathchoice 出現在指令碼樣式中時呈現。
#4當 \mathchoice 出現在指令碼指令碼樣式中時呈現。

示例

  1. \mathchoice{D}{T}{S}{SS}
    $ \mathchoice{D}{T}{S}{SS} $
廣告
© . All rights reserved.