Mathematical text rendering with superscripts and subscripts Supports matplotlib-like syntax: x^2, y_i, x_{text}, y^{superscript}
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer, | public, | parameter | :: | ELEMENT_NORMAL | = | 0 | |
| integer, | public, | parameter | :: | ELEMENT_SUPERSCRIPT | = | 1 | |
| integer, | public, | parameter | :: | ELEMENT_SUBSCRIPT | = | 2 | |
| integer, | public, | parameter | :: | ELEMENT_SQRT | = | 3 |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| character(len=:), | public, | allocatable | :: | text | |||
| integer, | public | :: | element_type | = | ELEMENT_NORMAL | ||
| real(kind=wp), | public | :: | font_size_ratio | = | 1.0_wp | ||
| real(kind=wp), | public | :: | vertical_offset | = | 0.0_wp | ||
| logical, | public | :: | italic | = | .false. |
True for runs that originate inside a '$...$' math segment. matplotlib renders math variables in italic; backends apply a synthetic oblique shear to alphabetic glyphs of italic runs. |
Parse mathematical text into renderable elements
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | input_text |