\mathchoice - Tex Command


Advertisements

mathchoice

\mathchoice - provides content that is dependent on the current style (display, text, script, or scriptscript).

SYNOPSIS

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

DESCRIPTION

\mathchoice command is used to provide content that is dependent on the current style (display, text, script, or scriptscript); can be used in defining a macro for general use.

OPTIONS

InputDescription
#1rendered when the \mathchoice appears in display style.
#2rendered when the \mathchoice appears in text style.
#3rendered when the \mathchoice appears in script style.
#4rendered when the \mathchoice appears in scriptscript style.

EXAMPLE

  1. \mathchoice{D}{T}{S}{SS}
    $ \mathchoice{D}{T}{S}{SS} $
Print