code: def fromLatex(tex, *args, **kwargs):
          
          source = TexSoup(tex)
          return TOC('[document]', source=source,
              descendants=list(source.descendants), *args, **kwargs)
docs: Creates abstraction using Latex
  
          :param str tex: Latex
          :return: TreeOfContents object