New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warnings about vertical bars in $q_{A|A}$ #899
Comments
Thanks for the report @evoludolab . This should be a mostly harmless math parsing failure - the final presentation of the formula should still be quite accurate given the example. But good to know, could be an easy upgrade when we revisit the grammar for some upgrades. |
Ah, vertbar! The "|" is such great fun from a parsing perspective! Grammatically, it can appear as an open or close delimiter, and as infix. Moreover, it can be doubled, in which case still be infix, but only a doubled close should match a doubled open. And of course the semantics (for each case) are all over the map. LaTeXML's grammar (I think) should be able to recognize this case, but I expect that it gets hung up not being able to backtrack correctly. Hopefully we'll be able to move to a more powerful parsing infrastructure that will deal with this (someday... ). In any case, the conversion to MathML should fallback fairly cleanly, so it's pretty much an ignorable problem, unless you're trying to get the purest semantics out. |
This one annoyed me since the syntax looks so simple --- although the syntax of conditional probability is a bit more than just infix. So, I spent some time working on the grammar, hopefully without messing up the various other uses of "|". So this should parse without gratuitous warnings. Thanks for the report! |
lateXML issues some spurious (?) warnings about vertical bars when processing mathematical expressions. For example, processing an expression for conditional probabilities,
$q_{A|A}$
, results inbut the final output is fine. Thus, this problem seems merely a cosmetic issue.
Looking into the code it seemed to me that lateXML was expecting a second vertical bar as in an expression for an absolute value or norm but did not like the isolated, but perfectly reasonable, occurrence of a single vertical bar.
The text was updated successfully, but these errors were encountered: