本文主要是介绍LaTex学习笔记(二):文档的基本结构2【book】,part chapter section subsection toc title,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
\documentclass{book} %article ,report,letter
\usepackage{amsmath} %宏包\begin{document}\title{This is my book}
%标题页
\author{Grace}
%作者
\date{}
%将显示的日期删除
\maketitle %标题页结束\tableofcontents %生成目录 注意:此处需要编译两次\mainmatter %表示文章的正文部分(为了方便页码1从正文开始)\part{elementary} %第一部分\chapter{introduction} %第一章
\section{first section} %第一节\subsection{I like \LaTeX}\chapter{babababa} \chapter{summary}\part{advanced} %第二部分\chapter{intro}\chapter{conclu}\end{document}
生成的目录部分展示:
可以利用工具栏中的tree查看文章结构
这篇关于LaTex学习笔记(二):文档的基本结构2【book】,part chapter section subsection toc title的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!