包括单词“表”。表格列表“附录”中在目录等中

发布于 2024-08-20 06:27:20 字数 524 浏览 1 评论 0原文

我需要在表列表中每行的开头添加“表”一词。也就是说,而不是:

  LIST OF TABLES
 1   The first table   ........... 10
 2   The second table  ........... 20

我需要它说:

  LIST OF TABLES
 Table 1   The first table   ........... 10
 Table 2   The second table  ........... 20

是的,我知道这很丑陋,但这些就是规则。

我还需要目录说:

  Table of Contents
 1  The first Chapter             ...... 1

 Appendices

 Appendix A  The A appendix     ........  10

知道如何以简单且一致的方式做到这一点吗?

I need to include the word "Table" at the beginning of each line in my List of Tables. That is, instead of:

  LIST OF TABLES
 1   The first table   ........... 10
 2   The second table  ........... 20

I need it to say:

  LIST OF TABLES
 Table 1   The first table   ........... 10
 Table 2   The second table  ........... 20

Yes, I know that's ugly, but those are the rules.

I also need the Table of contents to say:

  Table of Contents
 1  The first Chapter             ...... 1

 Appendices

 Appendix A  The A appendix     ........  10

Any idea how to do this in a simple and consistent manner?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

回首观望 2024-08-27 06:27:20

要回答您的三个问题:

1:表格列表中的表格前缀请在序言中添加以下内容:

\usepackage{tocloft}

\newlength\tablelen

\settowidth\tablelen{Table}

\addtolength\cfttabnumwidth{\tablelen}

\renewcommand\cfttabpresnum{Table }

2:要让“附录”出现在目录中,请在调用 \appendix 之后添加以下内容:

\addcontentsline{toc}{chapter}{Appendices}

3:要让“附录”作为目录中每个附录的前缀,请参阅:

http://for.mat.bham.ac.uk/pgweb/thesisfiles/bhamthesisman.pdf
http://for.mat.bham.ac.uk/pgweb/ 特别是thesisfiles/bhamthesis.dtx

,搜索他的 \renewcommand{\appendix},其中添加到内容已更改。

To answer your three questions:

1: Table prefix in the list of tables put the following in your preamble:

\usepackage{tocloft}

\newlength\tablelen

\settowidth\tablelen{Table}

\addtolength\cfttabnumwidth{\tablelen}

\renewcommand\cfttabpresnum{Table }

2: To have "Appendices" appear in your table of contents put the following just after your call to \appendix:

\addcontentsline{toc}{chapter}{Appendices}

3: To have "Appendix" as a prefix for each appendix in the table of contents, see:

http://for.mat.bham.ac.uk/pgweb/thesisfiles/bhamthesisman.pdf
http://for.mat.bham.ac.uk/pgweb/thesisfiles/bhamthesis.dtx

in particular, search for his \renewcommand{\appendix} in which add to contents is changed.

白芷 2024-08-27 06:27:20

更简单的方法是将单词 \listoftables 替换为

{%  
\let\oldnumberline\numberline%  
\renewcommand{\numberline}{\tablename~\oldnumberline}%  
\listoftables%  
}

The easier way is to replace the word \listoftables with

{%  
\let\oldnumberline\numberline%  
\renewcommand{\numberline}{\tablename~\oldnumberline}%  
\listoftables%  
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文