第一节中,介绍了latex文档的基本结构。
下面我们将开始介绍Latex内容的结构:
1.Section(章节)
Latex为Section 命令已经自动编号,而且这些编号将会自动出现在目录中,而没有编号的不会出现在目录中。
章节又可分为子章节,类似于其他文档中的一级标题和二级标题等,下面啊是一个例子:
\documentclass{article}
\title{Title of my document}
\date{2018-09-26}
\author{Ray Tseng}
\begin{document}
\maketitle
\pagenumbering{gobble}
\newpage
\pagenumbering{arabic}
\section{Section}
Hello wrold!
\subsection{subsection}
It's easy to structure a document!!!
\end{document}
得到下面结果:
接下来我们添加一些更下层的章节,构造一个简单的document的层次结构如下:
\documentclass{article}
\title{Title of my document}
\date{2018-09-26}
\author{Ray Tseng}
\begin{document}
\maketitle
\pagenumbering{gobble}
\newpage
\pagenumbering{arabic}
\section{Section}
Hello World!
\subsection{Subsection}
Structuring a document is easy!
\subsubsection{Subsubsection}
More text.
\paragraph{Paragraph}
Some more text.
\subparagraph{Subparagraph}
Even more text.
\section{Another section}
\end{document}
得到下图所示: