summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/oberdiek/grffile.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/oberdiek/grffile.sty')
-rw-r--r--Master/texmf-dist/tex/latex/oberdiek/grffile.sty21
1 files changed, 13 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/oberdiek/grffile.sty b/Master/texmf-dist/tex/latex/oberdiek/grffile.sty
index f0b07a4e51e..80277691c9a 100644
--- a/Master/texmf-dist/tex/latex/oberdiek/grffile.sty
+++ b/Master/texmf-dist/tex/latex/oberdiek/grffile.sty
@@ -28,7 +28,7 @@
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{grffile}%
- [2006/08/17 v1.1 Extended file name support for graphics (HO)]
+ [2006/11/30 v1.2 Extended file name support for graphics (HO)]
\edef\grffile@RestoreCatcodes{%
\catcode`\noexpand\=\the\catcode`\=\relax
\catcode`\noexpand\:\the\catcode`\:\relax
@@ -56,6 +56,7 @@
prefix=grffile@
}
\DeclareBoolOption[true]{multidot}
+\DeclareBoolOption[true]{babel}
\DeclareBoolOption[false]{extendedchars}
\DeclareBoolOption{space}
\DeclareDefaultOption{%
@@ -85,14 +86,18 @@
}
\let\grffile@org@Ginclude@graphics\Ginclude@graphics
\renewcommand*{\Ginclude@graphics}{%
- \ifgrffile@extendedchars
+ \ifnum0\ifgrffile@babel 1\fi\ifgrffile@extendedchars 1\fi>\z@
\begingroup
- \csname @safe@activestrue\endcsname
- \edef~{\string~}%
- \grffile@inputenc@loop\^^A\^^H%
- \grffile@inputenc@loop\^^K\^^K%
- \grffile@inputenc@loop\^^N\^^_%
- \grffile@inputenc@loop\^^?\^^ff%
+ \ifgrffile@babel
+ \csname @safe@activestrue\endcsname
+ \edef~{\string~}%
+ \fi
+ \ifgrffile@extendedchars
+ \grffile@inputenc@loop\^^A\^^H%
+ \grffile@inputenc@loop\^^K\^^K%
+ \grffile@inputenc@loop\^^N\^^_%
+ \grffile@inputenc@loop\^^?\^^ff%
+ \fi
\expandafter\grffile@extchar@Ginclude@graphics
\else
\expandafter\grffile@Ginclude@graphics