diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/overpic/overpic.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/overpic/overpic.sty | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/overpic/overpic.sty b/Master/texmf-dist/tex/latex/overpic/overpic.sty index 65579d1f977..6793b4bcc34 100644 --- a/Master/texmf-dist/tex/latex/overpic/overpic.sty +++ b/Master/texmf-dist/tex/latex/overpic/overpic.sty @@ -19,7 +19,7 @@ %% version 2005/12/01 or later. %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] -\ProvidesPackage{overpic}[2024/01/04 2.0 picture overlays (RN)] +\ProvidesPackage{overpic}[2024/01/06 2.1 picture overlays (RN)] \RequirePackage{keyval,graphicx,epic} \newcommand*\OVP@scale{\z@} \define@key{OVP}{rel}{% @@ -73,14 +73,32 @@ \DeclareOption*{\PassOptionsToPackage{\CurrentOption}{graphicx}} \ExecuteOptions{percent} \ProcessOptions +\AtBeginDocument{% + \@ifpackageloaded{xkeyval}{% + \def\OVP@setkeys@relaxed{% + \let\OVP@setkeys\setkeys + \def\setkeys{\OVP@setkeys*} + } + \def\OVP@setkeys@strict{% + \let\setkeys\OVP@setkeys + } + }{% + \def\OVP@setkeys@relaxed{% + \let\OVP@KV@errx\KV@errx + \let\KV@errx\@gobble + } + \def\OVP@setkeys@strict{% + \let\KV@errx\OVP@KV@errx + } + } +} \newsavebox\OVP@box \newenvironment{overpic}[2][]{% - \let\OVP@temp=\KV@errx - \let\KV@errx\@gobble + \OVP@setkeys@relaxed \sbox\OVP@box{\includegraphics[#1]{#2}}% \count@=\z@ \OVP@gridfalse \setkeys{OVP}{#1}% - \let\KV@errx\OVP@temp + \OVP@setkeys@strict \OVP@picture{#1}% }{\endpicture} \newenvironment{Overpic}[2][]{% |