plasTeX 3.0 — A Python Framework for Processing LaTeX Documents

6.3.9 TeXFragment Objects

class TeXFragment()

A fragment of a document. This class is used mainly to store the contents of LaTeX macro arguments.

source

the LaTeX source representation of the document fragment