答案1
借助fancyhdr
自定义页脚, tabularx
使表格宽度与文本宽度相同,lastpage
获取最后一页的页码并xcolor
调整表格的颜色:
\documentclass{article}
\usepackage{fancyhdr}
\usepackage{tabularx}
\usepackage{lastpage}
\usepackage[table]{xcolor}
\definecolor{mylightgray}{RGB}{240,240,240}
\definecolor{mydarkgray}{RGB}{130,130,130}
\usepackage{blindtext} % Ony for example document
\pagestyle{fancy}
\fancyfoot[C]{%
\color{mydarkgray}
\begin{tabularx}{\textwidth}{|c|X|c|}
\hline
\rowcolor{mylightgray}Filename & Description & Pages\\
\hline
DM-TEMPLATE.doxc & \textbf{Report Title} & Page \thepage\ of \pageref{LastPage}\\
\hline
\end{tabularx}%
}
\begin{document}
\blinddocument
\end{document}