fdoc

functionuses_mathprivate

logical function uses_math(site, id)

True if the documentation shown on the page of id has math.

Arguments

NameTypeIntentAttributesDescription
sitetype(site_t)in

the site

idintegerin

the entity

Result

NameTypeAttributesDescription
uses_mathlogical

Calls

Source

Show the code
logical function uses_math(site, id)
    type(site_t), intent(in) :: site    !! the site
    integer, intent(in) :: id           !! the entity
    integer :: k

    uses_math = has_math(site%p%list%box(id)%e)
    if (uses_math) return
    do k = 1, size(site%p%list%box(id)%e%children)
        uses_math = has_math(site%p%list%box(site%p%list%box(id)%e%children(k))%e)
        if (uses_math) return
    end do
end function uses_math

Graphs

Calls

Called by