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

I am trying to customize an article class for my needs. I want to access \email{} in my class but without any success.

This is my \maketitlepage section in cls file,

\textsc{\LARGE University name}\\[1.0cm]
 \textsc{\Large Institute of Something}\\[0.5cm]
 \HRule \\[0.4cm]    
  {\huge \bfseries\@title \\[0.4cm]}

  \HRule \\[1.5cm]    
  {\large \@date}     

I also defined \email to be (took it from lncs.cls):

\def \email#1{{\tt#1}}

After using this in my article as \email{john.doe@email.com} the email is shown on the top of the titlepage, instead of the place where it should land.

I am quite new to creating own classes.

share|improve this question
The LaTeX kernel doesn't define \email, so there is no \@email 'out of the box'. Are you perhaps looking to define \@email (e.g. \newcommand{\email}[1]{\def\@email{#1}} then use it where it should be printed? – Joseph Wright Sep 5 '13 at 12:53
You need to do \def\email#1{\def\@email{#1}}. {\tt#1} simply typesets the argument. – Qrrbrbirlbel Sep 5 '13 at 12:54
@JosephWright exactly I want to define it and use it. – tdi Sep 5 '13 at 12:58
up vote 6 down vote accepted

The LaTeX kernel defines only \author, \title and \date for saving 'meta data', for example


which therefore stores the author list as \@author for later use. Thus you can set up \email in the same way


You can then use the e-mail address(es) using \@email. I would not just use \tt: quite apart from anything else, it is deprecated in favour of \texttt/\ttfamily. Probably you are best using the \url package, e.g.





share|improve this answer

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.