Skip to content
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

Check if variables are used in math mode #20

Open
hofbi opened this issue May 26, 2020 · 2 comments
Open

Check if variables are used in math mode #20

hofbi opened this issue May 26, 2020 · 2 comments

Comments

@hofbi
Copy link
Contributor

hofbi commented May 26, 2020

Another useful check for the TeX checker would be to identify variables which are used in the text but not in math mode ($variable$). This mainly happens if variables don't have a subscript or superscript and are just a single character.

@hofbi hofbi changed the title Check if variables are in italic Check if variables are used in math mode May 26, 2020
@emareg
Copy link
Owner

emareg commented Feb 10, 2021

Can you give an example that could be detected? I think simple one letter variables would produce more false positives than correct hits.

@hofbi
Copy link
Contributor Author

hofbi commented Feb 10, 2021

Not entirely sure what was the example that led to this issue. But now rethinking this I could imagine the following initial solution:

  • We parse all equations/math mode parts and identify the variables and add them to a set
  • Then we check if those variables occur as regular words

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants