How to Parse LaTex file
I just finished to write the summary for calculus in Latex. The main problem now is that the files contains many things I don't really need now. The .tex files contains many definitions and theorems that i need to study by heart. The definitions have their own definition in the tex file, so any definition in the file will start with: \begin{definition} and ends with \end{definition} And the same for theorems. I need to write something to take out whatever is inside the \begin{}...\end{} . For example in a list called A: \begin{document} \begin{center} \begin{definition} Hello WOrld! \end