math-optim/report/pics.tmpl

34 lines
1.1 KiB
Go HTML Template
Raw Normal View History

2022-07-12 22:31:29 +02:00
% Code generated by math-optim; DO NOT EDIT.
%
% This file was generated by robots at
% {{ .Timestamp }}
% source: git.dotya.ml/wanderer/math-optim/report/pics.tmpl
% This file is a part of the math-optim project.
% project homepage: https://git.dotya.ml/wanderer/math-optim/
2022-07-18 01:05:17 +02:00
\subsubsection{ {{- printf "%s - %s" .Algo .Bench -}} }
2022-07-18 22:36:47 +02:00
\begin{figure}[h!]
2022-07-12 22:31:29 +02:00
\centering
2022-07-18 22:36:47 +02:00
{{- range $i, $v := .Pics }}
\begin{subfigure}{0.30\textwidth}
% note: this accomodates 3 plots a row comfortably..should the requirements
% change, this would have to be reworked.
{\includesvg[scale=0.45]{ {{- printf "%s" $v.FilePath -}} }}
\caption{ {{- printf "\\scriptsize{%s}" $v.Caption -}} }
2022-07-18 22:36:47 +02:00
\end{subfigure}
\hfill
{{- end -}}
{{ range $k, $w := .PicsMean }}
\begin{subfigure}{0.30\textwidth}
\vspace{2em}
{\includesvg[scale=0.45]{ {{- printf "%s" $w.FilePath -}} }}
\caption{ {{- printf "\\scriptsize{%s}" $w.Caption -}} }
2022-07-18 22:36:47 +02:00
\end{subfigure}
\hfill
2022-07-12 22:31:29 +02:00
{{- end }}
\caption{ {{- printf "%s - %s" .Algo .Bench -}} }
2022-07-18 22:36:47 +02:00
\end{figure}
2022-07-12 22:31:29 +02:00
% vim: ft=gotexttmpl.tex ts=2 sts=2 sw=2 bs=2 expandtab