繁体   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