簡體   English   中英

在乳膠數字表中創建數字和標簽之間的空間

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM