<div dir="ltr">Hello, I'm trying to use luatex as external parser of tex-documents for my python script.<div><br></div><div>I'm looking for the way to get a document tree representation with preserving of all section-subsection-paragraph-references hierarchy. Is luatex able to retrieve such hierarchy from the tex-source and export it as in-memory tree snapshot to another program? Or at least to parse one tex-document from another and to store hierarchy of the 1st one to lua-variable within the last one.
</div></div>