Flip/Rotate LaTeX images

LaTeX rotation and flipping of text and images may be accomplished via graphicx.

Rotating images in graphicx displayable format is accomplished by replacing Hello. with

\includegraphics[]{myimg.png}

Note that optional trim=left lower right upper is flipped vertically too. Trimming “lower” actually trims “upper”.

Rotation

\rotatebox[origin=c]{90}{Hello.}
90
degrees of rotation counter-clockwise
origin=c
rotate about center of object

Vertical flip

\scalebox{1}[-1]{Hello.}

Horizontal flip

\scalebox{-1}[1]{Hello.}

Minimal working example

\documentclass[]{article}

\usepackage{graphicx}

\begin{document}

90 degree rotation \rotatebox[origin=c]{90}{Hello.}

Vertical Flip \scalebox{1}[-1]{Hello.}

Horizontal Flip \scalebox{-1}[1]{Hello.}

\end{document}  

Notes

Categories:

Updated:

Leave a Comment