I want to place a subcaption below each figure (five figures on a page), such as the following figures. I have done it with the help of this link, but there is a problem with \floatbox. How to solve it?
\documentclass[review]{elsarticle}
\graphicspath{ {./figures/} }
\usepackage{hyperref}
%\usepackage{float}
\usepackage{verbatim} %comments
\usepackage{apalike}
%\restylefloat{figure}
%\floatstyle{plaintop}
%\restylefloat{table}
\usepackage{lipsum,capt-of,graphicx}
\usepackage{geometry}
\usepackage{natbib}
\let\printorcid\relax
\usepackage[wby]{callouts}
\usepackage{ragged2e}
\usepackage{setspace}
\usepackage[labelfont=bf,justification=raggedright,singlelinecheck=false, font={footnotesize}]{caption}
\captionsetup[figure]{name=Fig. ,labelsep=period, justification=justified, singlelinecheck=off}
\captionsetup[table]{labelsep=newline,font=footnotesize, justification=justified, singlelinecheck=off}%,skip=0pt,belowskip=0pt}
\usepackage{subcaption}
\usepackage{setspace}
\usepackage{etoolbox}
\AtBeginEnvironment{table}{\sffamily}
\usepackage{booktabs,siunitx, multirow}
\sisetup{table-format=1.4, tight-spacing=true, separate-uncertainty}
\sisetup{
output-exponent-marker = \text{e},
exponent-product={},
retain-explicit-plus,
input-open-uncertainty = ,
input-close-uncertainty = ,
table-align-text-pre = false,
table-align-text-post = false,
round-mode=places,
round-precision=2,
table-space-text-pre = (,
table-space-text-post = ),
}
\usepackage{amsmath}
\usepackage{adjustbox}
\usepackage{floatrow}
\floatsetup[table]{capposition=top}
\floatsetup[table]{captionskip=0.1pt}
\floatsetup[subfigure]{objectset=centering}
\usepackage{array, cellspace}
\setlength\cellspacetoplimit{3pt}
\setlength\cellspacebottomlimit{3pt}
\usepackage{placeins}
\begin{document}
\begin{figure}
\subfloat[]{\label{main:a}\includegraphics[width=.48\textwidth,height=5cm]{example-image-a}}\quad
\subfloat[]{\label{main:b}\includegraphics[width=.48\textwidth,height=5cm]{example-image-a}}
\medskip
\subfloat[]{\label{main:c}\includegraphics[width=.48\textwidth,height=5cm]{example-image-a}}\quad
\subfloat[]{\label{main:d}\includegraphics[width=.48\textwidth,height=5cm]{example-image-a}}
\medskip
\floatbox[{\capbeside\thisfloatsetup{capbesideposition={right,bottom},capbesidewidth=7.3cm}}]{figure}
{\caption{Caption text}\label{fig:test}}
\subfloat[]{\label{main:e}\includegraphics[width=.48\textwidth,height=5cm]{example-image-a}}
\end{figure}
\end{document}
Error is here:
\floatbox[{\capbeside\thisfloatsetup{capbesideposition={right,bottom},capbesidewidth=7.3cm}}]{figure}
{\caption{Caption text}\label{fig:test}}
\subfloat[]{\label{main:e}\includegraphics[width=.48\textwidth,height=5cm]{example-image-a}}
\end{figure}
! Argument of \subcaption@subfloat@ has an extra }.
<inserted text>
\par
l.75 \subfloat
[]{\label{main:e}\includegraphics[width=.48\textwidth,height=5...
?

