TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is anyone familiar with the macro \name{}? The AucTeX configuration uses it to avoid spell-checking people names, but it does not seem to be defined. Is it just a mock macro, or it has some real usage somewhere?

share|improve this question
What happens if you write \show\name somewhere in your document? – Loop Space Oct 28 '10 at 10:41
up vote 4 down vote accepted

The answer depends on your preamble. For example, the letter class and many of its derivatives (extletter, akletter, chletter, etc.) define it as a macro to be used like \title: you put \name{You Name} somewhere in the preamble, and then Your Name is used at the appropriate place in the document.

Other classes and packages define it another way.

share|improve this answer
Figures that's right - This macro probably comes from the letter document class. However, it is useful for spell-checking, as Charles describes. – Little Bobby Tables Oct 28 '10 at 15:41

When you wrote The AucTeX configuration uses it to avoid spell-checking people names, I think you answered your own question. I've never heard of Auctex recognition of a \name macro before: where did you find it? It is not in the default ispell-tex-skip-alist Emacs variable on my setup, so it needs to be especially set up to do that.

In any case, the contents of Latex variables will never be defined by Auctex, since Auctex's job is just as an editor. To use this macro you will usually have to insert something like \let\name=\relax, unless the macro is defined in the right way in one of your class or package files — I suppose there might be one that does that. And if it has not been so configured, to tell Ispell not to worry about the spelling of people's names you need to add ("\\\\name" ispell-tex-arg-end 1) to the contents of the ispell-tex-skip-alist Emacs alist.

share|improve this answer
Thanks, Charles! mpg probably got the right answer, but your solution for spell-checking is useful. – Little Bobby Tables Oct 28 '10 at 15:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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