7

It is well-known that the argument of certain commands (label, ref, cite are typical examples) almost never make any sense in LaTeX, and should be hence avoided when spell checking is performed.

I have found examples for environments where it is not working (TeXMaker), and instances where it seems to work (kile, TeXlipse).

However, I simply wasn't able to get any information about this problem in TeXnicCenter!

So the question is: is it somehow possible to perform spell checking in TeXnicCenter with the arguments of these commands ignored?

1 Answers1

3

You can set your preferences by going to Tools/options/spelling and then you'll find some checkboxes and select the ones you want to ignore.

The menu looks like this:

enter image description here

For more information on these options and others, please visit the TeXnic Center's options documentation

However, please bear in mind that ---as stated in the documentation---, the argument of the command is always spell-checked, and not the command itself.

Furthermore, if you wish to include this feature for specific commands (such as \label and \ref) in future TeXnicCenter versions, please add your recommendation in the TeXnicCenter Feature Request Page

Nevertheless, there is kind of a workaround: as you can see in the picture attached, you can ignore things with numbers and/or uppercase... so you can always use numbers and/or uppercase for the arguments of \label and \ref and \cite.

Mario S. E.
  • 18,609
  • Would you add a screen shot? – egreg Apr 14 '13 at 09:07
  • This doesn't work in all cases. The values in \begin{} and \end{}, for example, are still marked as a spelling error. Or self defined node names in TikZ pictures. Or \label{}. But I think this can only be fixed by the author of the program in a new release. – Foo Bar Apr 14 '13 at 09:09
  • Well, I did exactly this, but it didn't help at all (not even for label, ref etc.!): http://i.imgur.com/dATPqwb.jpg – Tamas Ferenci Apr 14 '13 at 09:12
  • As stated in the documentation (see link in answer), the argument of the command is always spell-checked, it is the command itself that is not – Mario S. E. Apr 14 '13 at 09:13
  • That's exactly my problem! That is not logical. The command itself is avoided (which is good!), but I think the argument should also be ignored! (As it is done in many other cases as well, see the examples I linked.) – Tamas Ferenci Apr 14 '13 at 09:16
  • Well @TamasFerenci, I think that depends how you see it. For example, wouldn't you like your argument in a \caption, \section, \title, etc. to be spell checked? – Mario S. E. Apr 14 '13 at 09:18
  • But checking \ref and \label doesn't make much sense, because it will always be "gibberish" (according to a spell checker). – Foo Bar Apr 14 '13 at 09:20
  • 2
    I agrre with you @FooBar, but I think that'll have to be something to feature request for the next version. I'm updating my answer to include what we just talked – Mario S. E. Apr 14 '13 at 09:33
  • @Mario S. E.: Sure! But not the argument of label, ref and cite. These should be handled separately, and the arguments of the latter should be avoided. This would be logical in my opinion! – Tamas Ferenci Apr 14 '13 at 10:26
  • @MarioS.E. I took the liberty of highlighting the part of your answer that directly answers the question asked. – doncherry Apr 14 '13 at 16:21
  • Yes, that highlighted part is the actual answer to my question. At least if this implies that there is not even a workaround to this problem. (I.e. it is not only impossible through the Options/Spelling, but it is impossible generally.)If so, I'll accept this answer (and I have posted a feature request as well, as you suggested). – Tamas Ferenci Apr 14 '13 at 18:10
  • @TamasFerenci, well, there is kind of a workaround: as you can see in the picture attached, you can ignore things with numbers and/or uppercase... so you can always use numbers and/or uppercase for the arguments of \label and \ref and \cite – Mario S. E. Apr 14 '13 at 20:19
  • @Mario S. E., that's a good idea indeed! I haven't thought of that, despite the fact that it is absolutely logical. Although... I'd prefer not using numbers or uppercases only as labels, but I accept that this is the best that we can do right now. I've uploaded a feature request (as you suggested), and I accept your answer! – Tamas Ferenci Apr 22 '13 at 06:24