texstudio-org / texstudio

TeXstudio is a fully featured LaTeX editor. Our goal is to make writing LaTeX documents as easy and comfortable as possible.
http://www.texstudio.org/
GNU General Public License v3.0
2.69k stars 345 forks source link

LanguageTool flag errors inside maths #1154

Open ElieGouzien opened 4 years ago

ElieGouzien commented 4 years ago

Environment

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 commented 3 years ago

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

ElieGouzien commented 3 years ago

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

SouKot commented 2 years ago

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

DanieLoche commented 2 years ago

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{.