texstudio icon indicating copy to clipboard operation
texstudio copied to clipboard

LanguageTool flag errors inside maths

Open ElieGouzien opened this issue 5 years ago • 4 comments

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.

ElieGouzien avatar Jul 01 '20 17:07 ElieGouzien

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

sunderme avatar Jul 10 '20 16:07 sunderme

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

ElieGouzien avatar Oct 22 '20 08:10 ElieGouzien

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

SouKot avatar Oct 05 '21 18:10 SouKot

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

DanLo-peratingSystem avatar Feb 06 '22 13:02 DanLo-peratingSystem