Currently, I am using this code
\documentclass[letterpaper,12pt]{article}
\usepackage[margin=1in]{geometry} % set page parameters appropriately
\usepackage{subcaption}
\captionsetup{font={bf,small},skip=0.25\baselineskip}
\captionsetup[subfigure]{font={bf,small}, skip=1pt}
\begin{figure}[H]
\centering
\begin{subfigure}{0.49\linewidth}
\centering
\includegraphics[width=1.2\linewidth, height=0.17\textheight, keepaspectratio]{H_beffect.png}%,
\caption{}
\label{fig:halfsaturationeffect}
\end{subfigure}
%\quad
\begin{subfigure}{0.49\linewidth}
\centering
\includegraphics[width=1.2\linewidth, height=0.17\textheight, keepaspectratio]{BIHSItransmission.png}
\caption{The effect of $\beta_b$ on $R_{ah}$}
\label{fig:rateoftransmission}
\end{subfigure}
%\hfill
\caption{Effect of half-saturation constant for birds with avian strain and transmission coefficient on the basic reproduction number.}
\label{fig:effectonR_0}
\end{figure}
How can I make the subfigures caption be located at top left corner of each subfigures instead of below the subfigures?
Best Answer
like this?
on topic:
\caption{...}
beforeincludegraphics
\captionsetup[subfigure]{...}
addsinglelinecheck=false
off-topic:
\begin{document}
,end{document}
and packagegraphicx
figure
option[H]
, it can cause unpleasant document formatting. the option[ht]
should be sufficientsubfigure
environment (images will overlaps)