Latex学习(标题,子标题)

\documentclass{article} 
\usepackage{ctex}       %载入中文包
\begin{document}
\section{第一部分}
写点什么吧。
\subsection{第一部分的二小部分}
say hello.

\section*{第二部分}
再写点什么吧。

\end{document}

排版效果:

原文地址:https://www.cnblogs.com/tiandsp/p/2766155.html