\documentclass{article}

\usepackage{graphicx}
% \usepackage{pdfpages}
\usepackage{fancyhdr}

\makeindex{}

\makeatletter
\textheight 625pt
\textwidth 460pt
\oddsidemargin 0pt
\evensidemargin 0pt
\marginparwidth 50pt
\topmargin 0pt
\brokenpenalty=10000

% Makes fancy headings and footers.
\pagestyle{fancy}

\fancyhf{} % Clears all fields.

\lhead{\scshape Doe et al., 2015}
\rhead{\scshape \nouppercase{\rightmark}}   %
\fancyfoot[C]{\bfseries \thepage{}}

\renewcommand{\headrulewidth}{0pt}    %
\renewcommand{\footrulewidth}{0pt}    %

\renewcommand{\sectionmark}[1]{%
  \markright{\thesection. \MakeLowercase{#1}}}
\renewcommand{\subsectionmark}[1]{}

\fancypagestyle{firststyle}
{
   \fancyhf{}
   \fancyhead[C]{Original version at \tt http://iram-institute.org/medias/uploads/memo-template.pdf}
   \fancyfoot[C]{\bfseries \thepage{}}
}

\newcommand{\ie} {{\em i.e.}}
\newcommand{\eg} {{\em e.g.}}
\newcommand{\cf} {cf.}

\newcommand{\gildas} {\mbox {\bf GILDAS}}
\newcommand{\sic}    {\mbox {\bf SIC}}
\newcommand{\greg}   {\mbox {\bf GREG}}
\newcommand{\class}  {\mbox {\bf CLASS}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}

\thispagestyle{firststyle}

\begin{center}
    \includegraphics[width=5cm]{gildas-logo}\\[2\bigskipamount]
  \huge{}
  IRAM Memo 2016-X\\
  Memo template\\[3\bigskipamount]
  \large{}
  J. Doe$^1$, S. Else$^2$\\[0.5cm]
  1. IRAM (Grenoble)\\
  2. ABCD (Elsewhere)\\[\bigskipamount]
  \normalsize{}
  September, 19$^{th}$ 2016\\
  Version 1.0
\end{center}

\begin{abstract}

  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non
  risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing
  nec, ultricies sed, dolor. Cras elementum ultrices diam. Maecenas
  ligula massa, varius a, semper congue, euismod non, mi. Proin
  porttitor, orci nec nonummy molestie, enim est eleifend mi, non
  fermentum diam nisl sit amet erat. Duis semper. Duis arcu massa,
  scelerisque vitae, consequat in, pretium a, enim. Pellentesque
  congue. Ut in risus volutpat libero pharetra tempor.\\

  Keywords: foo, bar

  Related documents: that documentation, that other one too.
\end{abstract}

\newpage{}
\tableofcontents{}

\newpage{}

\section{A first section}

\subsection{A subsection}

Cras vestibulum bibendum augue. Praesent egestas leo in pede. Praesent
blandit odio eu enim. Pellentesque sed dui ut augue blandit
sodales. Vestibulum ante ipsum primis in faucibus orci luctus et
ultrices posuere cubilia Curae; Aliquam nibh. Mauris ac mauris sed
pede pellentesque fermentum. Maecenas adipiscing ante non diam sodales
hendrerit.

\section{Another section}

Ut velit mauris, egestas sed, gravida nec, ornare ut, mi. Aenean ut
orci vel massa suscipit pulvinar. Nulla sollicitudin. Fusce varius,
ligula non tempus aliquam, nunc turpis ullamcorper nibh, in tempus
sapien eros vitae ligula. Pellentesque rhoncus nunc et augue. Integer
id felis. Curabitur aliquet pellentesque diam. Integer quis metus
vitae elit lobortis egestas. Lorem ipsum dolor sit amet, consectetuer
adipiscing elit. Morbi vel erat non mauris convallis vehicula. Nulla
et sapien. Integer tortor tellus, aliquam faucibus, convallis id,
congue eu, quam. Mauris ullamcorper felis vitae erat. Proin feugiat,
augue non elementum posuere, metus purus iaculis lectus, et tristique
ligula justo vitae magna.

Aliquam convallis sollicitudin purus. Praesent aliquam, enim at
fermentum mollis, ligula massa adipiscing nisl, ac euismod nibh nisl
eu lectus. Fusce vulputate sem at sapien. Vivamus leo. Aliquam euismod
libero eu enim. Nulla nec felis sed leo placerat imperdiet. Aenean
suscipit nulla in justo. Suspendisse cursus rutrum augue. Nulla
tincidunt tincidunt mi. Curabitur iaculis, lorem vel rhoncus faucibus,
felis magna fermentum augue, et ultricies lacus lorem varius
purus. Curabitur eu amet.

\end{document}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
