Document 516

The LaTeX rotating package

Version: 3.x, 4.x, 5.x - Scientific WorkPlace & Scientific Word

The rotating package implements three environments within which in-line figures, tables, and captions can be rotated by an arbitrary number of degrees. Two additional environments allow rotation of floating objects, which are typeset alone on separate pages.

Note that the TrueTeX Previewer provided with SWP and SW doesn't support rotation; you must use a different DVI previewer and print driver if you want to use the rotating package to rotate elements in a DVI file. The package options include many drivers. However, PDF viewers support rotation, so you can use the package to rotate elements in typeset PDF files.

You must enter rotating environments as TeX commands in encapsulated TeX fields, one to begin and another to end the environment. The information to be rotated sits between the two.

How to rotate in-line figures, tables, or captions

  1. Add the rotating package to your document.
  2. Place the insertion point where you want the rotation to begin.
  3. Begin the rotation environment:
    1. Enter an encapsulated TeX field.
    2. In the entry area, type \begin{command}{x} where command is one of the available environments:
      Environment Effect
      sideways Print the contents of the environment turned 90 degrees.
      turn Print the contents of the environment turned an arbitrary
      number of degrees.
      rotate Print the contents of the environment turned an arbitrary
      number of degrees (space for the rotated result
      isn't necessarily created).
      and x is the number of degrees to be rotated. When x is positive, the rotation is counterclockwise; when x is negative, clockwise. The sideways command doesn't require a degree argument.
    3. Choose OK.
  4. Enter the figure, table, or caption to be rotated.
  5. End the rotation environment:
    1. Enter an encapsulated TeX field.
    2. In the entry area, type \end{command} where command is the rotation environment.
    3. Choose OK.

How to rotate floating figures, tables, or captions

  1. Add the rotating package to your document.
  2. Place the insertion point where you want the rotation to begin.
  3. Begin the rotation environment:
    1. Enter an encapsulated TeX field.
    2. Type \begin{sidewaysfigure}\centering

      or

      \begin{sidewaystable}\centering.

    3. Choose OK.
  4. Enter an in-line table or an in-line graphic.
  5. If you want a caption,
    1. Enter an encapsulated TeX field.
    2. In the entry area, type \caption{text} where text is the text of the caption.
    3. Choose OK.
  6. If you want to add cross-references to the table or figure, enter a marker.
  7. End the rotation environment:
    1. Enter an encapsulated TeX field.
    2. In the entry area, type \end{sidewaysfigure} or \end{sidewaystable}.
    3. Choose OK.

The package is installed in the TCITeX/TeX/LaTeX/contrib/rotating directory.

Last revised 03/26/06

This document was created with Scientific WorkPlace.