Graphics, Figures & Tablesparagraph mode in rotatebox

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
florrat
Posts: 4
Joined: Mon Feb 21, 2011 3:54 pm

paragraph mode in rotatebox

Post by florrat »

Hello everyone,

I want to use paragraph mode inside a rotatebox, so I'm using the minipage-environment. But that doesn't work for me. I get the error "Paragraph has ended before \Grot@box@std was complete".

Is there some other way to do this? Something similar is answered here.

So I get a error when executing the code below. (of course, in this code I could easily replace \par by \\, but I want to use commands like 123 \par\vspace*{\fill} 456 in a minipage with a defined height)

Thank you

Code: Select all

\documentclass[12pt]{article}
\usepackage[english]{babel}
\usepackage{graphicx}

\begin{document}  
  
\rotatebox{180}{
\begin{minipage}{3cm}
123 \par 789
\end{minipage}
}

\end{document}
Last edited by florrat on Tue Feb 22, 2011 1:11 am, edited 1 time in total.

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

paragraph mode in rotatebox

Post by localghost »

The capabilities of the graphicx package seem not to suffice. But the rotating package manages what you want to do.

Code: Select all

\documentclass[12pt,english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{graphicx}
\usepackage{rotating}

\begin{document} 
  \begin{rotate}{180}
    \begin{minipage}{3cm}
      123\par 789
    \end{minipage}
  \end{rotate}
\end{document}

Best regards and welcome to the board
Thorsten
florrat
Posts: 4
Joined: Mon Feb 21, 2011 3:54 pm

Re: paragraph mode in rotatebox

Post by florrat »

Thank you very much. That seems to work!
Post Reply