fplotlib_mathtext module#

The layout keeps no state between calls. An optional math_context_t reuses scratch storage; otherwise the call owns local scratch.

The input is TeX math source, not a public math-tree API. A programmatic math representation, broader shaping/font selection and complete TeX compatibility are not provided.

fplotlib_mathtext (module)#

Types

mrules_t (type)#

mrules_t (type)
Attributes:
ninteger, Default = 0
xreal(kind=dp), allocatable, dimension(:)
yreal(kind=dp), allocatable, dimension(:)
wreal(kind=dp), allocatable, dimension(:)
hreal(kind=dp), allocatable, dimension(:)

math_context_t (type)#

math_context_t (type)

Procedures

math_is (function)#

pure function math_is(s) -> yes
Arguments:
scharacter(len=*), intent(in)
Returns:
yeslogical

math_width (function)#

function math_width(s, size, face, context) -> w
Arguments:
scharacter(len=*), intent(in)
sizereal(kind=dp), intent(in)
faceinteger, intent(in), optional
contexttype(math_context_t), intent(inout), optional
Returns:
wreal(kind=dp)

math_layout (subroutine)#

subroutine math_layout(s, size, run, rules, width, face, context)
Arguments:
scharacter(len=*), intent(in)
sizereal(kind=dp), intent(in)
runtype(glyphrun_t), intent(inout)
rulestype(mrules_t), intent(inout)
widthreal(kind=dp), intent(out)
faceinteger, intent(in), optional
contexttype(math_context_t), intent(inout), optional

math_formula (subroutine)#

subroutine math_formula(s, size, display, run, rules, w, h, d, context)
Arguments:
scharacter(len=*), intent(in)
sizereal(kind=dp), intent(in)
displaylogical, intent(in)
runtype(glyphrun_t), intent(inout)
rulestype(mrules_t), intent(inout)
wreal(kind=dp), intent(out)
hreal(kind=dp), intent(out)
dreal(kind=dp), intent(out)
contexttype(math_context_t), intent(inout), optional