Document Classessideways tables, landscape tables

Information and discussion about specific document classes and how to create your own document classes.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

sideways tables, landscape tables

Post by Stefan Kottwitz »

kostoglotov wrote:I have tried to place \usepackage{hyperref} before \begin{sidewaystable}
but when compiling it ends up with an error...
Yes, hyperref has to be loaded inside the preamble, like all packages, before \begin{document}. Perhaps you can show us your preamble, what packages are loaded, until \begin{document}.

Stefan
LaTeX.org admin

Recommended reading 2024:

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

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

kostoglotov
Posts: 58
Joined: Sun Apr 27, 2008 12:50 pm

Re: sideways tables, landscape tables

Post by kostoglotov »

here it is...
\documentclass[oneside,11pt]{Latex/Classes/PhDthesisPSnPDF}
\usepackage{lscape}
\usepackage{rotating}

\include{Latex/Macros/MacroFile1}

\ifpdf
\pdfinfo { /Title
/Creator
/Producer
/Author
/CreationDate
/ModDate
/Subject
/Keywords }
\pdfcatalog { /PageMode (/UseOutlines)
/OpenAction (fitbh) }

\title{title}

\ifpdf
\author{}

\collegeordept{\href{http://www}{School of }}
\university{\href{http://www}{The University of }}
\crest{\includegraphics[width=4cm]{Crest.jpg}}
\fi

\degree{Philosophi\ae Doctor (PhD)}
\degreedate{May 2008}

\hbadness=10000
\hfuzz=50pt

\usepackage{hyperref}
\begin{document}
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Re: sideways tables, landscape tables

Post by Stefan Kottwitz »

Hi,

just for info: the problem was solved by using pdflscape (discussed by PM).

Stefan
LaTeX.org admin
Fred Krogh
Posts: 5
Joined: Thu Dec 11, 2008 7:35 pm

sideways tables, landscape tables

Post by Fred Krogh »

For some reason sideways table put the table on the last page, and in portrait mode although centered as if it thinks it is in landscape mode.
I'm using texlive on a gentoo linux system. The input text is as follows.

Code: Select all

\begin{sidewaystable}[t]
\caption{Results}
\centering
\begin{tabular}{rr*{16}{c}}
Case & Tol & \multicolumn{4}{c}{W = .5} & \multicolumn{4}{c}{W = .6}
& \multicolumn{4}{c}{Old R-K} & \multicolumn{4}{c}{Soderlind}\\
& & NF & Max-err & Sum-SQ & Max & Max-err & Sum-SQ & Max & Max-err &
Sum-SQ & Max & Max-err & Sum-SQ & Max\\
\end{tabular}
\end{sidewaystable}
Trying to use landscape in place of sidewaystable gives much the same, although the table appears on the next page. (That is the small part of the left side of the table that appears in portrait mode.)
Any suggestions? Many thanks,
Fred
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

sideways tables, landscape tables

Post by localghost »

Omit the optional argument for the sidewaystable environment.


Best regards and welcome to the board
Thorsten¹
Fred Krogh
Posts: 5
Joined: Thu Dec 11, 2008 7:35 pm

Re: sideways tables, landscape tables

Post by Fred Krogh »

Thanks for the reponse, dropping the [t] got the stuff on the next page, but it is still in portrait mode.
Fred
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

sideways tables, landscape tables

Post by localghost »

Fred Krogh wrote:[...] dropping the [t] got the stuff on the next page, but it is still in portrait mode. [...]
Please, proof that with a minimal working example (MWE). The following code works flawless.

Code: Select all

\documentclass[11pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[english]{babel}
\usepackage[margin=2cm]{geometry}
\usepackage{rotating}
\usepackage{lmodern}
\usepackage{blindtext}

\parindent0em

\begin{document}
  \blindtext[4]

  \begin{sidewaystable}[t]
    \caption{Results}
    \centering
    \begin{tabular}{rr*{16}{c}}
      Case & Tol & \multicolumn{4}{c}{W = .5} & \multicolumn{4}{c}{W = .6} & \multicolumn{4}{c}{Old R-K} & \multicolumn{4}{c}{Soderlind} \\
      & & NF & Max-err & Sum-SQ & Max & Max-err & Sum-SQ & Max & Max-err & Sum-SQ & Max & Max-err & Sum-SQ & Max \\
    \end{tabular}
  \end{sidewaystable}

  \blindtext[4]
\end{document}
Fred Krogh
Posts: 5
Joined: Thu Dec 11, 2008 7:35 pm

Re: sideways tables, landscape tables

Post by Fred Krogh »

And it doesn't work for me, the table still come out in potrait mode. Should I be filing a bug with texlive? Many thanks,
Fred
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

sideways tables, landscape tables

Post by localghost »

Fred Krogh wrote:And it doesn't work for me, the table still come out in potrait mode. Should I be filing a bug with texlive? [...]
A bug is very unlikely. Post the resulting output of exactly my example code as attachment to your next post.
Fred Krogh
Posts: 5
Joined: Thu Dec 11, 2008 7:35 pm

Re: sideways tables, landscape tables

Post by Fred Krogh »

I tried to send an attachement with the .dvi output, but I can't see that it reached this forum. If it didn't show up, I'll try again. Do I need to so something other than give a link to the file in the Filename field. Thanks,
Fred
Post Reply