summaryrefslogtreecommitdiff
path: root/src/luaotfload.sty
diff options
context:
space:
mode:
authorDohyun Kim <nomosnomos@gmail.com>2015-05-04 16:33:31 +0900
committerDohyun Kim <nomosnomos@gmail.com>2015-05-04 16:33:31 +0900
commit3b391191018f67233e593a5d5053d9f1ace4a509 (patch)
tree9f797d01c7cb8b2ab59f4274b565629cea7daaf8 /src/luaotfload.sty
parent1f74982cb8e0980d956f97bd9bbb75391eb67d75 (diff)
downloadluaotfload-3b391191018f67233e593a5d5053d9f1ace4a509.tar.gz
respect beamer (pgf) transparency
Diffstat (limited to 'src/luaotfload.sty')
-rw-r--r--src/luaotfload.sty12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/luaotfload.sty b/src/luaotfload.sty
index 100fb72..63d98ca 100644
--- a/src/luaotfload.sty
+++ b/src/luaotfload.sty
@@ -33,7 +33,7 @@
\csname ifluaotfloadloaded\endcsname
\let\ifluaotfloadloaded\endinput
\bgroup\expandafter\expandafter\expandafter\egroup
-\expandafter\ifx\csname ProvidesPackage\endcsname\relax
+\expandafter\ifx\csname RequirePackage\endcsname\relax
\input luatexbase.sty
\else
\NeedsTeXFormat{LaTeX2e}
@@ -45,3 +45,13 @@
\fi
\RequireLuaModule{luaotfload-main}
+% for compatibility with beamer class, which loads pgf package.
+% under non-beamer class, tikz (pgf) should be loaded before luaotfload.
+\ifcsname pgf@sys@pgf@resource@list@extgs\endcsname\else\endinput\fi
+\count255=\the\catcode`@\relax
+\catcode`@=11\relax
+\newtoks\pgf@sys@pgf@resource@list@extgs@toks
+\def\pgf@sys@pgf@resource@list@extgs{\the\pgf@sys@pgf@resource@list@extgs@toks}
+\def\pgf@sys@addpdfresource@extgs@plain#1{\global\pgf@sys@pgf@resource@list@extgs@toks
+ \expandafter{\the\pgf@sys@pgf@resource@list@extgs@toks #1}}
+\catcode`@=\the\count255\relax