Graphics, Figures & TablesSidewaysfigure not Centered

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
annac1
Posts: 2
Joined: Thu May 06, 2010 4:40 pm

Sidewaysfigure not Centered

Post by annac1 »

I was wondering if anyone could help me...?

I'm using the 'rotating' package for jpg and eps files to put them length ways on a separate page.

I enter this...

\begin{center}
\begin{sidewaysfigure}
\includegraphics[scale=0.40]{Figure1.eps}
\caption{Figure 1}
\end{sidewaysfigure}
\end{center}

... but the pictures won't center. They either come out too far right or too far left, so that part of them is cut off.

I've also tried '\centering' and putting the pictures at the top or bottom of the page, but there was no difference.

Thank you very much.

Recommended reading 2024:

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

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

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

Sidewaysfigure not Centered

Post by localghost »

Source code is formatted with the code environment of the forum. This keeps a post clear and legible.

This useless code snippet is insufficient to reproduce the problem [1]. Probably your pictures are still to big. The code below works fine for me.

Code: Select all

\documentclass[a4paper,11pt]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[font=small,labelfont=bf,tableposition=top]{caption}
\usepackage{rotating}

\begin{document}
  \begin{sidewaysfigure}
    \centering
    \rule{0.75\textheight}{0.5\textheight}
    \caption{Dummy figure}\label{fig:dummy}
  \end{sidewaysfigure}
\end{document}
[1] View topic: Avoidable mistakes


Best regards and welcome to the board
Thorsten
annac1
Posts: 2
Joined: Thu May 06, 2010 4:40 pm

Re: Sidewaysfigure not Centered

Post by annac1 »

Thank you!

That helped, problem solved...
Post Reply