# What package or class defines an \email macro?

A colleague sent to me a manuscript written in Ubuntu. I am using Mac OS X Snow Leopard and I only have trouble when I compile the document due to the latex command \email. It seems it is not recognised. What package should I install or what else should I do?

• You need to provide the right details to get help (and to write a good question). Could you please provide a minimal working example and the error you get when you compile the document.
– N.N.
Jun 15 '11 at 12:11
• Try putting \show\email\def\email#1{\relax} before the first occurrence of \email and see if you can now compile, and tell us what Latex tells you about the contents of \email. This isn't a solution but a diagnostic, since it throws away information. Jun 15 '11 at 12:13
• moderncv defines \email at least the newer versions of it do... Jul 22 '11 at 10:46

I know that \email is defined in lettre.cls the french version of letter.cls but this macro is perhaps defined in another class or package

Very Simple Solution

All you need is just define \email in your preamble as follows

\documentclass{report}


which defines your desired email format: monofont space, hyperlink to mail directly. you can then use the command \email, for example:

\email{anyone@anywhere.com}


N.B. Sometimes \email command is reserved in the class you using for any reason, you can change it to anything else, e.g. \emailf, \emaill, ... etc.

The AMS document classes (amsart and amsbook) define the \email command.

Extrapolating from your last question, the llncs class has a email macro. In the preamble, use it like this:

\documentclass{llncs}
...
\author{First Author}
\institute{
Example Institute,

• @Corentin ??? Read the title of this question, and my answer again. The llncs class provides an \email macro, I mean, it does!