marketing

Marketing materials (presentations, posters, flyers)
Log | Files | Refs

tc-pgf.def (1520B)


      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-pgf.def}[2012/05/13 v1.0 trimclip fall-back clipping driver using PGF]
     21 \RequirePackage{pgf}
     22 \def\@cliptoboxdim#1{%
     23     \setbox#1\hbox{\begin{pgfpicture}%
     24         \pgfpathmoveto{\pgfqpoint\z@{-\dp#1}}%
     25         \pgfpathlineto{\pgfqpoint\z@{\ht#1}}%
     26         \pgfpathlineto{\pgfqpoint{\wd#1}{\ht#1}}%
     27         \pgfpathlineto{\pgfqpoint{\wd#1}{-\dp#1}}%
     28         \pgfpathclose
     29         \pgfusepathqclip
     30         \pgfset{inner sep=\z@,outer sep=\z@,minimum size=\z@}%
     31         \pgfnode{rectangle}{base west}{\usebox#1}{}{}%
     32         \pgfsetbaselinepointnow{\pgfpoint\z@\z@}%
     33     \end{pgfpicture}}%
     34 }
     35 \endinput
     36 %%
     37 %% End of file `tc-pgf.def'.