[Tex/LaTex] Add affiliations to the authors’ name in the article class

article

I am using the \documentclass{article} to write an article. how can I add the affiliation to the author's name like the following picture?

enter image description here

And, this document class has a date under the names. Can I omit it?

Best Answer

Using authblk maybe it's better to do something like:

\documentclass{article}
\usepackage{authblk}
\title{This is some thing}
\author[1]{Don Joe}
\author[2]{Smith K.}
\author[1]{Wanderer}
\author[1]{Static}
\affil[1]{TeX.SX}
\affil[2]{Both on a bus}
\date{}                     %% if you don't need date to appear
\setcounter{Maxaffil}{0}
\renewcommand\Affilfont{\itshape\small}
\begin{document}
  \maketitle
\end{document}

This way, you can mix affiliations.