# [Tex/LaTex] Wrong position (on separate page) of sideways figures in amsart

amsartfloatsrotating

I run into a problem when running sidewaysfigure in amsart. The code below illustrates

\documentclass[a4paper,reqno]{amsart}
%\documentclass{article}
\usepackage{graphicx}
\usepackage[figuresright]{rotating}

\begin{document}

\begin{sidewaysfigure}
\centering
\rule{0.75\textheight}{0.5\textheight}
\caption{dummy figure}
\end{sidewaysfigure}

\end{document}


When I compile this in amsart the black square is not allinged correctly (the top is cut off). When I compile in article the problem goes away.

I would rather stick to amsart so am wondering if anyone has encountered this issue before / knows of a fix? I've used a combination of landscape and afterpage, which doesn't cause this issue but can lead to pretty random gaps appearing in the text and some other funnies with more figures involved, so I'd rather stick to sidewaysfigure if possible.

Pawel

I solved the issue a couple of years ago for sidewaystable, but the problem is just the same for the GuIT forum Tabelle rotating e elenchi nelle celle and the solution to the incompatibility between amsart and rotating can be adapted:

\documentclass[a4paper,reqno]{amsart}
\usepackage{graphicx}
\usepackage[figuresright]{rotating}
\newenvironment{amssidewaysfigure}
{\begin{sidewaysfigure}\vspace*{.5\textwidth}\begin{minipage}{\textheight}\centering}
{\end{minipage}\end{sidewaysfigure}}

\begin{document}

\begin{amssidewaysfigure}
\centering
\rule{0.75\textheight}{0.5\textheight}
\caption{dummy figure}
\end{amssidewaysfigure}

\end{document}


If you prefer keeping the environment's name, the usual trick works:

\documentclass[a4paper,reqno]{amsart}
\usepackage{graphicx}
\usepackage[figuresright]{rotating}

\let\ORGsidewaysfigure\sidewaysfigure
\let\ORGendsidewaysfigure\endsidewaysfigure
\renewenvironment{sidewaysfigure}
{\ORGsidewaysfigure\vspace*{.5\textwidth}\begin{minipage}{\textheight}\centering}
{\end{minipage}\ORGendsidewaysfigure}

\begin{document}

\begin{sidewaysfigure}
\centering
\rule{0.75\textheight}{0.5\textheight}
\caption{dummy figure}
\end{sidewaysfigure}

\end{document}


Save a copy of the original commands and redefine the environment as shown.