Code: Select all
Code, edit and compile here:
\RequirePackage{fancyhdr}\pagestyle{fancy}\fancyhead[L]{\if \thepage 1\test@semester \hspace{15mm} \test@class\ \ --\ \ Test \test@test \\ Justify ALL work using complete sentences! Use only \underline{methods from class}.\else\fi}\fancyhead[C]{\if \thepage 1\test@testdate \linebreak\else\fi}\fancyhead[R]{\if \thepage 1NAME:\ \line(1,0){140} \\CRN:\ \line(1,0){140}\else\fi}\fancyfoot[L]{\if \thepage \getpagerefnumber{LastPage}\textbf{Honor Pledge:} I have neither given nor received help on this exam. Signed: \line(1,0){130}\else\fi}\fancyfoot[C]{\if \thepage 1\thepage/\pageref{LastPage}\else\fi}\fancyfoot[R]{}\renewcommand\headrulewidth{0.5pt}