The vimtex api is great so far but I would like to have the possibility to find out whether my cursor is currently in a x section where x is just a placeholder for any possible section, e.g.
and I would like to be able to call some API function to tell me whether my cursor currently is in an x-block.