16

I am looking for English grammar checker for vim-latex suite that checks the grammar as I type but does not highlight what's inside $$ or \begin{equation} & \end{equation} commands. Is there any such a thing?

I know that there is a LanguageTool but it seems that it does not work with .tex file.

1
  • 1
    Can you post a simple example document which doesn't work well with TeX? Adding a basic equation doesn't seem to give any problems. Apr 28, 2015 at 15:12

2 Answers 2

2

vim-latexsuite is a very good addition for writing LaTeX documents and will handle spell checking as you want it to. Meaning, ignore equasions in spell checking and it also does a lot of other great stuff.

1
  • thanks for the answer, but I already knew that and I already have that.
    – Tom
    Oct 19, 2015 at 22:32
0

I found the ultimate solution. vimtex with language tools using YaLafi . See the vim section of Yalafi's github page!!

Unlike above solution, you can also perform grammar check using LanguageTools, which is the solution which I wanted in the first place.

It rips the equations and characters from the current tex file and performs spell and grammar check using standalone language tools. You can even set your own replacing rules such that non-trivial names or sets of text can be replaced to common names like "John" or "Law" so that Language tools won't get confused with field-specific terms that aren't supported.

3
  • 1
    More detail would certainly improve this answer
    – D. Ben Knoble
    Nov 10, 2021 at 18:56
  • What kind of detail you want?? Everything is written on YaLafi's documentation. I'm not a developer of YaLafi, so I can't add anything more useful to this answer.
    – Tom
    Nov 10, 2021 at 21:15
  • 1
    Well, we generally like answers to be self-contained with links as support. That means the main content of the answer should be, well, in the answer. So mentioning what YaLafi is might be good. Also on a separate note, you could explain how to use vimtex with YaLafi (you don't have to cover installation unless there are tricky steps, but it would be nice to cover keybindings/commands/whatever you need to know to use it regularly).
    – D. Ben Knoble
    Nov 10, 2021 at 21:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.