可以参考以下我制作的随机过程历年真题 源码如下:
    
\documentclass{article}

\usepackage{ctex}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{upgreek}
\usepackage{color}
\usepackage{bm}
\usepackage{pdfpages}
\usepackage{tikz}
\usepackage{float}
\usepackage{enumitem}
\usepackage{lastpage}
\usepackage[a4paper]{geometry}
\geometry{left=2cm,right=2cm,top=2.44cm,bottom=2.44cm}
\usepackage{titlesec}
\titleformat{\section}[block]{\LARGE\bfseries}{}{0em}{}[]

\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead{}
\fancyfoot[RO,RE]{\textcolor{blue}{Page \thepage}}
\fancyfoot[C]{}
\renewcommand{\headrulewidth}{0mm}

\usepackage[colorlinks,linkcolor=blue,anchorcolor=red,citecolor=green]{hyperref}

%\renewcommand{\thepartno}{\arabic{partno}}

\begin{document}

\pagenumbering{Roman}
\thispagestyle{plain}
\begin{center}
  \Huge\bfseries 随机过程\quad 历年考试真题

  2023版

  \rule{\textwidth}{0.4pt}
\end{center}

\textbf{\Large\boldmath 说明}
\par\vspace*{1em}
部分试题或答案有误(且答案错误率不算低), 若发现排印错误或投稿欢迎联系:\par
\href{mailto:lzw2003@mail.ustc.edu.cn}{\texttt{lzw2003@mail.ustc.edu.cn}}
\par 最后修改于 \textcolor{blue!60}{\today}.可在主页下载最新版\par
\url{http://home.ustc.edu.cn/~cc22155/resource/SPexam.pdf}

\begin{flushright}
巴拉巴拉
\end{flushright}

\textbf{\Large\boldmath 更新日志}
\begin{itemize}
  \item \textbf{2023.02.27}\quad 巴拉巴拉
\end{itemize}

\newpage
\tableofcontents

\newpage
\pagenumbering{arabic}
%2019-2020
\includepdf[pagecommand={\thispagestyle{fancy}},pages={3-4,8-9},addtotoc={3,section,1,2019-2020学年第一学期随机过程B期末,20.1随机B期末}]{./previousExam/19.1and20.1随机过程B期末.pdf}
%2020-2021
\includepdf[pagecommand={\thispagestyle{fancy}},pages=1-2,addtotoc={1,section,1,2020-2021学年第二学期随机过程B期末,21.7随机B期末}]{./previousExam/21.7随机过程B期末.pdf}
%2021-2022
\includepdf[pagecommand={\thispagestyle{fancy}},pages=1-2,addtotoc={1,section,1,2021-2022学年第二学期随机过程B期末,22.6随机B期末}]{./previousExam/22.6随机B期末/22.6随机过程B期末.pdf}
%2022-2023
\includepdf[pagecommand={\thispagestyle{fancy}},pages=1-2,addtotoc={1,section,1,2022-2023学年第一学期随机过程B期末,23.2随机B期末}]{./previousExam/23.2随机B期末/23.2随机过程B期末.pdf}

\end{document}
    
    

容易发现,我上面使用了\includepdf命令,这是由\usepackage{pdfpages}提供的,它可以将pdf文件插入到tex文件中

pdfpages文档里面有详细的使用说明,参数包括插入页数,插入目录(包括目录超链接位置,目录标题等),本页样式

若有意继续更新随机过程真题,可联系我获取往年题分别的pdf(未插入样式的原始版本),本项目不适合放在开源网站上,仅供校内人参考使用