I am trying to align caption to the left but its coming centered. Please see the figure. The code is
\begin{figure}[!t]
\includegraphics[scale=0.22]{Figure 1.pdf}
\caption{The caption is coming to the center. It should be aligned to the left. }
\label{Figure 1}
\end{figure}
The previously mentioned solutions were tried. But they didn't work.
How can I left-align a caption?
Any solution for the above problem.
A full MWE:
\documentclass[%
aip,
amsmath,amssymb,
]{revtex4-1}
\draft
\usepackage{graphicx}
\usepackage{dcolumn}
\usepackage{bm}
\usepackage{times}
\DeclareGraphicsExtensions{.pdf,.jpeg,.jpg, .png, .eps, .tiff}
\usepackage{epstopdf}
\usepackage{lipsum}
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage{array}
\usepackage{natbib}
\usepackage{color}
\usepackage{grffile}
\usepackage{caption}
\usepackage{boxhandler}
\usepackage{float}
\begin{document}
\begin{figure}[!t]
\centering
\includegraphics[scale=0.5]{Figure 3.pdf}
\caption{}
\label{Figure 4}
\end{figure}
\end{document}
Best Answer
You should add the following instruction to the preamble, after loading the
caption
package:If you want "hanging indentation" of multiline captions, you should add the option
to the argument of
\captionsetup
.A full MWE (with all packages not relevant for the issue at hand removed from the preamble):