Skip to content
This repository has been archived by the owner on Apr 16, 2018. It is now read-only.

spell checker for latex (and worksheets in general) #50

Open
haraldschilly opened this issue Oct 11, 2013 · 7 comments
Open

spell checker for latex (and worksheets in general) #50

haraldschilly opened this issue Oct 11, 2013 · 7 comments

Comments

@haraldschilly
Copy link
Member

There is no spellchecker for LaTeX documents.

As a workaround, I also tried if the browser-based spellchecker could be enabled, but it doesn't work either (in FF).

Possible implementation:

  1. run content through aspell in non-interactive mode.
    • -t is for latex files
    • -d [lang-code] can be used to select the language. (right now, no language packs are installed)
    • cat <file>.tex | aspell -a -t gives a sensible list which can be used to give suggestions, would require work on the ui, etc.
  2. Somehow fix up the editor in a way, that the native spellchecker of the browser works.
@haraldschilly
Copy link
Member Author

Best workaround: $ aspell -t -c <filename.tex and use i, a and the numbers to go through the file.

@haraldschilly
Copy link
Member Author

Comments by Jason

  • luatex?
  • run on syncfile?
  • typo.js

@swenson
Copy link

swenson commented Dec 28, 2013

I've had pretty good luck with getting typo.js to work (with the ACE editor, for example: https://github.com/swenson/ace_spell_check_js)

@williamstein
Copy link
Contributor

There is now a spell checker integrated into the latex editor. It underlines badly spelled words on save. It does not currently offer alternatives, but it will later. I'll leave this ticket opened until:

  • alternative spellings
  • straightforward way to customize the dictionary

@pbeltran
Copy link

pbeltran commented Nov 9, 2014

Is it possible to enable/disable the spell checking? I mean, it's a wonderful feature, but almost everything inside a sagetex environment is marked in that red lines.

@haraldschilly
Copy link
Member Author

@pbeltran add %sagemathcloud={"lang":"disable"} at the bottom of the *.tex document.

@pbeltran
Copy link

pbeltran commented Nov 9, 2014

Thanks @haraldschilly

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

No branches or pull requests

4 participants