I have a similar question to this one asked a few years ago: single landscape page with page number at the bottom?
Unfortunately the solution shown in that question doesn't seem to work any longer due to the package everypage.sty no longer existing (see So what is the everypage package replacement? and https://ctan.org/tex-archive/macros/latex/contrib/everypage)?
I have a wide (at least 12 columns) and very long (upwards of 200 rows) longtable which takes up multiple pages. I would like to display it in landscape instead of portrait.
I tried implementing the solution suggested by user John Kormylo in the above Stack question but Latex is throwing up an error that "File 'everypage.sty' not found" which makes sense if that package has been replaced somehow.
\usepackage{pdflscape}
\usepackage{longtable}
\usepackage{everypage}
%%%%the below stuff is to attempt to keep page numbers on the bottom of the page even in landscape mode.
%%%%It came from here, and all credit goes to user John Kormylo:
%%%%https://tex.stackexchange.com/questions/278113/single-landscape-page-with-page-number-at-the-bottom
\newcommand{\Lpagenumber}{\ifdim\textwidth=\linewidth\else\bgroup
\dimendef\margin=0 %use \margin instead of \dimen0
\ifodd\value{page}\margin=\oddsidemargin
\else\margin=\evensidemargin
\fi
\raisebox{\dimexpr -\topmargin-\headheight-\headsep-0.5\linewidth}[0pt][0pt]{%
\rlap{\hspace{\dimexpr \margin+\textheight+\footskip}%
\llap{\rotatebox{90}{\thepage}}}}%
\egroup\fi}
\AddEverypageHook{\Lpagenumber}%%%%%%%%%%%%
\begin{document}
\begin{landscape}
\begin{longtable}{|c|c|c|c|c|c|c|c|c|c|c|c|}
%headers and stuff go here, not relevant to my issue
\hline
StarID&$q_{EM,red}$&$q_{EM,blue}$&$q_{LAD,red}$&$q_{LAD,blue}$&StarType&$
EM_{Time}$&$LAD_{Time}$&BPred&BPblue&Cred&Cblue\
\hline
10.4285&1&1&1&0&cepheid&52.079&10.998&Incorr&Incorr&Incorr&Corr \
\hline
10.4396&1&1&1&1&cepheid&50.38&13.313&Incorr&Incorr&Incorr&Incorr \
\hline
%%%lots more lines in an identical style
\end{longtable}
\end{landscape}
\end{document}
A few notes:
-My documentclass is some specially created thesis thing made by my university (but based off of the book class) and I don't think I can share it so I wasn't sure what documentclass to use above
-My university will not allow me to mess with 1 inch margins on all sides
-I'm not stuck on using the pdflscape package, I just appreciate how readers can see the rotated page cleanly while reading the document on a screen
\pagestyle{fancy}. Note that there is only one fancy page style at a time. – John Kormylo Feb 16 '24 at 20:20