Latex 教程(Second step)

这篇教程详细介绍了 LaTeX 中的文档结构,包括 Section、Subsection、Subsubsection、Paragraph 和 Subparagraph 的使用,以及它们如何自动编号并显示在目录中。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

第一节中,介绍了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}

得到下图所示:


 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值