Jump to content

LaTeX/Rotations

From Wikibooks, open books for an open world

LaTeX

Getting Started
  1. Introduction
  2. Installation
  3. Installing Extra Packages
  4. Basics
  5. How to get help

Common Elements

  1. Document Structure
  2. Text Formatting
  3. Paragraph Formatting
  4. Colors
  5. Fonts
  6. List Structures
  7. Special Characters
  8. Internationalization
  9. Rotations
  10. Tables
  11. Title creation
  12. Page Layout
  13. Customizing Page Headers and Footers‎
  14. Importing Graphics
  15. Floats, Figures and Captions
  16. Footnotes and Margin Notes
  17. Hyperlinks
  18. Labels and Cross-referencing
  19. Initials

Mechanics

  1. Errors and Warnings
  2. Lengths
  3. Counters
  4. Boxes
  5. Rules and Struts

Technical Text

  1. Mathematics
  2. Advanced Mathematics
  3. Theorems
  4. Chemical Graphics
  5. Algorithms
  6. Source Code Listings
  7. Linguistics

Special Pages

  1. Indexing
  2. Glossary
  3. Bibliography Management
  4. More Bibliographies

Special Documents

  1. Scientific Reports (Bachelor Report, Master Thesis, Dissertation)
  2. Letters
  3. Presentations
  4. Teacher's Corner
  5. Curriculum Vitae
  6. Academic Journals (MLA, APA, etc.)

Creating Graphics

  1. Introducing Procedural Graphics
  2. MetaPost
  3. Picture
  4. PGF/TikZ
  5. PSTricks
  6. Xy-pic
  7. Creating 3D graphics

Programming

  1. Macros
  2. Plain TeX
  3. Creating Packages
  4. Creating Package Documentation
  5. Themes

Miscellaneous

  1. Modular Documents
  2. Collaborative Writing of LaTeX Documents
  3. Export To Other Formats

Help and Recommendations

  1. FAQ
  2. Tips and Tricks

Appendices

  1. Authors
  2. Links
  3. Package Reference
  4. Sample LaTeX documents
  5. Index
  6. Command Glossary

edit this boxedit the TOC

The rotating package

[edit | edit source]

The package rotating gives you the possibility to rotate any object of an arbitrary angle. Once you have loaded it with the standard command in the preamble:

\usepackage{rotating}

you can use three new environments:

\begin{sideways}

it will rotate the whole argument by 90 degrees counterclockwise. Moreover:

\begin{turn}{30}

it will turn the argument of 30 degrees. You can give any angle as an argument, whether it is positive or negative. It will leave the necessary space to avoid any overlapping of text.

\begin{rotate}{30}

like turn, but it will not add any extra space.

If you want to make a float sideways so that the caption is also rotated, you can use

\begin{sidewaysfigure}

or

\begin{sidewaystable}

Note, though, they will be placed on a separate page.

If you would like to rotate a TikZ picture you could use sideways together with minipage.

\begin{figure}
 \begin{sideways}
  \begin{minipage}{17.5cm}
   \input{../path/to/picture}
  \end{minipage}
 \end{sideways}
 \centering
 \caption[Caption]{Caption.}
 \label{pic:picture}
\end{figure}

You can also use the \rotatebox command. Let's rotate a tabular inside a table for example:

\begin{table}[p]
	\centering
	\rotatebox{90}{
		\begin{minipage}{\textheight}
		\begin{tabular}{

Options

[edit | edit source]

Default is sidewaysfigures/sidewaystables are oriented depending on page number in two-sided documents (takes two passes).

The rotating package takes the following options.

counterclockwise/anticlockwise
In single-sided documents turn sidewaysfigures/sidewaystables counterclockwise.
clockwise
In single-sided documents turn sidewaysfigures/sidewaystables clockwise (default).
figuresright
In two-sided documents all sidewaysfigures/sidewaystables are same orientation (left of figure, table now bottom of page). This is the style preferred by the Chicago Manual of Style (broadside).
figuresleft
In two-sided documents all sidewaysfigures/sidewaystables are same orientation (left of figure, table now at top of page).

The rotfloat package

[edit | edit source]

When it is desirable to place the rotated table at the exact location where it appears in the source (.tex) file, rotfloat package may be used. Then one can use

\begin{sidewaystable}[H]

just like for normal tables. The H option can not be used without this package.


Previous: Internationalization Index Next: Tables