diff options
author | Karl Berry <karl@freefriends.org> | 2019-01-04 21:48:42 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-01-04 21:48:42 +0000 |
commit | 0034d54351819457808cf0c8c3d6811269ad264f (patch) | |
tree | a2075cf380417a8f21031e571a834b448a3c3c92 /Master/texmf-dist/tex/latex/adjustbox/tc-pgf.def | |
parent | 0152ebfa557ae875b2135565bbc16ad01a55ab77 (diff) |
adjustbox (4jan19)
git-svn-id: svn://tug.org/texlive/trunk@49596 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/adjustbox/tc-pgf.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/adjustbox/tc-pgf.def | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/adjustbox/tc-pgf.def b/Master/texmf-dist/tex/latex/adjustbox/tc-pgf.def index 10dbef59d4c..3f852728baa 100644 --- a/Master/texmf-dist/tex/latex/adjustbox/tc-pgf.def +++ b/Master/texmf-dist/tex/latex/adjustbox/tc-pgf.def @@ -17,7 +17,7 @@ %% tc-dvips.def, tc-pdftex.def, tc-pgf.def and tc-xetex.def. %% Further author information are located in the .def files. %% -\ProvidesFile{tc-pgf.def}[2018/04/08 v2.1 trimclip fall-back clipping driver using PGF] +\ProvidesFile{tc-pgf.def}[2019/01/04 v2.2 trimclip fall-back clipping driver using PGF] \RequirePackage{pgf} \def\@cliptoboxdim#1{% \setbox#1\hbox{\begin{pgfpicture}% @@ -38,10 +38,10 @@ \pgfpatharc{180}{90}{#2}% \pgfpathlineto{\pgfpoint{\wd#1-#3}{\ht#1}}% \pgfpatharc{90}{0}{#3}% - \pgfpathlineto{\pgfpoint{\wd#1}{#4-\dp#1}}% - \pgfpatharc{0}{-90}{#4}% - \pgfpathlineto{\pgfpoint{#5}{-\dp#1}}% - \pgfpatharc{270}{180}{#5}% + \pgfpathlineto{\pgfpoint{\wd#1}{#5-\dp#1}}% + \pgfpatharc{0}{-90}{#5}% + \pgfpathlineto{\pgfpoint{#4}{-\dp#1}}% + \pgfpatharc{270}{180}{#4}% \pgfpathlineto{\pgfpoint{\z@}{\ht#1-#2}}% \pgfpathclose \pgfusepathqclip @@ -50,10 +50,14 @@ \pgfsetbaselinepointnow{\pgfpoint\z@\z@}% \end{pgfpicture}}% } -\def\@rndframearoundbox#1#2#3#4#5{% +\def\@rndframearoundbox#1#2#3#4#5#6{% \setbox#1\hbox{\begin{pgfpicture}% \adjsetlength\@tempdima{\fboxsep+.5\fboxrule}% \@marginbox#1\@tempdima\@tempdima\@tempdima\@tempdima% + \edef\@tempa{#6}% + \ifx\@empty\@tempa\else + \@clipcornersofbox{#1}{#2}{#3}{#4}{#5}% + \fi \pgfset{inner sep=\z@,outer sep=\z@,minimum size=\z@}% \pgfnode{rectangle}{base west}{\usebox#1}{}{}% \pgfusepath{}% @@ -62,10 +66,10 @@ \pgfpatharc{180}{90}{#2}% \pgfpathlineto{\pgfpoint{\wd#1-#3}{\ht#1}}% \pgfpatharc{90}{0}{#3}% - \pgfpathlineto{\pgfpoint{\wd#1}{#4-\dp#1}}% - \pgfpatharc{0}{-90}{#4}% - \pgfpathlineto{\pgfpoint{#5}{-\dp#1}}% - \pgfpatharc{270}{180}{#5}% + \pgfpathlineto{\pgfpoint{\wd#1}{#5-\dp#1}}% + \pgfpatharc{0}{-90}{#5}% + \pgfpathlineto{\pgfpoint{#4}{-\dp#1}}% + \pgfpatharc{270}{180}{#4}% \pgfpathlineto{\pgfpoint{\z@}{\ht#1-#2}}% \pgfpathclose \pgfusepath{stroke}% |