I have a problem with the alignment of the caption of an image. My image is centered and I need the caption to be left-adjusted relative to my image like that:
-------------------
| |
| image |
-------------------
Figure 1: my image
Source:
I tried the caption package with:
\captionsetup{font=footnotesize, justification=raggedright,singlelinecheck=false}
Code to load figure:
\begin{figure}[htpb]
\centering
\includegraphics[width = 10cm]{Zeichnungsverfahren.png}
\caption[caption]{This is the caption}
\label{fig:zeichnungsverfahren2}
\end{figure}
but it clearly didn't work.
It gave me something like this:
-------------------
| |
| image |
-------------------
Figure 1: my image
Source:
I'm new with Latex so I hope you can help me out.? Greets Tony