[texhax] simple rotate/invert : thanks a lot!
Bryan W. Lepore
Bryan.Lepore at umassmed.edu
Tue Apr 1 16:59:17 CEST 2008
hey all, thanks for the pointers! here's what i had in mind :
\documentclass[12pt]{article}
\usepackage{graphicx}
% M. Leingang rotation/inversion
\usepackage{rotating}% provides a rotate environment
\newcommand{\rotxc}[1]{\begin{sideways}#1\end{sideways}}
\newcommand{\invert}[1]{\rotxc{\rotxc{#1}}}
\begin{document}
imagine a page here with left, top, right, bottom marked :
\begin{tabular}{|ccc|}\hline
L & T & R \\
& B & \\\hline
\end{tabular}
rotate 180$^\circ$ about $y$-axis
\begin{tabular}{|ccc|}\hline
\reflectbox{R} & \reflectbox{T} & \reflectbox{L} \\
& \reflectbox{B} & \\\hline
\end{tabular}
combine operations :
\begin{tabular}{|ccc|}\hline
& \reflectbox{\rotatebox[origin=c]{180}{B}} &
\\
\reflectbox{\rotatebox[origin=c]{180}{L}} &
\reflectbox{\rotatebox[origin=c]{180}{T}} &
\reflectbox{\rotatebox[origin=c]{180}{R}} \\\hline
\end{tabular}
cool! thanks Matthew, Martin, Edsko, Phil -- especially Rupert Swarbrick
for pointing to p.57 in the Comprehensive Latex Symbol List!
%%------------------------------------------------------------------------------------------%%
\end{document}
More information about the texhax
mailing list