![](/img/trans.png)
[英]Latex figure ambient: how to start the indexing of the figures from a fixed number?
[英]Creating a space between figure number and label in latex table of figures
您可以使用tocloft
來定義tocloft
中圖形編號和圖形標題之間的間距。 控制這個距離的長度是\\cftfignumwidth
。 這是一個快速示例:
\documentclass{article}
\usepackage{tocloft}
\setlength{\cftfignumwidth}{3em}
\begin{document}
\listoffigures
\begin{figure}
\caption[short caption text]{Long caption text}
\end{figure}
\end{document}
上述建議提供了可以根據需要更改的一致調整。
參考:
解決方法:在圖形環境的短標題參數中使用水平空間
\caption[\hspace{0.5cm} short caption text]{Long caption text}
不過,這當然不是一個很好的解決方案。 我相信,如果你想避免它,你必須在你的文檔類中捏造代碼。
如果您收到如下錯誤:
! LaTeX Error: Command \c@lofdepth already defined.
Or name \end... illegal, see p.192 of the manual.
嘗試使用tocloft從子圖包:
\usepackage{subfigure}
\usepackage[subfigure]{tocloft}
\setlength{\cftfignumwidth}{4em}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.