summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/adjustbox/adjpgf.def
blob: 86e71e730677d83544944c655eb2b1a81a177362 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
\RequirePackage{pgf}
\def\@clipbox#1#2#3#4#5{%
    \@trimbox{#1}{#2}{#3}{#4}{#5}%
    \setbox#5\hbox{\begin{pgfpicture}%
        \pgfpathmoveto{\pgfqpoint\z@{-\dp#5}}%
        \pgfpathlineto{\pgfqpoint\z@{\ht#5}}%
        \pgfpathlineto{\pgfqpoint{\wd#5}{\ht#5}}%
        \pgfpathlineto{\pgfqpoint{\wd#5}{-\dp#5}}%
        \pgfpathclose
        \pgfusepathqclip
        \pgfset{inner sep=\z@,outer sep=\z@,minimum size=\z@}%
        \pgfnode{rectangle}{base west}{\usebox#5}{}{}%
        \pgfsetbaselinepointnow{\pgfpoint\z@\z@}%
    \end{pgfpicture}}%
}
\endinput
%%
%% End of file `adjpgf.def'.