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

LanguageTool flag errors inside maths #1154

Open
ElieGouzien opened this issue Jul 1, 2020 · 4 comments
Open

LanguageTool flag errors inside maths #1154

ElieGouzien opened this issue Jul 1, 2020 · 4 comments

Comments

@ElieGouzien
Copy link
Contributor

Environment

  • TeXstudio: master (problem don't exist with last stable release)
  • OS: GNU/Linux
  • LanguageTool: 4.8

Expected behaviour

No spell/grammar check for maths (except when text inside maths).

Actual behaviour

Maths get checked by LanguageTool, and part are flags as errors.

For instance, all signs for subscript or superscript (_ and ^) are marked as errors when language set to French.
Minus signs (-) are marked as errors in English.
Grammar errors also appear (for instance, start a sentence with some inline maths and it will indicate that we should start it with capital letter).

How to reproduce

Writing maths with LanguageTool activated.

Affects both inline and display mathematical environments.

@sunderme
Copy link
Member

there seems to be no easy solution, so that may take a while

@ElieGouzien
Copy link
Contributor Author

One remark, there is also LangugageTool checks for tikz node names, and path separations (--).

@SouKot
Copy link

SouKot commented Oct 5, 2021

Would you please have a look at textidote? As far as I understood, it tries to solve a similar problem.

@DanLo-peratingSystem
Copy link

Similarly I just notice another similar error with Latex formulas with apostrophes.
Here's an example... should be way simpler to explain :
image

I don't know why but Language Tool says the ' is missing. Using the suggested correction it simply deleted \textbf{.

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

4 participants