I am fairly new to the footer syntax in LaTeX, I want to make a footer of a similar manner as the one shown in the attached picture. In addition to having a fixed position on the bottom of every page it also needs to auto-update per page basis. If you can lend any help it would be greatly appreciated!!
Asked
Active
Viewed 75 times
0
-
Welcome to TeX SX! What should change on each page – only the page number? – Bernard Oct 05 '19 at 17:27
-
Yes! It should be just the page number! – Michael Vanegas Oct 05 '19 at 17:53
1 Answers
1
Wih the help of fancyhdr for the customized footer, tabularx to make the table as wide as the textwidth, lastpage to get the number of the last page and xcolor to adjust the colors of the table:
\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}
leandriis
- 62,593
-
I didn't even know some of these command existed! Thank you very much!! – Michael Vanegas Oct 06 '19 at 18:13

