\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 }}@ --- TIS analysis}
\author{}
\date{}

\begin{document}
\maketitle
\noindent TIS analysis report generated by @{{ program }}@ version @{{ version }}@
on @{{ date }}@.
\\
\noindent Please note that the flux (and thus the rate constant)
was \textbf{not} calculated in this analysis!
\\
\noindent The main result is:
\begin{itemize}
\item The crossing probability:
$P_{\text{cross}} =$ \colorbox{blue!30}{ @{{ numbers['pcross'] }}@ }  $\pm$ @{{ numbers['perr'] }}@ $\%$
\end{itemize}

\section{Combined results}

The overall matched probability distributions are shown in the left figure 
while the matched probability distribution is shown in the right figure below.
The overall crossing probability as a function of cycles
and its relative error block analysis are reported in the two following
plots, respectively.

\begin{center}
\includegraphics[width=0.45\linewidth]{@{{ figures['total'] }}@}%
\includegraphics[width=0.45\linewidth]{@{{ figures['matched'] }}@}%
\end{center}
\begin{center}
\includegraphics[width=0.45\linewidth]{@{{ figures['progress'] }}@}%
\includegraphics[width=0.45\linewidth]{@{{ figures['error'] }}@}%
\end{center}
\noindent Detailed results are given below for the different path
ensembles.

\section{Results for path ensembles}
The following interfaces were used in the simulation and in
the analysis:

@{{ tables['interfaces'] }}@

@{{ tables['probability'] }}@

@{{ tables['efficiency'] }}@

The crossing probabilities are also displayed in the figures below

\subsection{Crossing probabilities}
@{% for figure in figures['tis'] %}@
\begin{center}
\includegraphics[width=0.33\linewidth]{@{{ figure['pcross'] }}@}%
\includegraphics[width=0.33\linewidth]{@{{ figure['prun'] }}@}%
\includegraphics[width=0.33\linewidth]{@{{ figure['perror'] }}@}%
\end{center}
@{% endfor %}@
\clearpage

\subsection{Distributions for path lengths and shooting moves}
The average path lengths in the different ensembles are given in
the table below and some distributions for the path lengths and
shooting moves can also be found here:

@{% for figure in figures['tis'] %}@
\begin{center}
\includegraphics[width=0.45\linewidth]{@{{ figure['lpath'] }}@}%
\includegraphics[width=0.45\linewidth]{@{{ figure['shoots'] }}@}%
\end{center}
@{% endfor %}@
\clearpage


\end{document}

