Add bundled report example

This commit is contained in:
2020-11-17 15:51:09 +01:00
parent fe0bd8b200
commit 33f6ae7e55
7 changed files with 92 additions and 30 deletions

4
garlic/report/Makefile Normal file
View File

@@ -0,0 +1,4 @@
all: report.tex
pdflatex report.tex -o report.pdf
# Run again to fix figure references
pdflatex report.tex -o report.pdf

31
garlic/report/report.tex Normal file
View File

@@ -0,0 +1,31 @@
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\title{Example of Nix + \LaTeX{}}
\author{Rodrigo Arias Mallo}
\maketitle
\section{Nbody}
The nbody program has been executed with varying block sizes while the execution
time $t$ is measured, as shown in the figure \ref{fig:nbody.test}.
%
\begin{figure}[h]
\centering
\includegraphics[width=0.45\textwidth]{@fig.nbody.small@/scatter.png}
\includegraphics[width=0.45\textwidth]{@fig.nbody.small@/box.png}
\caption{Nbody times with varying block size}
\label{fig:nbody.test}
\end{figure}
%
The normalized time $\hat t$ is computed with the median time $t_m$ using $ \hat
t = t / t_{m} - 1 $. It can be observed that the normalized times exceed the
maximum allowed interval in most cases, except with the largest block sizes.
Once the experiment \texttt{exp.nbody.test} changes, the hash of the experiment
program will change, therefore the plot will be updated and, lastly, this
report.
\end{document}