Document ClassesLandscape mode for page number as well (Memoir article)

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
JMB
Posts: 2
Joined: Thu Nov 27, 2008 4:23 pm

Landscape mode for page number as well (Memoir article)

Post by JMB »

Hi there,

how do I get the page number to be in landscape mode like the regular text?

It should be placed on the right edge if the paper is standing upright! And it should be rotated 90 degrees like the rest of the landscaped text.
I hope you understand.. Please ask if you need more info.

I am using memoir (article) and have tried both with lscape and pdflscape, but it doesn't seem to help :(
And I can't find any usable info about it in memman.pdf, lscape.pdf or pdflscape.pdf. (I'm on a mac with MacTeX 2007).

Small example:

Code: Select all

\documentclass[11pt,a4paper,openany,article,final]{memoir}
\usepackage[english]{babel}
\usepackage[left=2.0cm,top=2.0cm,bottom=2.4cm,right=2.0cm]{geometry}
\usepackage{blindtext}
\usepackage{lscape}
%\usepackage{pdflscape}
\pagestyle{plain}
\begin{document}

AAA \Blindtext

\begin{landscape}
BBB \Blindtext
\end{landscape}

CCC \Blindtext

\end{document}
Thanks in advance,
Johan

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Landscape mode for page number as well (Memoir article)

Post by localghost »

Add landscape to the list of options for the document class instead of using the lscape package.


Best regards and welcome to the board
Thorsten¹
JMB
Posts: 2
Joined: Thu Nov 27, 2008 4:23 pm

Landscape mode for page number as well (Memoir article)

Post by JMB »

The landscape option makes the entire document landscape, which is not what I want :(

I only want a single page to be landscaped, but I wan't the page number on that page to be in landscape mode too...

ASCII sketch:

Code: Select all

.-----.
|...  |
|     |
|  1  |
'-----'

.-----.
|     |
|:   2|
|:    |
'-----'

.-----.
|...  |
|     |
|  3  |
'-----'
Note that the '2' should be rotated 90 degrees to the left.
Johandicap
Posts: 3
Joined: Thu Sep 04, 2008 11:44 am

Re: Landscape mode for page number as well (Memoir article)

Post by Johandicap »

Bump..
I know it's kinda tricky but I hope someone can figure it out! It doesn't matter that much if it is for memoir or not.
Despite thorough searching of the Interwebs I have not been able to find a solution :(

/ Johan
phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

Landscape mode for page number as well (Memoir article)

Post by phi »

Perhaps you can create a second document only for this page. There you can do anything you want, including using the landscape option. Then you can include the resulting PDF using pdfpages.
Another possibility could be doing some trickery with everyshi (the page number is printed during shipout), but I don't know exactly how this could go.
Johandicap
Posts: 3
Joined: Thu Sep 04, 2008 11:44 am

Re: Landscape mode for page number as well (Memoir article)

Post by Johandicap »

Yes, the second document merge is a way to go but I was hoping this could be avoided.. It is my fallback solution.

I have never heard of "everyshi", I will look into that when my exams are over :S
Thanks phi.

I will still keep this thread open so other ideas can come along :)
Post Reply