I use pdflscape to contain a table. After this page, the page number which should be at the bottom of that page is missing. How should I resume it? There is no page number at the bottom of the page.
\documentclass{article}
\usepackage{lipsum,tabularray,afterpage,geometry,pdflscape}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{fancyhdr}
\fancyhf{}
\cfoot{\thepage}
\pagestyle{fancy}
\begin{document}
\section{New section}
\lipsum{1-6}
\afterpage{\newgeometry{left=2cm,right=2cm,bottom=0.5cm,top=0.5cm}
\begin{landscape}
\pagestyle{empty}
\begin{longtblr}{
colspec={X[l,3em] X[c,4em] X[c,4em] X[c,3.5em] X[c,3em] X[c,3em] X[c,4em] X[c,2em] X[c,3em] X[c,3em] X[c,4em] X[c,4em] X[c,4em] X[c,3.5em] X[c,4em] X[c,3em] X[c,6em] X[c,3.2em]},colsep=1pt,rowhead=1
}
% \newgeometry{left=2cm,right=2cm,bottom=0.5cm,top=0.5cm}
1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18\\
1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18\\
1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18\\
1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18\\
1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18\\
1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18\\
1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18\\
1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18\\
1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18\\
1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18\\
1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18\\
1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18\\
1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18\\
1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18\\
1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18\\
1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18\\
1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18\\
1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18\\
1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18\\
1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18\\
1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18\\
1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18\\
1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18\\
1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18\\
1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18\\
1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18\\
1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18\\
1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18\\
1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18\\
1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18\\
1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18\\
1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18\\
1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18\\
1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18\\
1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18\\
1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16&17&18\\
\end{longtblr}
\end{landscape} \restoregeometry\clearpage
}
\lipsum{7-12}\lipsum{7-12}
\end{document}

\aftergroup, the page number was shown? – Y. zeng Jun 02 '22 at 06:07\lipsum[1-5], but somebody told me to use\lipsum{1-5}, so what's the difference between{ [inlipsum? – Y. zeng Jun 02 '22 at 06:09\clearpagehere, as I deleted it, all things are right. – Y. zeng Jun 02 '22 at 10:07