From d036e1b1dc4d59e9ce15b37af93ae0b55a50520c Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Tue, 6 Jun 2017 21:53:10 +0000
Subject: svg (24may17)

git-svn-id: svn://tug.org/texlive/trunk@44503 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/svg/svg.sty | 38 ++++++++++++++++++---------------
 1 file changed, 21 insertions(+), 17 deletions(-)

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

diff --git a/Master/texmf-dist/tex/latex/svg/svg.sty b/Master/texmf-dist/tex/latex/svg/svg.sty
index b56cd97d76f..9fa4dadd0c4 100644
--- a/Master/texmf-dist/tex/latex/svg/svg.sty
+++ b/Master/texmf-dist/tex/latex/svg/svg.sty
@@ -33,7 +33,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{svg}[%
-  2017/03/28 v2.00a\space%
+  2017/05/23 v2.00b\space%
   (include SVG pictures)%
 ]
 \RequirePackage{scrbase}[2016/06/14]
@@ -178,6 +178,8 @@
 }
 \newif\if@svg@ink@latex
 \FamilyBoolKey{SVG}{inkscapelatex}{@svg@ink@latex}
+\FamilyBoolKey{SVG}{latex}{@svg@ink@latex}
+\FamilyBoolKey{SVG}{tex}{@svg@ink@latex}
 \newcommand*\svg@ink@area{}
 \DefineFamilyKey{SVG}{inkscapearea}{%
   \FamilySetNumerical{SVG}{inkscapearea}{svg@tempa}{%
@@ -409,26 +411,28 @@
 }
 \DefineFamilyMember[.dummy]{SVG}
 \newcommand*\svg@dummy@key[2][]{%
-  \IfArgIsEmpty{#1}{%
-    \DefineFamilyKey[.dummy]{SVG}{#2}{%
-      \PackageWarning{svg}{%
-        The option key `#2' can only\MessageBreak%
-        be used with package `svg-extract', but\MessageBreak%
-        you didn't load it%
+  \@ifpackageloaded{svg-extract}{}{%
+    \IfArgIsEmpty{#1}{%
+      \DefineFamilyKey[.dummy]{SVG}{#2}{%
+        \PackageWarning{svg}{%
+          The option key `#2' can only\MessageBreak%
+          be used with package `svg-extract', but\MessageBreak%
+          you didn't load it%
+        }%
+        \FamilyKeyStateProcessed%
       }%
-      \FamilyKeyStateProcessed%
-    }%
-  }{%
-    \DefineFamilyKey[.dummy]{SVG}{#2}[{#1}]{%
-      \PackageWarning{svg}{%
-        The option key `#2' can only\MessageBreak%
-        be used with package `svg-extract', but\MessageBreak%
-        you didn't load it%
+    }{%
+      \DefineFamilyKey[.dummy]{SVG}{#2}[{#1}]{%
+        \PackageWarning{svg}{%
+          The option key `#2' can only\MessageBreak%
+          be used with package `svg-extract', but\MessageBreak%
+          you didn't load it%
+        }%
+        \FamilyKeyStateProcessed%
       }%
-      \FamilyKeyStateProcessed%
     }%
+    \AfterPackage{svg-extract}{\RelaxFamilyKey[.dummy]{SVG}{#2}}%
   }%
-  \BeforePackage{svg-extract}{\RelaxFamilyKey[.dummy]{SVG}{#2}}%
 }
 \svg@dummy@key[true]{extract}
 \svg@dummy@key{extractformat}
-- 
cgit v1.2.3

