From 7c46a832ab35fe8fc260808e288b9bb4cd917333 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Thu, 20 Aug 2020 21:10:23 +0000
Subject: adjustbox (20aug20)

git-svn-id: svn://tug.org/texlive/trunk@56140 c570f23f-e606-0410-a88d-b1316a301751
---
 .../texmf-dist/tex/latex/adjustbox/adjustbox.sty   | 35 ++++++++++++++++++----
 1 file changed, 30 insertions(+), 5 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/adjustbox/adjustbox.sty')

diff --git a/Master/texmf-dist/tex/latex/adjustbox/adjustbox.sty b/Master/texmf-dist/tex/latex/adjustbox/adjustbox.sty
index c12de75fadb..37377f0a6eb 100644
--- a/Master/texmf-dist/tex/latex/adjustbox/adjustbox.sty
+++ b/Master/texmf-dist/tex/latex/adjustbox/adjustbox.sty
@@ -1,4 +1,4 @@
-%% Copyright (C) 2011-2019 by Martin Scharrer <martin@scharrer-online.de>
+%% Copyright (C) 2011-2020 by Martin Scharrer <martin@scharrer-online.de>
 %% ----------------------------------------------------------------------
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either version 1.3
@@ -16,8 +16,8 @@
 %% and the derived file adjustbox.sty.
 %%
 \ProvidesPackage{adjustbox}[%
-    2019/01/04
-    v1.2
+    2020/08/19
+    v1.3
     Adjusting TeX boxes (trim, clip, ...)]
 \RequirePackage{xkeyval}
 \RequirePackage{adjcalc}
@@ -38,6 +38,12 @@
 \DeclareOptionX<Adjbox>{defaultunit}{\AtEndOfPackage{\adjcalcset{defaultunit={#1}}}}
 \DeclareOptionX<Adjbox>{pgf}{\PassOptionsToPackage{pgf}{trimclip}}
 \DeclareOptionX<Adjbox>{PGF}{\PassOptionsToPackage{pgf}{trimclip}\AtEndOfPackage{\RequirePackage{pgf}\adjcalcset{pgfmath}}}
+\DeclareOptionX<Adjbox>{draft}{\PassOptionsToPackage{draft}{graphicx}}
+\DeclareOptionX<Adjbox>{final}{\PassOptionsToPackage{final}{graphicx}}
+\DeclareOptionX<Adjbox>{hiderotate}{\PassOptionsToPackage{hiderotate}{graphicx}}
+\DeclareOptionX<Adjbox>{hidescale}{\PassOptionsToPackage{hidescale}{graphicx}}
+\DeclareOptionX<Adjbox>{hiresbb}{\PassOptionsToPackage{hiresbb}{graphicx}}
+\DeclareOptionX<Adjbox>{demo}{\PassOptionsToPackage{demo}{graphicx}}
 \DeclareOptionX*{%
     \IfFileExists{tc-\CurrentOption.def}{%
         \PassOptionsToPackage\CurrentOption{trimclip}%
@@ -623,7 +629,11 @@
 \adjbox@copy@key{bblly}
 \adjbox@copy@key{bburx}
 \adjbox@copy@key{bbury}
+\adjbox@copy@key{bb}
+\adjbox@copy@key{command}
 \adjbox@copy@key{decodearray}
+\adjbox@copy@key{draft}
+\adjbox@copy@key{ext}
 \adjbox@copy@key{intent}
 \adjbox@copy@key{interpolate}
 \adjbox@copy@key{maskarray}
@@ -631,12 +641,14 @@
 \adjbox@copy@key{natwidth}
 \adjbox@copy@key{ocobjnum}
 \adjbox@copy@key{ocobjref}
-\adjbox@copy@key{page}
+\adjbox@copy@key{origin}
 \adjbox@copy@key{pagebox}
-\adjbox@copy@key{print}
+\adjbox@copy@key{page}
 \adjbox@copy@key{quiet}
+\adjbox@copy@key{read}
 \adjbox@copy@key{resetcolor}
 \adjbox@copy@key{resolution}
+\adjbox@copy@key{type}
 \adjbox@copy@key{xmpfile}
 \newcommand\rndcornersbox{%
     \collectboxcheckenv{rndcornersbox}%
@@ -926,6 +938,15 @@
 \define@key\adjbox@fam{noindent}[]{%
     \noindent
 }
+\define@key\adjbox@fam{leavevmode}[]{%
+    \leavevmode
+}
+\define@key\adjbox@fam{process}[]{%
+    \sbox\collectedbox{\adjbox@esetsize\the\toks@}%
+    \collectbox@setdims
+    \def\adjustbox@content{\usebox\collectedbox}%
+    \toks@{{\adjustbox@content}}
+}
 \define@key\adjbox@fam{raise}{%
     \@ifnextchar\bgroup{%
         \adjbox@raise
@@ -1163,6 +1184,7 @@
     \fi
 }
 \def\adjbox@@frame#1#2#3#4{%
+    \leavevmode
     \ifx\@nnil#2\@nnil\else
         \adjsetlength\fboxrule{#2}%
     \fi
@@ -1525,6 +1547,9 @@
 \define@key\adjbox@fam{llap}[]{%
     \adjbox@Gin@Add{\lapbox{-\width}}%
 }
+\define@key\adjbox@fam{clap}[]{%
+    \adjbox@Gin@Add{\lapbox[0pt]{-0.5\width}}%
+}
 \newcommand*\lapbox[2][\width-\@tempdimb]{%
     \collectboxcheckenv{lapbox}%
     \@collectbox{\@lapbox{#1}{#2}}%
-- 
cgit v1.2.3

