
我正在使用 floatrow 包來獲取數字旁邊的標題。這是一個範例程式碼範例:
\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]
結果如下:
請注意,我正在使用這個模板,如果你想重現這個錯誤,你必須\usepackage{floatrow}
在thesis.tex中加入。
根據我的理解,capbesidewidth=sidefil
應該確保標題使用圖像未使用的所有框空間。但不知怎的,左邊仍然有一些未使用的空白(請參閱上面的紅色註釋)。我嘗試手動將 capbesidewidth 設定為一些增加的值,但這只會將圖像推到右側。使用\fcapside[\FBwidth]
代替\floatbox
也不起作用。難道全尺寸框沒有設定為 \textwidth 嗎?
任何幫助將不勝感激,謝謝。