functionuses_mathprivate
logical function uses_math(site, id)
True if the documentation shown on the page of id has math.
Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
| site | type(site_t) | in | the site | |
| id | integer | in | the entity |
Result
| Name | Type | Attributes | Description |
|---|---|---|---|
| uses_math | logical |
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