LaTex学习教程——文章标题、目录及段落

\documentclass{article}
   \title{Hello World}  %———总标题
\begin{document}
   \maketitle % —— 显示标题
\tableofcontents %—— 制作目录(目录是根据标题自动生成的)
   \section{Hello China} %——一号子标题  China is in East Asia.
     \subsection{Hello Beijing} %——二号子标题  Beijing is the capital of China.
       \subsubsection{Hello Dongcheng District}  %——三号子标题
         \paragraph{Tian'anmen Square}is in the center of Beijing
           \subparagraph{Chairman Mao} is in the center of Tian'anmen Square
       \subsection{Hello Guangzhou}
         \paragraph{Sun Yat-sen University} is the best university in Guangzhou. 
\end{document}

将上述代码复制到WinEdt中去 可生成如下PDF文件:
LaTex学习教程——文章标题、目录及段落_第1张图片

Latex的文档层次结构大约有5层,分别是:
section — subsection — subsubsection — paragraph — subparagraph

你可能感兴趣的:(LaTex,LaTex)