I am a LaTeX user with moderate experience. However, I am trying to create my own .cls file for the first time. I would like to produce a header in a similar fashion to how title is produced in article class. Something along the following lines.
\documentclass{MyResume}
\name{Your Name}
\phone{281038901}
\email{xyz@example.com}
\begin{document}
\maketitlebox
\end{document}
I know the basics of how to use \newcommands to define these. But, I am not able to figure out how to access values of the fields like \name, \phone inside the definition of \headerbox.
\newcommand\name[1]{\gdef\rajvi@name{#1}}and then uses\rajvi@namewhen the actual name is needed;rajvistands for the prefix you'll be using for the macros in your class. – egreg Jun 23 '13 at 09:20