Graphics, Figures & TablesPlacement of sidewaystable in the amsbook class

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
NewOasis
Posts: 5
Joined: Fri Apr 15, 2011 1:22 am

Placement of sidewaystable in the amsbook class

Post by NewOasis »

Hi,

When using the amsbook class, MikTex 2.9 prints a sidewaystable on the left margin of a page. How to fix it and make the table placed on the center as the article class does?

\documentclass[12pt]{amsbook}
%\documentclass[12pt]{article}
\usepackage{rotating}

\begin{document}

\begin{sidewaystable}
\caption{Table}
\centering
\begin{tabular}{c}
25 \\
50
\end{tabular}
\end{sidewaystable}

\end{document}

Thanks, Jian

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Placement of sidewaystable in the amsbook class

Post by localghost »

This issue has been discussed recently [1]. The class and the package are not compatible. Consider to use another class.

[1] View topic: Two Tables in one "sidewaystable" Environment


Best regards and welcome to the board
Thorsten
NewOasis
Posts: 5
Joined: Fri Apr 15, 2011 1:22 am

Re: Placement of sidewaystable in the amsbook class

Post by NewOasis »

Thanks for the suggestion. It is really bad news for me since I have to use the amsbook class to write my dissertation.

Jian
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Placement of sidewaystable in the amsbook class

Post by localghost »

NewOasis wrote:[…] It is really bad news for me since I have to use the amsbook class to write my dissertation. […]
What is the reason to stick to this class? Probably there are alternative solutions.
NewOasis
Posts: 5
Joined: Fri Apr 15, 2011 1:22 am

Re: Placement of sidewaystable in the amsbook class

Post by NewOasis »

I am using a latex template of disseration requested by my university. The template is built on the amsbook class. I am very new to latex. I don't know how to substitude others for amsbook. I will be very thankful if you could give me some suggestion. The template class is defined as follows


Thanks, Jian
Attachments
nuthesis.cls
The used class.
(11.86 KiB) Downloaded 119 times
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Placement of sidewaystable in the amsbook class

Post by localghost »

NewOasis wrote:I am using a latex template of disseration requested by my university. The template is built on the amsbook class. […]
This is a new situation.
NewOasis wrote:[…] I don't know how to substitude others for amsbook. I will be very thankful if you could give me some suggestion. […]
I suggest to contact the class maintainer and report your problems.

And by the way, it is suggestive to put complete files into the attachment instead of posting them in the »Code« environment.
NewOasis
Posts: 5
Joined: Fri Apr 15, 2011 1:22 am

Re: Placement of sidewaystable in the amsbook class

Post by NewOasis »

Thanks for help. when I debug this problem, I find that MikTex 2.7 works very well this case putting amsbook and sidewaystable together. However, MikTex 2.8 and 2.9 don't.

Jian
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Placement of sidewaystable in the amsbook class

Post by localghost »

Might be caused by different versions of the class and package. Add the \listfiles command as very first line to your code and search the log file for the »*File List*« to compare versions.
NewOasis
Posts: 5
Joined: Fri Apr 15, 2011 1:22 am

Re: Placement of sidewaystable in the amsbook class

Post by NewOasis »

I cannot reload MikTex 2.7 now since it is out of service at miktex.org. This is a worse thing.
Post Reply