I want to insert the label of each sub-figure in its correct position.
Therefore, I want the label of the sub-figures to be the same as the fig.2, and the location of the caption to be the same as the fig.1 (don't change).
Note:
\documentclass[smallextended]{svjour3}is used.- I asked this question previously but I couldn't solve this yet, this link.
Code:
\documentclass[smallextended]{svjour3} % onecolumn (second format)
%\documentclass[twocolumn]{svjour3} % twocolumn
%
\usepackage{amsmath}
\usepackage{graphicx}
\graphicspath{ {./figures/} }
\usepackage[caption=false]{subfig}
\usepackage[colorlinks,allcolors=blue]{hyperref}
%\usepackage{float}
\usepackage{verbatim} %comments
\usepackage{lipsum,capt-of,graphicx}
\usepackage[a4paper, margin=2.5cm]{geometry}
\usepackage[numbers,sort&compress]{natbib}
\let\printorcid\relax
\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}
%\setlength\abovecaptionskip{-5pt}
%\setlength{\heavyrulewidth}{3\lightrulewidth}
\usepackage{subcaption}
\usepackage{setspace}
\usepackage{etoolbox}
\AtBeginEnvironment{table}{\sffamily}
\usepackage{booktabs,siunitx, multirow}
%\sisetup{table-format=1.4, tight-spacing=true, % separate-uncertainty}
\sisetup{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}
\usepackage{array, cellspace}
\setlength\cellspacetoplimit{3pt}
\setlength\cellspacebottomlimit{3pt}
\usepackage{placeins}
\bibliographystyle{elsarticle-num}
%\bibliographystyle{spmpsci}
%\biboptions{sort&compress}
%\usepackage{xurl} % allow arbitrary line breaks in URL strings
%% These two lines are needed to get the correct paper size
%% in TeX Live 2016
\usepackage[misc]{ifsym}
\setlength\emergencystretch{3em}
\usepackage{microtype}
%
\begin{document}
\begin{figure*}
\subfloat[]{\label{main:a}\includegraphics[clip, trim=0cm 1cm 1cm 0.8cm, width=.4\textwidth,height=4cm]{example-image-a}}\quad
\subfloat[]{\label{main:b}\includegraphics[clip, trim=1cm 1cm 1cm 0.8cm, width=.4\textwidth,height=4cm]{example-image-b}}
\medskip
\subfloat[]\par
\floatbox[{\capbeside\thisfloatsetup{capbesideposition={right,bottom},capbesidewidth=6cm}}]{figure}
{\caption{Caption is here.}
\label{fig2: neighborhood}}
{\label{main:c}\includegraphics[clip, trim=1cm 1cm 0.8cm 0.8cm, width=.4\textwidth,height=4cm]{example-image-c}}
\end{figure*}
\end{document}
Additional information:
According to my code, the problem was because of \usepackage[caption=false]{subfig} and also setting of [clip, trim=0cm 1cm 1cm 0.8cm]. Although the position of the labels is still not good enough!
First solution:
\documentclass[smallextended]{svjour3} % onecolumn (second format)
%\documentclass[twocolumn]{svjour3} % twocolumn
%
\usepackage{amsmath}
\usepackage{graphicx}
\graphicspath{ {./figures/} }
%\usepackage[caption=false]{subfig}
\usepackage[colorlinks,allcolors=blue]{hyperref}
%\usepackage{float}
\usepackage{verbatim} %comments
\usepackage{lipsum,capt-of,graphicx}
\usepackage[a4paper, margin=2.5cm]{geometry}
\usepackage[numbers,sort&compress]{natbib}
\let\printorcid\relax
\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}
%\setlength\abovecaptionskip{-5pt}
%\setlength{\heavyrulewidth}{3\lightrulewidth}
\usepackage{subcaption}
\usepackage{setspace}
\usepackage{etoolbox}
\AtBeginEnvironment{table}{\sffamily}
\usepackage{booktabs,siunitx, multirow}
%\sisetup{table-format=1.4, tight-spacing=true, % separate-uncertainty}
\sisetup{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}
\usepackage{array, cellspace}
\setlength\cellspacetoplimit{3pt}
\setlength\cellspacebottomlimit{3pt}
\usepackage{placeins}
\bibliographystyle{elsarticle-num}
%\bibliographystyle{spmpsci}
%\biboptions{sort&compress}
%\usepackage{xurl} % allow arbitrary line breaks in URL strings
%% These two lines are needed to get the correct paper size
%% in TeX Live 2016
\usepackage[misc]{ifsym}
\setlength\emergencystretch{3em}
\usepackage{microtype}
%
\begin{document}
\begin{figure*}
\subfloat[]{\label{main:a}\includegraphics[clip, trim=0cm 1cm 1cm 0.8cm, width=.48\textwidth,height=5cm]{example-image-a}}\quad
\subfloat[]{\label{main:b}\includegraphics[clip, trim=0cm 1cm 1cm 0.8cm, width=.48\textwidth,height=5cm]{example-image-b}}
\medskip
\subfloat[]\par
\floatbox[{\capbeside\thisfloatsetup{capbesideposition={right,bottom},capbesidewidth=6cm}}]{figure}
{\caption{Caption is here.}
\label{fig2: neighborhood}}
{\label{main:c}\includegraphics[clip, trim=0cm 1cm 1cm 0.8cm, width=.48\textwidth,height=5cm]{example-image-c}}
\end{figure*}
\end{document}
Second solution:
\documentclass[smallextended]{svjour3} % onecolumn (second format)
%\documentclass[twocolumn]{svjour3} % twocolumn
%
\usepackage{amsmath}
\usepackage{graphicx}
\graphicspath{ {./figures/} }
%\usepackage[caption=false]{subfig}
\usepackage[colorlinks,allcolors=blue]{hyperref}
%\usepackage{float}
\usepackage{verbatim} %comments
\usepackage{lipsum,capt-of,graphicx}
\usepackage[a4paper, margin=2.5cm]{geometry}
\usepackage[numbers,sort&compress]{natbib}
\let\printorcid\relax
\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}
%\setlength\abovecaptionskip{-5pt}
%\setlength{\heavyrulewidth}{3\lightrulewidth}
\usepackage{subcaption}
\usepackage{setspace}
\usepackage{etoolbox}
\AtBeginEnvironment{table}{\sffamily}
\usepackage{booktabs,siunitx, multirow}
%\sisetup{table-format=1.4, tight-spacing=true, % separate-uncertainty}
\sisetup{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}
\usepackage{array, cellspace}
\setlength\cellspacetoplimit{3pt}
\setlength\cellspacebottomlimit{3pt}
\usepackage{placeins}
\bibliographystyle{elsarticle-num}
%\bibliographystyle{spmpsci}
%\biboptions{sort&compress}
%\usepackage{xurl} % allow arbitrary line breaks in URL strings
%% These two lines are needed to get the correct paper size
%% in TeX Live 2016
\usepackage[misc]{ifsym}
\setlength\emergencystretch{3em}
\usepackage{microtype}
%
\begin{document}
\begin{figure}
\subfloat[]{\label{main:a}\includegraphics[clip, trim=0cm 1cm 1cm 0.8cm, width=.48\textwidth,height=5cm]{example-image-a}}\quad
\subfloat[]{\label{main:b}\includegraphics[clip, trim=0cm 1cm 1cm 0.8cm, width=.48\textwidth,height=5cm]{example-image-b}}
\medskip
\subfloat[]\par
\floatbox[{\capbeside\thisfloatsetup{capbesideposition={right,bottom},capbesidewidth=7.3cm}}]{figure}
{\caption{Caption text}\label{fig:test}}
{\label{main:e}\includegraphics[clip, trim=0cm 1cm 1cm 0.8cm, width=.48\textwidth,height=5cm]{example-image-c}}
\end{figure}
\end{document}






\documentclass[smallextended]{svjour3}and related packages. – Ellie Oct 29 '21 at 11:09svjour3document class in (nice) solution in article withelsarticledocument class. Accordingly change question tags. – Zarko Oct 29 '21 at 11:15