[Tex/LaTex] Author’s affiliation at the end of the article with the article class

affiliationamsartarticleauthblkformatting

I'm looking for a good way how to put the affiliation on the last page after all the text, using the document class article. For instance, in the document class amsart this option is realized by default.

The minimal working example for the document class article is the following:

\documentclass{article}
\usepackage{authblk}

\title{The title}

\author{Author A\thanks{email@Author.A}}
\affil{Addresses of Author A}

\usepackage{lipsum}
\begin{document}
\maketitle
\lipsum[1]
\end{document}

And it produces something like that:

enter image description here

The minimal working example for the document class amsart is the following:

\documentclass{amsart}

\title{The title}

\author{Author A}
\address{Addresses of Author A}
\email{email@Author.A}

\usepackage{lipsum}
\begin{document}
\maketitle
\lipsum[1]
\end{document}

And it produce something that looks like I want to:

enter image description here

Best Answer

Here's a slightly different way to do it:

\documentclass{article}
\usepackage{url}
\makeatletter
\newcommand{\address}[1]{\gdef\@address{#1}}
\newcommand{\email}[1]{\gdef\@email{\url{#1}}}
\newcommand{\@endstuff}{\par\vspace{\baselineskip}\noindent\small
\begin{tabular}{@{}l}\scshape\@address\\\textit{E-mail address:} \@email\end{tabular}}
\AtEndDocument{\@endstuff}
\makeatother
\title{A title}
\author{Author A}
\address{Addresses of Author A}
\email{email@Author.A}
\usepackage{lipsum}
\begin{document}
\maketitle
\lipsum[1]
\end{document}

output of code

Related Question