jupyterlab-contrib / spellchecker

Spellchecker for JupyterLab notebook markdown cells and file editor.
BSD 3-Clause "New" or "Revised" License
205 stars 20 forks source link

Allow spellchecker for latex (.tex) files #102

Closed jfrob27 closed 1 year ago

jfrob27 commented 2 years ago

Hi, I use jupyter lab for coding and writing latex documents. It would be wonderful if we could activate spellchecker in .tex files opened in jupyter lab.

krassowski commented 2 years ago

You can already do that. Just go to Settings (/Advanced Settings Editor) -> Spellchecker and change mimeTypes to include latex. I tested that the following works for .tex files in JupyterLab 3.2:

{
    "mimeTypes": [
        "text/plain",
        "text/x-ipythongfm",
        "text/x-latex"
    ],
}

Ideally we would provide a list of mime types in to choose from. This would be a nice enhancment.

jfrob27 commented 2 years ago

Great! I was suspecting a trick like this, but I did not know how to do it. Many thanks!