Page Layoutpdflscape conflict with \maketitle

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
sankarnkp
Posts: 4
Joined: Thu Mar 20, 2008 8:46 pm

pdflscape conflict with \maketitle

Post by sankarnkp »

Hello,
I am trying to write my thesis using the class file provided by my university. I have a long table which I want to be in landscape mode. I used pdflscape package and put the table inside \begin{landscape}.. \end{landscape} environment. A very strange (at least to me) is happening when using with \maketitle command available in the class file.
Here is the minimal working example. I have also attached the class file for debugging. The code compiles and creates a landscape page perfectly when the \maketitle is commented out. When we put that command back in, then the pages all get messed up and 1 blank page get added before and after the table and the table gets out of shape as well.

I am not able to figure out what the cause is. I would appreciate any help in this matter.

Code: Select all

Code, edit and compile here:
%**************************************************
\documentclass[letterpaper,12pt]{osuthesis}
\usepackage[english]{babel}
\usepackage{verbatim}
\usepackage{pdflscape}
\usepackage{enumerate}
\usepackage{amsmath}
\usepackage{amscd}
\usepackage{array}
\usepackage{color}
\usepackage{amsxtra}
\usepackage{amstext}
\usepackage{amssymb}
\usepackage{mathrsfs}
\usepackage{latexsym}
\usepackage{newlfont}
\usepackage{indentfirst,color}
\usepackage[semicolon]{natbib}
\usepackage{nomencl}
\usepackage{glossary}
\usepackage{multirow}
\title{My PhD Thesis}
\formattedtitle{MY PhD THESIS}
\author{My Name}
\degreeone{\ssp Bachelor of engineering \\
University 1\\
City 1, State 1, Country 1\\
year 1}
\degreetwo{\ssp Master of Science \\
University 2\\
City 2, State 2, Country 2\\
2004}
\degreesought{DOCTOR OF PHILOSOPHY}
\degreedate{September, 2009}
\majorfield{Mechanical Engineering}
\begin{document}
%\tableofcontents
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Thanks
Sankar
Attachments
osuthesis.cls
(34.88 KiB) Downloaded 230 times

Recommended reading 2024:

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

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

sankarnkp
Posts: 4
Joined: Thu Mar 20, 2008 8:46 pm

pdflscape conflict with \maketitle

Post by sankarnkp »

It seems that I fixed that problem. I am replying so that others can benefit and experts can let me know if the change I made is going to affect other parts or what that actually means.

In the class file, where the \maketitle is defined, I commented out the part where the set length is declared. So previously it was

Code: Select all

Code, edit and compile here:
\newcommand{\maketitle}% Create coverpage layout.
{\newpage \setlength{\partopsep}{0in} \setlength{\topskip}{0in}
\thispagestyle{empty}
\setcounter{page}{1}
\renewcommand{\thepage}{\roman{page}}
\begin{center}\ssp
\vspace*{1in}\par
\parbox{\widertitlewidth}{\centering \dsp \@formattedtitle}
\par\vfill\par
\if@onedegree
\parbox{\titlewidth}{\centering \dsp By \par \@author %
\@degreeone \par \ssp}
\else
\parbox{\titlewidth}{\centering \dsp By \linebreak\linebreak %
\@author \linebreak\linebreak %
\@degreeone \linebreak\linebreak %
\@degreetwo}
\fi
\par\vfill\par
Submitted to the Faculty of the\\
Mechanical \& Aerospace Engineering\\
This University\\
towards fulfillment of\\
academic requirements for\\
the Degree of\\
\@degreesought\\
\@degreedate
\end{center}
\par\ssp\vspace*{0.875in}\par\dsp% 2 inch nominal bottom margin
\newpage
\renewcommand{\thepage}{\arabic{page}}
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
I changed it to following (notice the comment in second line):

Code: Select all

Code, edit and compile here:
\newcommand{\maketitle}% Create coverpage layout.
{\newpage %\setlength{\partopsep}{0in} \setlength{\topskip}{0in}
\thispagestyle{empty}
\setcounter{page}{1}
\renewcommand{\thepage}{\roman{page}}
\begin{center}\ssp
\vspace*{1in}\par
\parbox{\widertitlewidth}{\centering \dsp \@formattedtitle}
\par\vfill\par
\if@onedegree
\parbox{\titlewidth}{\centering \dsp By \par \@author %
\@degreeone \par \ssp}
\else
\parbox{\titlewidth}{\centering \dsp By \linebreak\linebreak %
\@author \linebreak\linebreak %
\@degreeone \linebreak\linebreak %
\@degreetwo}
\fi
\par\vfill\par
Submitted to the Faculty of the\\
Mechanical \& Aerospace Engineering\\
This University\\
towards fulfillment of\\
academic requirements for\\
the Degree of\\
\@degreesought\\
\@degreedate
\end{center}
\par\ssp\vspace*{0.875in}\par\dsp% 2 inch nominal bottom margin
\newpage
\renewcommand{\thepage}{\arabic{page}}
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
It seems to me that the maketitle command is setting the global page widths and this is causing the landscape mode to act weirdly. Any comments or explanations?
jocom
Posts: 25
Joined: Fri May 07, 2010 4:28 pm

Re: pdflscape conflict with \maketitle

Post by jocom »

I dont think your action will do any harm in the future.
But it seems the \setlength's you commented out, somehow conflict with pdflscape.
Actually I don't think it will be a problem that you commented them out.

If it is a problem, you might consider to manually design your titlepage.

jocom
Post Reply