[Tex/LaTex] Adding more than one author with different affiliation

authblktitles

My goal is adding more than one author with different affiliations, it will look like something:

Author A, Author B, Author C, Author D and Author E
       A,B,C Department of Computer Science
      D,E Department of Mechanical Engineering
         Email A,B,C,D,E @university.edu
                 Latex University

is that possible to do it without using any packages, if not packages are welcome.

Thanks

Edit:
i came up with Thorsten Donig's solution however i have the problem of symbols that appear weirdly.

enter image description here

Best Answer

A short example with the authblk package. It is not exactly what you are looking for, but comes quite close.

\documentclass[11pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{authblk}

\title{More than one Author with different Affiliations}
\author[1]{Author A\thanks{A.A@university.edu}}
\author[1]{Author B\thanks{B.B@university.edu}}
\author[1]{Author C\thanks{C.C@university.edu}}
\author[2]{Author D\thanks{D.D@university.edu}}
\author[2]{Author E\thanks{E.E@university.edu}}
\affil[1]{Department of Computer Science, \LaTeX\ University}
\affil[2]{Department of Mechanical Engineering, \LaTeX\ University}

\renewcommand\Authands{ and }

\begin{document}
  \maketitle
\end{document}

 *File List*
 article.cls    2007/10/19 v1.4h Standard LaTeX document class
  size11.clo    2007/10/19 v1.4h Standard LaTeX file (size option)
 fontenc.sty
   t1enc.def    2005/09/27 v1.99g Standard LaTeX file
inputenc.sty    2008/03/30 v1.1d Input encoding file
    utf8.def    2008/04/05 v1.1m UTF-8 support for inputenc
   t1enc.dfu    2008/04/05 v1.1m UTF-8 support for inputenc
  ot1enc.dfu    2008/04/05 v1.1m UTF-8 support for inputenc
  omsenc.dfu    2008/04/05 v1.1m UTF-8 support for inputenc
 authblk.sty    2009/11/18 1.3 (PWD)
 ***********

enter image description here