LaTeX has plenty of hidden treasures and it seems the graphics bundle is particular rich in surprises. For example, the package can crop figures on the fly (see my previous post). Recently, I was looking for a way to mirror text. Guess what, it’s the graphics bundle again. It implements commands for horizontal and vertical mirroring of text (and any other content). Neat!



Horizontal reflection

\huge\reflectbox{2}2



Vertical reflection

WOW \raisebox{\depth}{\scalebox{1}[-1]{WOW}}



Horizontal and vertical reflection

\raisebox{\depth}{\scalebox{-1}[-1]{umop episdn}}



Complete code

\documentclass[11pt]{article} \usepackage{graphicx} \begin{document} \huge\reflectbox{2}2 \par\bigskip WOW \raisebox{\depth}{\scalebox{1}[-1]{WOW}} \par\bigskip \raisebox{\depth}{\scalebox{-1}[-1]{umop episdn}} \par\bigskip \end{document}

Found on tex.SX.

Share this: Twitter

Facebook

Reddit

LinkedIn

Skype

Email



Like this: Like Loading...