## LaTeX forum ⇒ Theses, Books, Title pages ⇒ Make page numbers on bottom in landscape page Topic is solved

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
byn
Posts: 56
Joined: Fri Jun 10, 2022 12:27 pm

### Make page numbers on bottom in landscape page

I would like to know how to make the page number in a landscape page go to the bottom of the page. The link to the minimum working example of my code is here on the link below; https://drive.google.com/file/d/1fO0s9Z ... share_link

The picture of the landscape page is shown here below;

LaTeXguide.org • LaTeX-Cookbook.net

byn
Posts: 56
Joined: Fri Jun 10, 2022 12:27 pm

### Make page numbers on bottom in landscape page

This is the output of the page numbering

page-number.JPG (113.32 KiB) Viewed 537 times

the whole file output is here below

main-landscape-page-number.pdf

Stefan Kottwitz
Posts: 9933
Joined: Mon Mar 10, 2008 9:44 pm

### Make page numbers on bottom in landscape page  Topic is solved

\usepackage{everypage}
\newcommand{\Lpagenumber}{\ifdim\textwidth=\linewidth\else\bgroup
\dimendef\margin=0 %use \margin instead of \dimen0
\ifodd\value{page}\margin=\oddsidemargin
\else\margin=\evensidemargin
\fi
\rlap{\hspace{\dimexpr \margin+\textheight+\footskip}%
\llap{\rotatebox{90}{\thepage}}}}%
\egroup\fi}
\AddEverypageHook{\Lpagenumber}%

Stefan

byn
Posts: 56
Joined: Fri Jun 10, 2022 12:27 pm

Works well!