[Tex/LaTex] How to align caption to the left of a figure


I am using this command, but it centers the figure caption. How can I left-align this? Please help me.



\caption{Generation of Digital Signature}


Best Answer

You can load the caption package and choose the option singlelinecheck=off, and the measuredfigure environment from threeparttable:

\usepackage[utf8]{inputenc} %
\usepackage{graphicx, caption} %


  \captionsetup{singlelinecheck = false, format= hang, justification=raggedright, font=footnotesize, labelsep=space}
  \begin{measuredfigure} % \begin{measuredfigure}
    \caption{Chuck Jones – Pepe Le Pew in action}


enter image description here

Related Question