答案1
也许这可以让你开始:根据需要进行调整。(显然,如果你不想使用 sans 字体,你可以删除\usepackage{tgheros}
and :我只是想模仿图片。)\sffamily
\documentclass{article}
\usepackage{lastpage}% to reference total page number
\usepackage{tgheros}% approximates font in your image
% reset style
\usepackage{fancyhdr}
\renewcommand{\headrulewidth}{0pt}
\pagestyle{fancy}% pages have the fancy footer by default
\fancyhf{}
% for the footer
\fancyfoot[CO,CE]{%
\sffamily\footnotesize% for smaller sans serif font
\def\arraystretch{1.7}% put some vertical padding in cells
\setlength{\tabcolsep}{1em}% put some horizontal padding in cells
\begin{tabular}{|c|c|c|c|c|} \hline
2023 & \multicolumn{3}{|c|}{BTS SIO} & Sujet \\ \hline
& E21 Mathématiques pour l'informatique & Coef: 2 & Durée : 2 h 00 & \thepage\ / \pageref{LastPage} \\ \hline
\end{tabular}%
}
\usepackage{lipsum}% for dummy text
\begin{document}
\thispagestyle{empty}% no footer first page
\lipsum[1-50]% dummy text
\thispagestyle{plain}% simpler footer last page
\end{document}