[Tex/LaTex] Align Caption to the left

captionshorizontal alignment

enter image description here

I am trying to align caption to the left but its coming centered. Please see the figure. The code is

\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}

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:


\DeclareGraphicsExtensions{.pdf,.jpeg,.jpg, .png, .eps, .tiff}

\includegraphics[scale=0.5]{Figure 3.pdf}
\label{Figure 4}

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):

enter image description here

%%% \draft % this instruction is deprecated -- use 'draft' option instead

\usepackage[demo]{graphicx} % remove 'demo' option in real document
\captionsetup{justification   = raggedright,
              singlelinecheck = false}
\setcounter{figure}{2}  % just for this example

\caption{The caption is now no longer centered. Instead, it is left-aligned, which is also known as ``ragged-right''.}