pub fn environment_ended_by_group() -> boolExpand description
Whether the environment whose frame is on top is being ended by a plain
group closer (close_environment_frame) rather than by its own \end:
end code TeX never runs then (\end’s hooks, latex.ltx:15386-15393; a
theorem’s end mark and postwork) is skipped by the bindings that emit it.