Conversation
We have LaTex that intersperses text into mathematical expressions. We want to be able to parse the LaTeX to math and just ignore thes commands. This commit adds text as a whitespace rule.
|
Do you have any ideas how to modify the regular expression to match all of "\text{multiple {words} here}"? One probably would not encounter that frequently, but I did notice that it would stop at the first "}" in the above example. I'm wondering if one might need to actually parse the \text to match the braces. @kisonecat, any opinion on dealing with the case of braces within the \text? |
|
any further thoughts on this @dqnykamp ? |
|
I played around with the idea of having |
We have LaTex that intersperses text into mathematical expressions. We
want to be able to parse the LaTeX to math and just ignore thes
commands. This commit adds text as a whitespace rule.
I'm new to this lib so this may be a fairly naive approach - happy for feedback.