diff options
author | Dohyun Kim <nomosnomos@gmail.com> | 2015-05-05 00:31:45 +0900 |
---|---|---|
committer | Dohyun Kim <nomosnomos@gmail.com> | 2015-05-05 00:31:45 +0900 |
commit | b745a78abc326c70e7b8495e6a1657dedc91bb5c (patch) | |
tree | 95b6c8e37974feebf9a8e38034a4bdbb16cb92bd | |
parent | a3476613318cc7c815bb889011dfa73eaee4eb2c (diff) | |
download | luaotfload-b745a78abc326c70e7b8495e6a1657dedc91bb5c.tar.gz |
more fix of prev commit
-rw-r--r-- | src/luaotfload.sty | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/luaotfload.sty b/src/luaotfload.sty index e89ce86..ad0800f 100644 --- a/src/luaotfload.sty +++ b/src/luaotfload.sty @@ -46,10 +46,9 @@ \RequireLuaModule{luaotfload-main} % for compatibility with beamer class, which loads pgf package. -\expandafter\newtoks\csname pgf@sys@pgf@resource@list@extgs@toks\endcsname \ifcsname selectfont\endcsname -\AtBeginDocument{ - \@ifpackageloaded{pgf}{ + \AtBeginDocument{\@ifpackageloaded{pgf}{ + \csname newtoks\endcsname\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}} @@ -59,6 +58,7 @@ \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}} |