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;
Theses, Books, Title pages ⇒ Make page numbers on bottom in landscape page
Make page numbers on bottom in landscape page
This is the output of the page numbering
the whole file output is here below
the whole file output is here below
- Stefan Kottwitz
- Site Admin
- Posts: 10290
- Joined: Mon Mar 10, 2008 9:44 pm
Make page numbers on bottom in landscape page
A solution from John Kormylo here, is add to your preamble:
Stefan
Code: Select all
\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
\raisebox{\dimexpr -\topmargin-\headheight-\headsep-0.5\linewidth}[0pt][0pt]{%
\rlap{\hspace{\dimexpr \margin+\textheight+\footskip}%
\llap{\rotatebox{90}{\thepage}}}}%
\egroup\fi}
\AddEverypageHook{\Lpagenumber}%
LaTeX.org admin
Make page numbers on bottom in landscape page
Works well!
-
- Posts: 1
- Joined: Fri Nov 24, 2023 5:31 am
Make page numbers on bottom in landscape page
Hi! Thanks for the solution. It is also works well for me. However, the page number of portrait and landscape position appear for both. How can I off the portrait position when landscape page is used?
Thanks
Thanks
