TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to "hide" and answer by rotating it 180 degrees.

Using \rotatebox works fine if I have a short answer:

\rotatebox{180}{The answer is $\pi$}

However, if I want to put a \begin{equation}...\end{equation} or maybe rotate a whole paragraph I get errors:

\sin^2+\cos^2 = 1 

} gives: ERROR: Missing $ inserted.





gives: ERROR: Paragraph ended before \Grot@box@std was complete.

Is there a better command to be using? or a way to make \rotatebox work for these cases?

PS. I tried using the turn environment of rotating, but while it compiled, it didn't give the desired outcome.

PPS. I tried using the packages listed in this question....to no avail.

share|improve this question
up vote 8 down vote accepted

You could use a \vbox (or a \parbox or a minipage) to box the equation:


\sin^2+\cos^2 = 1


enter image description here

share|improve this answer

You can use the adjustbox package for this:

  % ...

It also support verbatim or other complex content.

share|improve this answer
that minibox was key. I didn't realize I need to use that. Thanks. – Yossi Farjoun Oct 6 '11 at 19:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.