GeneralLandscape and page number

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
alan100
Posts: 3
Joined: Wed Jul 28, 2010 5:26 am

Landscape and page number

Post by alan100 »

Dear all,

I am trying to use \landscape to rotate a long table. It works fine with the table, but the page number moves to the upper right corner. How can I force it back to the bottom of page as other pages?

Thanks!

Recommended reading 2024:

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

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

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Landscape and page number

Post by frabjous »

What package does the command \landscape come from? It isn't standard.

Have you tried the sidewaystable environment from the rotating package?
alan100
Posts: 3
Joined: Wed Jul 28, 2010 5:26 am

Landscape and page number

Post by alan100 »

The command \landscape comes from the package lscape which provides landscape view. Actually, I oringally used rotating package & sidewaystable. It worked fine until I switiched to a new template, then rotating package started to cause problem on all figures by generating the following error message.

Code: Select all

! Extra }, or forgotten \endgroup. \color@endbox ->egroup 1.48
\end{figure}
I am not sure if rotating package is conflict with something in the class file of new template, but it just refused to work with all figures.

Either fixing landscape page number or this rotating package problem will help me.

Thanks,
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Landscape and page number

Post by frabjous »

You need to provide a minimal working example per board rules if you want any help diagnosing the problem with the rotating package. It is impossible to guess what the problem could be without any information.

It might also be possible to use the \rotatebox command provided by graphicx and similar packages, but it depends on your needs.

I don’t know of any way to achieve the effect you want with the lscape or pdflscape packages.
alan100
Posts: 3
Joined: Wed Jul 28, 2010 5:26 am

Re: Landscape and page number

Post by alan100 »

frabjou,

Here I attached my folder for diagnosing the problem. The thesis.tex is the index file and intro.tex contains the figure conflicting with \rotating problem. Thanks very much for the assistance.
Attachments
dissertation_template.zip
(150.96 KiB) Downloaded 344 times
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Landscape and page number

Post by frabjous »

That is not a minimal working example. Please actually read the pages I linked to.
latexhelp1
Posts: 141
Joined: Sun Jun 12, 2011 6:30 am

Landscape and page number

Post by latexhelp1 »

I would like to pose the same question. That is, how to realign the page number to be underneath the table (i.e. the right of the page, also rotated 90 degrees), rather than at the bottom of the page (i.e. not at the bottom of the page).

Here is sample code.

Code: Select all

    
\documentclass[12pt]{article}
    \usepackage[T1]{fontenc}
    \usepackage[margin=1in]{geometry}
    \usepackage[font=small,labelfont=bf,tableposition=top]{caption}
    \usepackage{booktabs,tabularx,threeparttable}
    \usepackage{rotating}

    \begin{document}
      \begin{sidewaystable}
        \caption{Table caption}\label{tab:dummy}
        \centering
        \begin{threeparttable}
          \begin{tabularx}{\textheight}{l*8{X}}\toprule
            & (1) & (2) & (3) & (4) & (5) & (6) & (7) & (8) \\ \midrule
            \multicolumn{9}{c}{Test} \\ \addlinespace
            Variable &  0.011\tnote{***} & 0.026\tnote{***} & -0.003\tnote{***}& -0.004\tnote{***} & -0.005\tnote{***} & -0.006\tnote{***} & -0.007\tnote{***} & -0.008\tnote{***}\\ \bottomrule\addlinespace
          \end{tabularx}
          \begin{tablenotes}
            \scriptsize
            \item[***] Notes:
          \end{tablenotes}
        \end{threeparttable}
      \end{sidewaystable}
    \end{document}
frabjous wrote:That is not a minimal working example. Please actually read the pages I linked to.
I am willing to use Adobe Professional to rotate pages if need be, but that does not take care of page numbers. In fact, I prefer for the table to come out rotated so that it is not sideways in the end. In the attached .pdf, I prefer for the landscaped table to be aligned like Table 3, although I would like the page number correctly aligned.

I very much appreciate any help you can provide.
Attachments
Test.pdf
(7.57 KiB) Downloaded 547 times
Post Reply