简体   繁体   English

LaTeX 仅创建目录

[英]LaTeX create ONLY table of contents

I have some documents scanned as pdf, and since I want to hand them in to my university combined as one document, I want to attach a table of contents to make the reader aware of the fact, that there are several documents inside this pdf.我有一些文件扫描为 pdf,由于我想将它们合并为一个文件交给我的大学,所以我想附上一个目录,让读者知道这个 pdf 里面有几个文件。 So, since I already have the documents and I am not producing them in Latex anymore, I only want to create the table of contents in Latex.因此,由于我已经有了这些文档,并且不再在 Latex 中生成它们,我只想在 Latex 中创建目录。 Usually, Latex pulls its information for the toc out of the document it won't have this time.通常,Latex 会从它这次没有的文档中提取其 toc 信息。 So, is there manual way of creating a table of contents, where I can type in myself, which section exists and what page it is on?那么,是否有手动创建目录的方法,我可以在其中输入自己,存在哪个部分以及它在哪个页面上?

Thank you all in advance and have a nice weekend!提前谢谢大家,周末愉快!

PS: I double checked if that topic was already dealt with, but I didn't find anything. PS:我仔细检查了该主题是否已经处理,但我没有找到任何东西。

So, apparently the answer lies in the.toc file which is auto generated when compiling.因此,显然答案在于编译时自动生成的 .toc 文件。 This document contains commands with the pattern本文档包含带有模式的命令

\contentsline {section}{\numberline {<number of enumeration>}\ignorespaces <heading>}{<pagenumber>}%

this comment also works when used after the \tableofcontents command.\tableofcontents命令之后使用此注释也有效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM