I'm using the floatrow package to get caption beside figures. Here is a sample code example:
\lipsum[3]
\lipsum[3]
\lipsum[3]
\begin{figure}[htb!]
\floatbox[{\capbeside\thisfloatsetup{capbesideposition={left,center},capbesidewidth=sidefil}}]{figure}[\FBwidth]
{\caption{\textbf{My caption does not fit the whole width, My caption does not fit the whole width, My caption does not fit the whole width} }\label{dz0_pot_lbd}}
{\includegraphics[width=0.475\textwidth]{dz0_pot_lbd.png}}
\end{figure}
\lipsum[3]
\lipsum[3]
\lipsum[3]
Here is the result:
Please note that I'm using this template, if you want to reproduce this error, you would have to add \usepackage{floatrow} in thesis.tex.
From my understanding capbesidewidth=sidefil should make sure that caption uses all the box space not used by the image. But somehow there is still some few unused blank on the left (see red annotations above). I tried to manually set capbesidewidth to some increasing values, but this just pushes the image on the right side. Using \fcapside[\FBwidth] instead of \floatbox does also not work. Could it be that the full size box is just not set to \textwidth?
Any help would be much appreciated, thanks.
