I don't know where to start for this but I've been looking around and asking and I think i'm supposed to use tokenizers.
The rules I have to follow are:
1. Remove all commands backslash followed one or more lowercase letters and terminated with a blank.
2. Remove all braces: } or {.
3. Substitute all math display (characters in between $), by the words FORMULA 1
, FORMULA 2 etc...
4. The environment ( a special command) .
\begin{enumerat e}
\item First item, \fer and only this.
\item Second line \iterate and maybe more. \item Third.
...
\end{enumerate}
puts everything between backslash item in a new paragraph with a number. So the
above should look:
1. First item and only this.
2. Second line and maybe more.
3. Third.
The rules I have to follow are:
1. Remove all commands backslash followed one or more lowercase letters and terminated with a blank.
2. Remove all braces: } or {.
3. Substitute all math display (characters in between $), by the words FORMULA 1
, FORMULA 2 etc...
4. The environment ( a special command) .
\begin{enumerat e}
\item First item, \fer and only this.
\item Second line \iterate and maybe more. \item Third.
...
\end{enumerate}
puts everything between backslash item in a new paragraph with a number. So the
above should look:
1. First item and only this.
2. Second line and maybe more.
3. Third.
Comment