LyX ⇒ landscape & page numbers
-
- Posts: 8
- Joined: Thu Nov 18, 2010 8:05 pm
landscape & page numbers
I have a dissertation in Lyx (document class is article) and I have certain pages that need to appear in landscape instead of portrait. These specific pages contain long tables that won't fit in the margins in portrait mode. So I added \usepackage{pdflscape} to my preamble
\usepackage{epsfig}
\usepackage[nottoc]{tocbibind}
\usepackage{tocloft}
\usepackage{indentfirst}
\usepackage{fancyhdr}
\pagenumbering{roman}
\let\myLot\listoftables
\renewcommand\listoftables{%
\myLot
\clearpage
\pagenumbering{arabic}
}
\date{}
\@addtoreset{figure}{section}
\renewcommand{\thefigure}{\thesection.\arabic{figure}}
\@addtoreset{table}{section}
\renewcommand{\thetable}{\thesection.\arabic{table}}
\newcommand{\degree}{\ensuremath{^\circ}}
\newcommand{\thcentsignatureline}[1]{ \begin{center}
\normalsize
\vspace{8mm}
\vrule width 80mm height 0.2mm\\
\end{center}
\hspace{1.65in}}
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
{-3.25ex\@plus -1ex \@minus -.2ex}%
{1.5ex \@plus .2ex}%
{\normalfont\normalsize\bfseries}}
%\usepackage[nottoc]{tocbibind}
%\pagenumbering{roman}
%\let\myLot\listoftables
%\renewcommand\listoftables{%
%\myLot
%\clearpage
%\pagenumbering{arabic}
%}
%\date{}
%\@addtoreset{figure}{section}
%\renewcommand{\thefigure}{\thesection.\arabic{figure}}
%\@addtoreset{table}{section}
%\renewcommand{\thetable}{\thesection.\arabic{table}}
%\usepackage{indentfirst}
%\newcommand{\degree}{\ensuremath{^\circ}}
%\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
%\usepackage{epsfig}
%\usepackage{multirow}
%\usepackage[nottoc]{tocbibind}
\usepackage{setspace}
%\pagenumbering{roman}
%\let\myLot\listoftables
%\renewcommand\listoftables{%
%\myLot
%\clearpage
%\pagenumbering{arabic}
%}
%\date{}
%\@addtoreset{figure}{section}
%\renewcommand{\thefigure}{\thesection.\arabic{figure}}
%\@addtoreset{table}{section}
%\renewcommand{\thetable}{\thesection.\arabic{table}}
%\usepackage{indentfirst}
%\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
\usepackage{tocloft}
\renewcommand{\cftfigpresnum}{Figure }
\renewcommand{\cftfignumwidth}{5em}
\renewcommand{\cftfigaftersnum}{ }
\renewcommand{\cfttabpresnum}{Table }
\renewcommand{\cfttabnumwidth}{5em}
\renewcommand{\cfttabaftersnum}{ }
\renewcommand{\cftsecdotsep}{\cftdotsep}
\usepackage{pdflscape}
%\usepackage{rotating}
And then I inserted TeX code at the beginning (as in \begin{landscape}) and end (as in \end{landscape}) of the specific pages I wanted landscape. This created landscape pages. However, the page numbers are no longer on the bottom and middle of the page. Now they appear to the left and middle (see the attached screenshot). In other words, everything on the page rotates except the page numbers. How do I get the page numbers to appear consistently on the bottom middle position. Please let me know if more information about this problem is needed.
Thanks!
- Attachments
-
- screen shot of landscaped page with page number
- screenshot.gif (219.42 KiB) Viewed 4716 times
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
-
- Posts: 8
- Joined: Thu Nov 18, 2010 8:05 pm
Re: landscape & page numbers
But I'm not sure if I stated the problem clearly in my earlier post.
Basically, I just need specific pages to appear in landscape mode (which I have been able to do).
However, I need the page numbers to rotate with everything else, such that they are always at the bottom page, center position.
Thanks in advance!
landscape & page numbers
well I do not know how to rotate the page number, but I do have a suggestion

Code: Select all
\usepackage[headsepline, ilines]{scrpage2}
\pagestyle{scrheadings}
Give it a try, maybe you like it, too!
Hope that helped!
Amp