\documentclass[a4paper]{article}
%\usepackage{fixltx2e} % LaTeX patches, \textsubscript
%\usepackage{cmap} % fix search and cut-and-paste in Acrobat
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{mathptmx} % Times
\usepackage[scaled=.90]{helvet}
\usepackage{courier}
\usepackage[margin=0.5in]{geometry}
\usepackage{xcolor}
\usepackage{longtable}
%%% User specified packages and stylesheets
\DeclareGraphicsExtensions{ %
    .pdf,.PDF,%
    .png,.PNG,%
    .jpg,.mps,.jpeg,.jbig2,.jb2,.JPG,.JPEG,.JBIG2,.JB2}
\title{@{{ program }}@ --- analysis of MD flux results}
\author{}
\date{}

\begin{document}
\maketitle
\noindent Initial flux report generated by @{{ program }}@ version @{{ version }}@
on @{{ date }}@.
\\
\noindent The main results are the initial fluxes:

@{{ tables['md-flux'] }}@

\noindent Detailed results are given below and
the flux results are summarized in the
section on MD flux data.

\section{Results from the MD flux analysis}
The following figures were generated by the
analysis program:

\subsection{MD energy data}
Energy and the running average of the energy:
\begin{center}
\includegraphics[width=0.45\linewidth]{@{{ figures['energy']['energies'] }}@}%
\includegraphics[width=0.45\linewidth]{@{{ figures['energy']['runenergies'] }}@}%
\end{center}
Temperature and running average of temperature:
\begin{center}
\includegraphics[width=0.45\linewidth]{@{{ figures['energy']['temperature'] }}@}%
\includegraphics[width=0.45\linewidth]{@{{ figures['energy']['runtemperature'] }}@}%
\end{center}
Block error analysis:
\begin{center}
\includegraphics[width=0.30\linewidth]{@{{ figures['energy']['ekinblock'] }}@}%
\includegraphics[width=0.30\linewidth]{@{{ figures['energy']['vpotblock'] }}@}%
\includegraphics[width=0.30\linewidth]{@{{ figures['energy']['etotblock'] }}@}%
\end{center}
Distribution of energies:
\begin{center}
\includegraphics[width=0.30\linewidth]{@{{ figures['energy']['ekindist'] }}@}%
\includegraphics[width=0.30\linewidth]{@{{ figures['energy']['vpotdist'] }}@}%
\includegraphics[width=0.30\linewidth]{@{{ figures['energy']['etotdist'] }}@}%
\end{center}
Block error and distribution of temperature:
\begin{center}
\includegraphics[width=0.30\linewidth]{@{{ figures['energy']['tempblock'] }}@}%
\includegraphics[width=0.30\linewidth]{@{{ figures['energy']['tempdist'] }}@}%
\end{center}

\subsection{MD order parameter data}
\begin{center}
\includegraphics[width=0.30\linewidth]{@{{ figures['order']['order'] }}@}%
\includegraphics[width=0.30\linewidth]{@{{ figures['order']['runorder'] }}@}%
\includegraphics[width=0.30\linewidth]{@{{ figures['order']['ordererror'] }}@}%
\end{center}
\begin{center}
\includegraphics[width=0.30\linewidth]{@{{ figures['order']['orderdist'] }}@}%
\includegraphics[width=0.30\linewidth]{@{{ figures['order']['ordermsd'] }}@}%
\includegraphics[width=0.30\linewidth]{@{{ figures['order']['orderv'] }}@}%
\end{center}
\subsection{MD flux data}
@{% for figure in figures['flux'] %}@
\begin{center}
\includegraphics[width=0.45\linewidth]{@{{ figure['runflux'] }}@}%
\includegraphics[width=0.45\linewidth]{@{{ figure['errflux'] }}@}%
\end{center}
@{% endfor %}@

@{{ tables['md-flux'] }}@

@{{ tables['md-cycles'] }}@

@{{ tables['md-efficiency'] }}@
\end{document}
