Git Product home page Git Product logo

Comments (6)

jsanket123 avatar jsanket123 commented on August 16, 2024 1

Thank you so much!

from msu-thesis.

amunn avatar amunn commented on August 16, 2024

Are you loading the class with the [lscape] option? The image you show is not what I would describe as the same as the portrait, since the numbering is on the long edge of the paper not the short edge. This is what the [lscape] option does.

from msu-thesis.

jsanket123 avatar jsanket123 commented on August 16, 2024

I do load the [lscape] option. What I wanted to convey through that image is both portrait and landscape have page numbers appearing at the bottom of the page.

Currently, I am using your style file and the page numbers for the landscape page appear on the left (short edge). i am not sure where I should make change in the style file.

\RequirePackage{etoolbox}
% set up landscape page numbering
% make a boolean for selecting pagestyle properly if \chapter appears in a landscape environment
\newif\ifmsu@lscapemode\msu@lscapemodefalse
\ifmsu@lscape
  \RequirePackage{pdflscape} % this will cause physical pages to be rotated in the PDF
  \AtBeginEnvironment{landscape}{\msu@lscapemodetrue} % to get chapter pagestyle correct
  \RequirePackage{tikz}
% adjust \msu@landscapeyshift to meet the thesis office requirements
% positive values will move the number closer to the bottom of the table
% 0 satisfied them for a few years and then they complained.
  \newcommand*{\msu@landscapesyshift}{3.25} % changed 5/3/2017
  \tikzset{msu landscape pagenum/.style={outer sep=1cm,above,rotate=90,yshift=\msu@landscapesyshift}}
  \makepagestyle{lscape}
  \makeevenfoot{lscape}{}{\tikz[remember picture,overlay]
      \node[msu landscape pagenum] at (current page.east)
      {\thepage};}{}
  \makeoddfoot{lscape}{}{\tikz[remember picture,overlay]
      \node[msu landscape pagenum] at (current page.east)
      {\thepage};}{}
\fi 

This is what I found in your style file which is handling page numbering for the landscape page.

from msu-thesis.

amunn avatar amunn commented on August 16, 2024

I'm sorry, I really don't understand. Instead of looking at the class code, can you attach a small compilable document using the class that shows exactly what the problem is.

from msu-thesis.

jsanket123 avatar jsanket123 commented on August 16, 2024
% !TEX TS-program = pdflatexmk
% v2.8 Testfile
\listfiles

\documentclass[lscape,chapterapp]{msu-thesis}
% lscape option is needed for this sample file to show correct placement
% of page numbers on landscape pages. If you don't have any landscape pages
% in your document, you don't need to load this option.
%\usepackage[T1]{fontenc}
%\usepackage{newtxtext,newtxmath} % If they want Times we’ll give them Times
\usepackage{amsthm,amsmath,amsfonts,amssymb}
\usepackage{bm,bbm}
\usepackage{indentfirst}
\usepackage{multirow}
\usepackage{algorithmic,float}
\floatstyle{ruled}
\restylefloat{algorithm}
\usepackage{natbib}
%\bibliographystyle{unified}
\bibliographystyle{apalike}
\usepackage{subcaption}
\usepackage{hyperref,ulem}
\usepackage{enumitem}
\usepackage{float}
\usepackage{tikz}
\usepackage{wrapfig}
\usepackage{upgreek}
\usepackage{array}
\newcolumntype{H}{>{\setbox0=\hbox\bgroup}c<{\egroup}@{}}
\usepackage{makecell}
\usepackage{rotating,longtable,booktabs, colortbl,siunitx}
\usepackage{caption} 
\usepackage{ragged2e}
\allowdisplaybreaks


\begin{document}
\mainmatter

\begin{landscape}
\begin{table}[p] 
\footnotesize
\begin{center}
\caption[Simulation study I results]{\textbf{Simulation study I results.} Simulated Conditional Quantiles for QR, BQR, QRNN and BQRNN}
\label{table:Ch2:Sim-study-1}
    \begin{tabular}{cc|r|r|r|rrr|r|rrr}
    \toprule
    Noise & Quantile & \multicolumn{1}{c|}{Obs} & \multicolumn{1}{c|}{Theo} & \multicolumn{1}{c|}{QR} & \multicolumn{3}{c|}{BQR} & \multicolumn{1}{c|}{QRNN} & \multicolumn{3}{c}{BQRNN} \\
    \multicolumn{1}{c}{$\varepsilon$} & \multicolumn{1}{c|}{$\tau$} & \multicolumn{1}{c|}{No} & \multicolumn{1}{c|}{Cond Q} & \multicolumn{1}{c|}{Cond Q} & \multicolumn{1}{c}{Cond Q} & \multicolumn{1}{c}{SD} & \multicolumn{1}{c|}{RMSE} & \multicolumn{1}{c|}{Cond Q} & \multicolumn{1}{c}{Cond Q} & \multicolumn{1}{c}{SD} & \multicolumn{1}{c}{RMSE}\\
    \midrule
    $N(0,1)$ & 
        0.05 & 20 & 17.56 & 17.19 & 17.19 & 0.60 & 0.70 & 16.98 & \textbf{17.15} & \textbf{0.34} & \textbf{0.53} \\
        &  & 50 & 37.38 & 37.69 & 37.67 & 0.74 & 0.80 & 38.80 & \textbf{39.03} & \textbf{0.68} & \textbf{1.79} \\
        &  & 100 & 42.53 & 42.45 & 42.56 & 0.92 & 0.92 & 41.43 & \textbf{41.31} & \textbf{0.69} & \textbf{1.40} \\
        & 0.50 & 20 & 20.23 & 20.23 & 20.25 & 0.37 & 0.37 & 20.23 & \textbf{20.23} & \textbf{0.51} & \textbf{0.51} \\
        &  & 50 & 42.62 & 42.87 & 42.65 & 0.31 & 0.31 & 42.62 & \textbf{42.68} & \textbf{0.77} & \textbf{0.77} \\
        &  & 100 & 48.78 & 48.81 & 48.67 & 0.39 & 0.41 & 48.78 & \textbf{48.01} & \textbf{0.97} & \textbf{1.24} \\ 
        & 0.95 & 20 & 22.90 & 21.81 & 22.38 & 0.68 & 0.86 & 21.42 & \textbf{21.85} & \textbf{0.46} & \textbf{1.15} \\
        &  & 50 & 47.86 & 47.92 & 47.70 & 0.69 & 0.71 & 47.52 & \textbf{47.19} & \textbf{0.80} & \textbf{1.04} \\
        &  & 100 & 55.02 & 54.28 & 54.20 & 0.92 & 1.24 & 53.80 & \textbf{53.47} & \textbf{1.05} & \textbf{1.88} \\
    \midrule
    $U(0,1)$ &  
        0.05 & 20 & 20.31 & 20.39 & 20.25 & 0.40 & 0.41 & 20.55 & \textbf{20.44} & \textbf{0.30} & \textbf{0.33} \\
        &  & 50 & 42.78 & 42.68 & 42.56 & 0.47 & 0.52 & 42.89 & \textbf{42.92} & \textbf{0.61} & \textbf{0.63} \\
        &  & 100 & 48.97 & 48.93 & 48.82 & 0.56 & 0.58 & 48.34 & \textbf{48.82} & \textbf{0.70} & \textbf{0.72} \\
        & 0.50 & 20 & 21.04 & 21.28 & 21.25 & 0.19 & 0.29 & 20.98 & \textbf{20.97} & \textbf{0.33} & \textbf{0.34} \\
        &  & 50 & 44.21 & 44.30 & 44.22 & 0.22 & 0.22 & 43.95 & \textbf{43.98} & \textbf{0.66} & \textbf{0.70} \\
        &  & 100 & 50.68 & 50.88 & 50.79 & 0.25 & 0.28 & 50.39 & \textbf{50.82} & \textbf{0.76} & \textbf{0.78} \\
        & 0.95 & 20 & 21.77 & 21.87 & 22.10 & 0.46 & 0.56 & 21.72 & \textbf{21.82} & \textbf{0.33} & \textbf{0.34} \\
        &  & 50 & 45.65 & 45.58 & 45.69 & 0.46 & 0.47 & 45.43 & \textbf{45.38} & \textbf{0.65} & \textbf{0.70} \\
        &  & 100 & 52.39 & 52.36 & 52.45 & 0.58 & 0.58 & 52.49 & \textbf{52.52} & \textbf{0.75} & \textbf{0.76} \\
    \midrule
    $\mathcal{E}(1)$ & 
        0.05 & 20 & 20.31 & 20.24 & 19.94 & 0.45 & 0.58 & 19.94 & \textbf{20.27} & \textbf{0.31} & \textbf{0.31} \\
        &  & 50 & 42.78 & 42.92 & 42.93 & 0.51 & 0.53 & 42.98 & \textbf{43.17} & \textbf{0.63} & \textbf{0.74} \\
        &  & 100 & 48.97 & 49.06 & 49.05 & 0.61 & 0.62 & 47.24 & \textbf{49.60} & \textbf{0.75} & \textbf{0.98} \\
        & 0.50 & 20 & 21.36 & 20.95 & 21.04 & 0.23 & 0.40 & 21.11 & \textbf{20.91} & \textbf{0.39} & \textbf{0.59} \\
        &  & 50 & 44.83 & 45.54 & 45.47 & 0.27 & 0.70 & 46.30 & \textbf{45.66} & \textbf{0.74} & \textbf{1.11} \\
        &  & 100 & 51.41 & 51.93 & 51.91 & 0.41 & 0.65 & 51.68 & \textbf{51.94} & \textbf{0.89} & \textbf{1.04} \\
        & 0.95 & 20 & 25.09 & 25.08 & 25.17 & 0.80 & 0.81 & 23.73 & \textbf{24.27} & \textbf{0.79} & \textbf{1.14} \\
        &  & 50 & 52.17 & 53.15 & 52.61 & 0.90 & 1.00 & 54.98 & \textbf{54.43} & \textbf{1.24} & \textbf{2.58} \\
        &  & 100 & 60.15 & 61.24 & 60.75 & 1.06 & 1.22 & 59.87 & \textbf{62.96} & \textbf{1.46} & \textbf{3.17} \\
    \bottomrule
\end{tabular}
\\[10pt] \vspace{-5mm}
\caption*{{\footnotesize Obs No: Observation Number; Theo: Theoretical; Cond Q: Conditional Quantile; SD: Standard Deviation;\\ RMSE: Root Mean Squared Error.}}
\end{center}
\end{table}
\end{landscape}

\end{document}

from msu-thesis.

amunn avatar amunn commented on August 16, 2024

Thanks. As described in §5.10 of the documentation, you need to use the following structure for landscape pages:

\clearpage\pagestyle{lscape}
     \begin{landscape}
      ... your large table(s) or figure(s) here
     \end{landscape}
 \pagestyle{plain}

from msu-thesis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.