Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo


#130 Spellchecker should ignore words in brackets

Ulrik Stervbo

In a latex file, being the preamble or the document
environment, words in brackets (the { and }'s) rarely
makes any sense in terms of proper spelling. Since
noone can possible forsee *all* words which may turn up
between {}, they should be ignored all together - lack
of compilation or unexpected formating results in the
final document will be enough.

The annoyance of a spellchecker to pickup words which
clearly are not ment ot be checked in the first place,
will lead to a userdic-file with words which may be
misspelled outside the context of latex commands.



  • Ulrik Stervbo
    Ulrik Stervbo

    Logged In: YES

    Well after spending a sleepless night pondering upon the
    spellchecker problem :-D I've realized that things like
    chapter titles and captions would be ignorred too.

    The solution to this problem could be an exception list - it
    wouldnt be that big, theres only a (rather large) handfull
    of textformatting commands (the doc.layout part -> subpar,
    captions, and a few more), but would we end up with the
    reverse version of the useless userdic? And what about
    performance issues?

    Any suggestions?

  • Willem Duminy
    Willem Duminy

    Logged In: YES

    Instead of using brackets as the scope, consider using
    commands. One can start with commands like \cite{} and
    \ref{}. A predefined and user-extendable no-language
    command list would be very helpful.

  • Tino Weinkauf
    Tino Weinkauf

    Logged In: YES

    Other users wrote concerning this topic:

    When one checks "Checks spelling while typing", it would
    be nice to have an option like "ignore text inside
    brackets", so that file names, labels, etc are not
    highlighted as being wrongly spelled.

    In my opinion this feature is not really useful in all
    cases. I really want to check words e.g. in \section{}, and
    even if I have some macros that contains useful texts, I
    want them to be checked. What can be do is to define those
    command where the checking should be skipped (e.g. \input{}

    Note: Don't expect an early implementation of this feature.


  • Anonymous

    The spell checking really is mostly unuseable in the present state.

    But all that is needed, as mentioned before, is a list of commands (\usepackage{}, \includegraphics{}, \label{}, \ref{}, \cite{} and very few more) where everything that appears in the brackets behind is not checked. Add an option to skip inline math ($ \rho = ... $), and everything should be fine.

    It´d of course be good if the list of commands to skip was user-defineable.



Cancel   Add attachments