-
Notifications
You must be signed in to change notification settings - Fork 11
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
Adding backslash to keywords outside of math mode #7
Comments
For this to work, blacktex will have to be a LaTeX parser which is way to complex for a package like this. We can use heuristics though which work in most of the cases. The heuristic for keywords like |
This is true, it's up to you of course. Just thought I would mention this behaviour as it can lead to LaTeX that has errors |
If you show me the snippet of code that produced the false positive, I can try and fix that case. |
An example of this would be |
Yeah, this is a tough one. The regex is to add a backslash if |
This program adds a backslash to keywords such as min and max, however, this only works inside of math mode as \min is not valid outside of it. To fix this problem, it should be detected if the keyword is in math mode, and if it is, then do the same as it currently does, but if the keyword is not in math mode, then the characters to put the keyword into math mode should be inserted
The text was updated successfully, but these errors were encountered: