\documentclass{article}
\usepackage{hyperref}
\usepackage{fancyhdr}
\usepackage{array}
\usepackage{amssymb}
\usepackage{longtable}
\hypersetup{colorlinks=true,linkcolor=black}
\makeatletter
\newcommand{\rmnum}[1]{\romannumeral #1}
\newcommand{\Rmnum}[1]{\expandafter\@slowromancap\romannumeral #1@}
\makeatother
\usepackage[top=2.5cm, bottom=2.5cm, left=3cm, right=3cm]{geometry}
% 页眉和页脚设置
\pagestyle{fancy}
\fancyhf{} % 清空默认的页眉和页脚
\fancyfoot[C]{\thepage} % 页脚中央显示页码
\renewcommand{\headrulewidth}{0.4pt} % 页眉下方的横线
\fancyhead[R]{\nouppercase{\leftmark}} % 将课程类型放在页眉右侧
\title{Course Description}
\author{Name}
\date{\today}
\newcommand{\majorname}{Major}
\newcommand{\collegename}{College}
\newcommand{\universityname}{University}
\begin{document}
\begin{titlepage}
\centering
\vspace*{4cm}
\Huge \textbf{Course Description} \\
\vspace{10cm}
\begin{flushright}
\emph{\Large\majorname}\\
\vspace{0.1cm}
\emph{\Large\collegename}\\
\vspace{0.1cm}
\emph{\Large\universityname}
\end{flushright}
\end{titlepage}
\clearpage
\setcounter{page}{1}
\pagenumbering{roman}
\tableofcontents % 添加目录
\clearpage
\pagestyle{fancy} % 重新激活页眉和页脚
\pagenumbering{arabic}
\section{COURSE SECTION 1}
\markright{COURSE SECTION 1}
\subsection{Course A}
\renewcommand{\arraystretch}{1.5} % 设置行高
\begin{longtable}{|p{3cm}|p{10cm}|}
\hline
\textbf{Course Name} & Course A\\
\hline
\textbf{Credits} & 4.0 \\
\hline
\textbf{Credit Hours} & 64\\
\hline
\textbf{Semester} & Fall \\
\hline
\textbf{Description} & ... \\
\hline
\textbf{Education Aims} & ... \\
\hline
\end{longtable}
\subsection{Course B}
\renewcommand{\arraystretch}{1.5} % 设置行高
\begin{longtable}{|p{3cm}|p{10cm}|}
\hline
\textbf{Course Name} & Course B\\
\hline
\textbf{Credits} & 5.0 \\
\hline
\textbf{Credit Hours} & 80\\
\hline
\textbf{Semester} & Spring \\
\hline
\textbf{Description} & ... \\
\hline
\textbf{Education Aims} & ... \\
\hline
\end{longtable}
\clearpage
\section{COURSE SECTION 2}
\markright{COURSE SECTION 2}
\subsection{Course C}
\renewcommand{\arraystretch}{1.5} % 设置行高
\begin{longtable}{|p{3cm}|p{10cm}|}
\hline
\textbf{Course Name} & Course C\\
\hline
\textbf{Credits} & 1.0 \\
\hline
\textbf{Credit Hours} & 32\\
\hline
\textbf{Semester} & Summer \\
\hline
\textbf{Description} & ... \\
\hline
\textbf{Education Aims} & ... \\
\hline
\end{longtable}
\subsection{Course D}
\renewcommand{\arraystretch}{1.5} % 设置行高
\begin{longtable}{|p{3cm}|p{10cm}|}
\hline
\textbf{Course Name} & Course D\\
\hline
\textbf{Credits} & 2.5 \\
\hline
\textbf{Credit Hours} & 40\\
\hline
\textbf{Semester} & Fall/Spring \\
\hline
\textbf{Description} & ... \\
\hline
\textbf{Education Aims} & ... \\
\hline
\end{longtable}
\clearpage
\end{document}