Graphics as author name in LaTeX

A method that doesn't work

Many who tried to include graphics as author name in LaTeX file may have tried this and found that it doesn't work:

%   :
\usepackage{graphicx}
%   :
\begin{document}
%   :
\author
{
  \includegraphics[height=1em]{ps/mylogo.gz}
  MyName
  \and
  YourName
}

A solution

A solution to the problem is to use a savebox:

%   :
\usepackage{graphicx}
%   :
%   :
%%%
%%% Including graphics in author names
%%%
\newsavebox{\MyLogo}
\savebox{\MyLogo}{\includegraphics[height=1em]{ps/mylogo.gz}}
%   :
\begin{document}
%   :
\author
{
  \usebox{\MyLogo}
  MyName
  \and
  YourName
}