Closed lionpeloux closed 6 years ago
Ah definitely. Thanks for the detailed feedback, and good luck on transforming your thesis! I'll leave some notes here and resolve once I've added to the docstring:
Take the following example. Consider the \begin{itemize}
environment.
\begin{itemize}
Floating text
\item outer text
\begin{enumerate}
\item nested text
\end{enumerate}
\end{itemize}
Here are its three properties contents
, children
, and descendants
below:
contents
: Anything and everything inside of this command. Everything needed to fully reconstruct the latex. ex. ["Floating Text", \item outer text, \begin{enumerate}]
.children
: Same as contents, but filter out random pieces of text. ex. Just [\item outer text, \begin{enumerate}]
.descendants
: all children, and all children of all children, and all children of all children of all... etc. ex. [\item outer text, \begin{enumerate}, \item nested text]
Ok, thank you for these informations, its now clear for me !
Le 29 nov. 2017 à 01:25, Alvin Wan notifications@github.com a écrit :
Ah definitely. Thanks for the detailed feedback, and good luck on transforming your thesis! I'll leave some notes here and resolve once I've added to the docstring:
Take the following example. Consider the \begin{itemize} environment.
\begin{itemize} Floating text \item outer text \begin{enumerate} \item nested text \end{enumerate} \end{itemize} Here are its three properties contents, children, and descendants below:
contents: Anything and everything inside of this command. Everything needed to fully reconstruct the latex. ex. ["Floating Text", \item outer text, \begin{enumerate}]. children: Same as contents, but filter out random pieces of text. ex. Just [\item outer text, \begin{enumerate}]. descendants: all children, and all children of all children, and all children of all children of all... etc. ex. [\item outer text, \begin{enumerate}, \item nested text] — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/alvinwan/TexSoup/issues/16#issuecomment-347710593, or mute the thread https://github.com/notifications/unsubscribe-auth/AA6FSrjPWeYKe64sIjyo7OfiRyN7C7RGks5s7KRpgaJpZM4Qo1E4.
Hi alvinwan,
I've been working with your TexSoup engine and it looks promising to me ! Thank you for sharing. My goal is to write a script to transform my phd thesis (huge latex) to a nice web site like mkdocs
I've wrote this little loop to visualize how to expand the tree. It can expand the Args recursively into other nodes (in case Args are also valid latex expression as in the following example).
This example outputs:
Although I finally succeed in making this script run, I'm still confused about the differences between :
descendants
,contents
,children
. Would you mind adding a little explanation in the help ? It could improve the usability of this great tool for others.Thanks ! Lionel