tc-pdftex.def (1442B)
1 %% Copyright (C) 2011-2012 by Martin Scharrer <martin@scharrer-online.de> 2 %% ---------------------------------------------------------------------- 3 %% This work may be distributed and/or modified under the 4 %% conditions of the LaTeX Project Public License, either version 1.3 5 %% of this license or (at your option) any later version. 6 %% The latest version of this license is in 7 %% http://www.latex-project.org/lppl.txt 8 %% and version 1.3 or later is part of all distributions of LaTeX 9 %% version 2005/12/01 or later. 10 %% 11 %% This work has the LPPL maintenance status `maintained'. 12 %% 13 %% The Current Maintainer of this work is Martin Scharrer. 14 %% 15 %% This work consists of the files trimclip.dtx, adjustbox.ins 16 %% and the derived files trimclip.sty, 17 %% tc-dvips.def, tc-pdftex.def, tc-pgf.def and tc-xetex.def. 18 %% Further author information are located in the .def files. 19 %% 20 \ProvidesFile{tc-pdftex.def}[2012/05/13 v1.0 Clipping driver for pdftex] 21 \def\@cliptoboxdim#1{% 22 \setbox#1=\hbox{% 23 \Gin@defaultbp\WIDTH{\wd#1}% 24 \Gin@defaultbp\DEPTH{\dp#1}% 25 \@tempdima\ht#1% 26 \advance\@tempdima\dp#1% 27 \Gin@defaultbp\TOTALHEIGHT{\@tempdima}% 28 \pdfsave 29 \pdfliteral direct {% 30 0 -\DEPTH\space \WIDTH\space \TOTALHEIGHT\space re W n 31 }% 32 \hbox to 0pt{\copy#1\hss}% 33 \pdfrestore 34 \hskip \wd#1 35 }% 36 } 37 \endinput 38 %% 39 %% End of file `tc-pdftex.def'.