Closed willsower closed 3 years ago
1 is now fixed at least in cells.tex. Basically TexSoup wasn't expecting any [...] type arguments to be anywhere except the first argument, so I included a regex that now manually pushes all arguments together if they're separated by whitespace. I'll be interested to see if this causes different problems down the line, but I can't really think of a case where whitespace needs to be between args.
4. Line in \% breaks
+ Completed!
Example Document: hyper.tex
This line in 344
Same problem happens in gameon.tex
This echo has a maximum efficiency of $54\%$
EOFError: [Line: 0, Offset: 2335] "$" env expecting $. Reached end of file.
Solution: Get rid of \%
combo in both mathmode AND regular LaTeX. (I tested to see if \%
would break outside of mathmode and it DOES)
4 is now fixed, tested in gameon.tex
file. Essentially the fix was in the format_master_files.py
when we are copying charachter by characther into the second file (we did this due to input file stuff), we check if there is \%
occurence command. If so just replace this with percentage
word.
1 is now fixed at least in cells.tex. Basically TexSoup wasn't expecting any [...] type arguments to be anywhere except the first argument, so I included a regex that now manually pushes all arguments together if they're separated by whitespace. I'll be interested to see if this causes different problems down the line, but I can't really think of a case where whitespace needs to be between args.
1. \newcommand makes errors when it has \newcommand{}[]{} instead of \newcommand{}{}
+ Completed!
Example Document: cells.tex
This is fine:
\newcommand{\con} {{\rm config}}
\newcommand{\Con} {{\rm Config}}
\newcommand{\Pj} {{\mathbb P}}
Not fine:
\newcommand{\M} [1] {\ensuremath{{\overline{\mathcal M}}{^{#1}_0(\R)}}}
\newcommand{\Cobnd} [2] {{\ensuremath{\Lambda^n(#1,#2)}}}
\newcommand{\Lc} [1] {{\mathcal {C}}(#1)}
Error: IndexError: list index out of range
Solution: Currently pushing args seperated by whitespace together seems to fix this issue, FURTHER TESTING REQUIRED
2. This math equation inside the \footer{} errors
Solution: Need to discuss ? Remove matmode from footer??
Note: Math equations work fine within \caption tag (look at cells.tex at line 822-ish)
3. Line in \bibitem breaks
Solution: Need to discuss ? Remove \ that have a white character before and after? When I removed the two \ after J. and After Phys. program ran just fine. However other liens with random \ work fine...
5. AssertionError Mathmode
Solution: Read next one down for solution
6. AssertionError Mathmode READ (Similiar to #5 Above)
Solution: Replace
\begin{equation} \end{equation}
with$
. For some reason, when I tried that, it worked! It also works for the issue in the assertion error above. I'm unsure if there may be other problems here though...7. Attribute Error: Mathmode
Solution: I don't understand the problem really...
8. Def / Newcommand
Solution: Need to discuss. This is 20% of the unique errors in our error log, they all are "reached end of file." Is it possible to do the def stuff before it reaches TexParser? I don't know how def works 100%
9. Need Newline
10. Index out of range
Solution: Need to discuss