1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 LaTeX package 'adjustbox' ~~~~~~~~~~~~~~~~~~~~~~~~~ Copyright (c) 2011 by Martin Scharrer WWW: http://latex.scharrer-online.de/ Provides the macros \trimbox, \clipbox and \adjustbox as an addition to the macros \resizebox, \scalebox and \rotatebox from the 'graphics' package. It reuses the key=value interface of the 'graphicx' package. The 'pgf' package is used to implement the trimming and clipping operations as well as to parse the numeric values. Environment versions of the macros are also provided. Both macros and environments support verbatim content. Usage: \trimbox{ }{} Trims given amount \trimbox*{ }{} Trims to given viewport \clipbox{ }{} Clips given amount \clipbox*{ }{} Clips to given viewport \adjustbox{}{} Like graphicx's \includegraphics, but for text Supported options: width, height, totalheight, keepaspectratio, scale, angle, trim, viewport, clip The options is mandatory but can be empty for the trivial case (=\mbox). Environments: \begin{trimbox}{ } \end{trimbox} \begin{trimbox*}{ } \end{trimbox*} \begin{clipbox}{ } \end{clipbox} \begin{clipbox*}{ } \end{clipbox*} \begin{adjustbox}{} \end{adjustbox}