\documentclass[letterpaper, 11pt]{article}

\usepackage[margin=0.5in]{geometry}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{array}
\usepackage[hidelinks]{hyperref}
\usepackage{longtable} 
\usepackage{placeins}

\setlength\parindent{0pt}
\hypersetup{colorlinks=false}
\maxdeadcycles=200

\begin{document}

{% if logo %}
\begin{minipage}[c]{\linewidth} 
	{\includegraphics[width={{ im_width_logo }}\linewidth]{% raw -%}{{%- endraw %}{{logo}}{% raw -%}}{%- endraw %} }
	\textbf{\Large{ {{title}} } }
\end{minipage}\hfill
{% else %} \begin{minipage}[c]{\linewidth} 
	\textbf{\Large{ {{title}} } }
\end{minipage}\hfill
{% endif %}

\underline{\hspace{\linewidth}}
\vspace{0.05in}

Data start time: {{ content['start_time']}}

Data end time: {{ content['end_time']}}

Number of variables: {{ content['num_data_columns']}}

Number of test failures: {{ content['num_test_results']}}

{% for im in content['custom_graphics'] %}
	\begin{figure}[h!]
		\includegraphics[width={{ im_width_custom }}\linewidth]{% raw -%}{{%- endraw %}{{im}}{% raw -%}}{%- endraw %}
	\end{figure}
{% endfor %}

\FloatBarrier

{% if content['num_metrics']|int > 0 %}
    \textbf{\Large{Performance Metrics}}
    
    \vspace{0.1in}
    \small{\centering{
    {{ content['metrics'] }}
    }}
{% endif %}

\textbf{\Large{Test Results}}

\vspace{0.1in}
\small{\centering{
{{ content['test_results'] }}
}}

{% for im in content['test_results_graphics'] %}
    \begin{figure}[h!]
        \includegraphics[width={{ im_width_test_results }}\linewidth]{% raw -%}{{%- endraw %}{{im}}{% raw -%}}{%- endraw %}
    \end{figure}
{% endfor %}

\FloatBarrier

{% if content['num_notes']|int > 0 %}
    \textbf{\Large{Notes}}
    {{ content['notes'] }}
{% endif %}

{% if content['config'] %}
    \textbf{\Large{Configuration Options}}
    {{ content['config'] }}
{% endif %}

\vspace{0.05in}
\underline{\hspace{\linewidth}}

\footnotesize{
Report generated by \href{https://github.com/sandialabs/pecos}{Pecos}

Version {{ version }}, Date {{ datestr }} }

\end{document}


