\documentclass[11pt]{article}
\usepackage[UTF8]{ctex}
\usepackage[english]{babel} % 添加这一行以设置英文
\title{University Courses}
\author{Stay Home}
\date{january 21, 2025}
\begin{document}
\maketitle
\tableofcontents % 英文目录会根据 \section 等命令自动生成
\section{Computer Science Courses}
\subsection{JAVA Programming}
\subsection{C Programming}
\subsection{Introduction to Computer Science}
\subsection{Microcomputer Principles}
\section{Other Subjects}
\subsection{College Physics}
\subsection{Thinking in Traditional Chinese Medicine}
\subsection{Human Anatomy}
\subsection{College English Listening Comprehension}
\end{document}
效果如上图,他的页码是可以自动编排的。在对应的部分加上文字就行,比如在1.2中加入文字