LaTeX forum ⇒ GeneralLandscape and page number

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

Landscape and page number

Postby alan100 » Wed Jul 28, 2010 5:30 am

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!

Tags:

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

Postby frabjous » Wed Jul 28, 2010 5:56 am

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

Postby alan100 » Wed Jul 28, 2010 3:20 pm

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.

  1. ! Extra }, or forgotten \endgroup. \color@endbox ->egroup 1.48
  2. \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

Postby frabjous » Wed Jul 28, 2010 8:08 pm

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

Postby alan100 » Thu Jul 29, 2010 4:30 am

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 198 times

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

Postby frabjous » Thu Jul 29, 2010 5:02 am

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

Postby latexhelp1 » Mon Oct 24, 2011 7:43 pm

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.
  1.  
  2. \documentclass[12pt]{article}
  3. \usepackage[T1]{fontenc}
  4. \usepackage[margin=1in]{geometry}
  5. \usepackage[font=small,labelfont=bf,tableposition=top]{caption}
  6. \usepackage{booktabs,tabularx,threeparttable}
  7. \usepackage{rotating}
  8.  
  9. \begin{document}
  10. \begin{sidewaystable}
  11. \caption{Table caption}\label{tab:dummy}
  12. \centering
  13. \begin{threeparttable}
  14. \begin{tabularx}{\textheight}{l*8{X}}\toprule
  15. & (1) & (2) & (3) & (4) & (5) & (6) & (7) & (8) \\ \midrule
  16. \multicolumn{9}{c}{Test} \\ \addlinespace
  17. 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
  18. \end{tabularx}
  19. \begin{tablenotes}
  20. \scriptsize
  21. \item[***] Notes:
  22. \end{tablenotes}
  23. \end{threeparttable}
  24. \end{sidewaystable}
  25. \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 352 times


Return to “General”

Who is online

Users browsing this forum: No registered users and 8 guests