math-optim/report/pics.tmpl

41 lines
1.3 KiB
Go HTML Template
Raw Permalink 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 }}
2023-02-23 23:11:23 +01:00
\begin{subfigure}{0.46\textwidth}
2022-07-18 22:36:47 +02:00
% 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 -}} }}
% using .pdf
{\includegraphics[scale=0.45]{ {{- printf "%s" $v.FilePath -}} }}
\caption{ {{- printf "\\scriptsize{%s}" $v.Caption -}} }
2022-07-18 22:36:47 +02:00
\end{subfigure}
2022-12-24 11:30:22 +01:00
% \hspace{1.3em}
2022-07-18 22:36:47 +02:00
\hfill
{{- end -}}
2022-12-24 11:30:22 +01:00
% \newline
2022-07-18 22:36:47 +02:00
{{ range $k, $w := .PicsMean }}
2023-02-23 23:11:23 +01:00
\begin{subfigure}{0.46\textwidth}
2022-07-18 22:36:47 +02:00
\vspace{2em}
% {\includesvg[scale=0.45]{ {{- printf "%s" $w.FilePath -}} }}
% using .pdf
{\includegraphics[scale=0.45]{ {{- printf "%s" $w.FilePath -}} }}
\caption{ {{- printf "\\scriptsize{%s}" $w.Caption -}} }
2022-07-18 22:36:47 +02:00
\end{subfigure}
2022-12-24 11:30:22 +01:00
% \hspace{1.3em}
2022-07-18 22:36:47 +02:00
\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