Formatting options for expressions

Formatting expressions tell Grafstate to typeset math or text with special font formatting or positioning. An expression is defined by a block command with the text or math of the expression block surrounded by curly braces.

Special formatting options can be applied to a text expression (and some math expressions) by adding a colon ( : ) to the end of the expression block followd by a list of options. The following font options are available for text expressions∶
Option
Description
Example
Grafstate code
!
Highlight
Highlight text
\{Highlight text:!}
**
Bold
Bold text
\{Bold text:**}
*
Italic
Italicized text
\{Italicized text:*}
__
Underline
Underlined text
\{Underlined text:__}
^
Superscript
Superscript text
\{Superscript text:^}
-
Subscript
Subscript text
\{Subscript text:_}
~
Overline
Overline text
\{Overline text:~}
Multiple formatting options can be applied to a single expression as a list∶
Example
Grafstate code
Multiple options 1
\{Multiple options 1:! * ~}
Multiple options 2
\{Multiple options 2:* ** __}
The \{} expression command used above is called the plain block command because it does not apply any special formatting unless formatting options are given. The following block commands are aliases for the plain block command with a single font options applied∶
Block command
Example
Grafstate code
Highlight
Highlight text
!{Highlight text}
Bold
Bold text
**{Bold text}
Italic
Italicized text
*{Italicized text}
Underline
Underlined text
__{Underlined text}
Superscript
Superscript text
^{Superscript text}
Subscript
Subscript text
_{Subscript text}
Overline
Overline text
~{Overline text}
Formatting options can be applied to the alias block commands as well∶
Example
Grafstate code
Multiple options 1
!{Multiple options 1:* ~}
Multiple options 2
*[Multiple options 2]