Open SengerM opened 3 years ago
The output of this
import TexSoup latex = r'\def\lagrangian{\mathscr{L}}' soup = TexSoup.TexSoup(latex) print(soup.contents)
is
[\def{\}{lagrangian}, {\mathscr{L}}]
Is this the correct behavior? Sorry if not, I am not a LaTeX expert. But to me it is more logical to have everything parsed into the same object.
The output of this
is
Is this the correct behavior? Sorry if not, I am not a LaTeX expert. But to me it is more logical to have everything parsed into the same object.