Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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
3  
What happens if you write \show\name somewhere in your document? –  Loop Space Oct 28 '10 at 10:41
add comment

2 Answers

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
add comment

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
add comment

Your Answer

 
discard

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.