最后,在你编译的文件所在的同一文件夹中,会多出一个.toc文件,它是用来记录目录信息的,toc即是table of contents的缩写。对于我们前面编译的代码,生成的.toc文件打开后内容是: \contentsline {chapter}{\numberline {1}这是第一章}{5}{}% \contentsline {section}{\numberline {1.1}这
\usepackage{titletoc}\contentsmargin{0pt}\renewcommand\contentspage{\thecontentspage}\dottedcontents{s...
In a LaTeX document the table of contents can be automatically generated, and modified to fit a specific style, this article explain how Introduction To create the table of contents is straightforward, the command \tableofcontents does the job. Sections, subsections and chapters are included in...
In a LaTeX document the table of contents can be automatically generated, and modified to fit a specific style, this article explain how Introduction To create the table of contents is straightforward, the command \tableofcontents does the job. Sections, subsections and chapters are included in...
\documentclass{book} % 导言区 \usepackage{amsmath} % 数学宏包 \usepackage{graphicx} % 图形宏包 \title{我的书籍标题} \author{作者姓名} \date{\today} % 当前日期 \begin{document} % 正文区 \frontmatter % 前言部分 \maketitle % 生成标题页 \tableofcontents % 生成目录 \mainmatter % 正文部分...
#1}}}\ExplSyntaxOff\makeatother\begin{document}\frontmatter\chapter{序}\tableofcontents\mainmatter...
\documentclass{book} %模板类型为book \title{...} %添加标题 \author{...} %添加作者 \date{} %LaTeX会自动生成日期,如果不需要就加这一步将日期去掉 \begin{document} %开始正文 \maketitle %制作封面 \tableofcontents %加入目录,包括页码(非必需) \mainmatter %如果希望页码是从正文部分开始就加上这句...
LaTeX offers features to automatically generate a table of contents, a list of figures and a list of tables. Learn here how to use them.
默认的不就是这样的吗?肯定是你的代码有问题,或者有人格式化了你的目录部分。目录格式参看 titletoc tocloft等宏包。\
在有了章节的结构之后,使用\tableofcontents命令就可以在指定位置生成目录。 好的,今天我们的教程就讲到这里。 后续如果有时间的话,我们会接着讲图片,表格之类的等等一大堆。 反正现在的这个状态,也可以写一本文字书了哈哈哈哈哈哈。 那么我们今天的LaTex最最简单(才怪)的一页文字排版就到这里咯,下期再见。