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

%**************************************************
\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
\maketitle
\dsp
\setlength{\parskip}{10pt plus 1pt minus 1pt}
\newenvironment{mylist}[1][0]
%\renewcommand{\labelitemi}{{$\rightarrow$}}
 {  \begin{description}{\leftmargin=0em}   %{\labelitemi}
    \addtolength{\topsep}{-0.5\baselineskip}
    % set spacing between items
    \addtolength{\itemsep}{#1\baselineskip}
    % set spacing between lines
    \addtolength{\baselineskip}{#1\baselineskip} }
 {   \end{description} }

\begin{landscape}
\begin{table}
\ssp
\begin{center}
\caption{Summary of Literature for Study on Frost Characteristics}\label{tab:sumfrostprop}
%\begin{tabular}{c} 
%\includegraphics[height=6.6in]{CitedWork.pdf}\\ %{CitedWork.pdf}\\
\begin{tabular}{|m{0.8in}|m{0.9in}|m{5.5in}|m{1.9in}|} \hline 
Cited work & Approach & Conclusions and Correlations & Range \\ \hline 
Yonko1967 & Experimental & $k_{f} =0.0140+0.00668\rho _{f} +0.000175\rho _{f} ^{2} $ & $\rho _{f} <36\, lb/ft^{3} $ \\ \hline 
Brian1969 & Experimental \& Theoretical model & \begin{mylist}[-0.75]
	\item[-]~$\rho _{f} =f(Re,t)$ \item[-]~$\delta _{f} =f\left(\omega ,T_{p} ,\frac{1}{Re} \right)$ \item [-]~$k_{f} =f(\rho _{f} )$
\end{mylist} & \begin{mylist}[-0.75]	\item[-]~$5600<Re<14500$ \item[-]~$23~gr/lb<\omega _{a}<37~gr/lb$ \item[-] $-314~F<T_{p}<-318~F$ \end{mylist} \\ \hline 
Hayashi 1977a& Experimental &  \begin{mylist}[-0.75]\item[-]~Classified frost formation types\item[-]~Frost density and conductivity for each formation type\item[-]~$\rho _{f} =f(T_{p} ,V_{a} ,t)$ \end{mylist}& $\begin{array}{l} \text{-}~{-25^{o} C<T_{p} <0^{o} C} \\ \text{-}~{15^{o} C<T_{a} <30^{o} C} \\ \text{-}~{0.0045<\omega <0.01} \\ \text{-}~{1\, m/s<V_{a} <6\, m/s} \end{array}$ \\ \hline 
Hayashi 1977b& Experimental \& Theoretical model &  \begin{mylist}[-0.75]\item[-]~Classification of frost into different periods\item[-]~$\rho _{f} =650e^{0.277T_{p} } $ \end{mylist}& $\begin{array}{l}\text{-}~{-25^{o} C<T_{p} <0^{o} C} \\\text{-}~ {15^{o} C<T_{a} <30^{o} C} \\ \text{-}~{0.0045<\omega <0.01} \\ \text{-}~{1\, m/s<V_{a} <6\, m/s} \end{array}$ \\ \hline 
Auracher1987 & Theoretical model & \begin{mylist}[-0.75]	\item[-]~$k_{eff} =k_{cond} +k_{diff} $\item[-]~Radiation and internal natural convection effects can be neglected\end{mylist} & Not Applicable \\ \hline 
Sahin2000 & Theoretical model & $\begin{array}{l} \text{-}~{\rho _{f} =-10429.56+41.574T_{p} } \\\text{-}~{k_{f} =0.131\times 10^{-6} (1-\beta )\times \frac{h_{sg} P_{atm} P_{0} }{T_{0}^{1.94} R^{2} T^{1.06} } \left[\frac{h_{ig} }{R} \left(\frac{1}{T_{0} } -\frac{1}{T} \right)\right]+\beta .k_{ice} +(1-\beta )k_{air} } \end{array}$ & $255.15\, K<T_{p} <273.15\, K$ \\ \hline 
Yun2002 & Experimental \& Theoretical model & $\begin{array}{l}\text{-}~{y(t)=3.92\times 10^{-3} +0.069t-0.0023t^{2} +2.84\times 10^{-5} t^{3} -1.28\times 10^{-7} t^{4} } \\ \text{-}~{\frac{C_{f} }{2} =2.5\ln \left(\frac{84\delta _{bl} }{29.96y(t)+1} \right)^{-2} } \\\text{-}~{h=\rho _{a} c_{p,a} U_{\infty } (C_{f} /2)(0.9+(C_{f} /2)^{-1/2} /St_{k} )} \end{array}$ & Not Applicable \\ \hline 
\end{tabular}
\end{center}
\end{table}
\end{landscape}

\end{document}
%******************************************
Thanks
Sankar
Attachments
osuthesis.cls
(34.88 KiB) Downloaded 228 times

Recommended reading 2024:

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

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

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

\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}}
   }
I changed it to following (notice the comment in second line):

Code: Select all

\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}}
   }
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