gerby-project / plastex

Python package to convert LaTeX markup to DOM
Other
14 stars 12 forks source link

Parsing issue in tag 08D0 #20

Closed pbelmans closed 7 years ago

pbelmans commented 7 years ago

It looks like plasTeX is spewing out Unicode things again, not sure what triggered it this time.

pbelmans commented 7 years ago

Likewise on 03V7.

chngr commented 7 years ago

I don't see these problems either on my build or Mercer. Can you drop the offending LaTeX code here?

pbelmans commented 7 years ago

Yes, I agree there is probably something wrong with versions on my side. Tomorrow I'll start from a clean slate.

pbelmans commented 7 years ago

Following my own instructions, with the version of plasTeX currently in the repository, I still get these errors. There must be something off with my configuration though, but I can't figure out what...

So on tag 03V7 the issue is the second equation, i.e. the one after "Applying Theorem [...]". The determinant is dropped from the Unicode output, and so is the entire second line (except for the equals sign and the dot.

But the reason why this showed up in the headless browser test is because in the paragraph labelled Projective case there is a Misplaced & MathJax error.

chngr commented 7 years ago

I see! In your instructions, you do not include \usepackage{amsmath} in the preamble! This is probably the root of many of these problems. For example, the \begin{matrix} ... \end{matrix} environment is defined in amsmath, so plasTeX is confused without it. (I think the reason why it has the strange behaviour is because matrix does mean something even in LaTeX, but it's not what you expect.)

My previous runs have been based on running plasTeX in which I followed your instructions in modifying book.tex, PLUS including \usepackage{amsmath} in the preamble. In those cases, there were no errors. I have recreated my database tonight without the amsmath package and have been able to replicate your errors (and many more!).

pbelmans commented 7 years ago

Phew, I'm glad it's just such a silly mistake on my behalf :). I'll fix the instructions, and rerun things on my side.

pbelmans commented 7 years ago

I just tested, all is well. Sorry for all the confusion!