math-optim/report/pics.tmpl
leo 7a5de808e9
All checks were successful
continuous-integration/drone/push Build is passing
report: correct the path to tmpl files in comments
this path gets redirected to a canonical - even if nonpermanent - one at
`{repo}/src/branch/{main-branch}/{path-to-file}`, that is
`{repo}/src/branch/development/{path-to-file}` in concrete terms.
the previous paths were resulting in 404s.
2023-02-24 16:25:31 +01:00

41 lines
1.3 KiB
Go HTML Template

% Code generated by math-optim; DO NOT EDIT.
%
% This file was generated by robots at
% {{ .Timestamp }}
% source: git.dotya.ml/wanderer/math-optim/src/report/pics.tmpl
% This file is a part of the math-optim project.
% project homepage: https://git.dotya.ml/wanderer/math-optim/
\subsubsection{ {{- printf "%s - %s" .Algo .Bench -}} }
\begin{figure}[h!]
\centering
{{- range $i, $v := .Pics }}
\begin{subfigure}{0.46\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 -}} }}
% using .pdf
{\includegraphics[scale=0.45]{ {{- printf "%s" $v.FilePath -}} }}
\caption{ {{- printf "\\scriptsize{%s}" $v.Caption -}} }
\end{subfigure}
% \hspace{1.3em}
\hfill
{{- end -}}
% \newline
{{ range $k, $w := .PicsMean }}
\begin{subfigure}{0.46\textwidth}
\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 -}} }
\end{subfigure}
% \hspace{1.3em}
\hfill
{{- end }}
\caption{ {{- printf "%s - %s" .Algo .Bench -}} }
\end{figure}
% vim: ft=gotexttmpl.tex ts=2 sts=2 sw=2 bs=2 expandtab