summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-ext/biblatex-ext-oa-doiapi.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-ext/biblatex-ext-oa-doiapi.sty')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-ext/biblatex-ext-oa-doiapi.sty16
1 files changed, 9 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-ext/biblatex-ext-oa-doiapi.sty b/Master/texmf-dist/tex/latex/biblatex-ext/biblatex-ext-oa-doiapi.sty
index fd688325126..fc7764abffb 100644
--- a/Master/texmf-dist/tex/latex/biblatex-ext/biblatex-ext-oa-doiapi.sty
+++ b/Master/texmf-dist/tex/latex/biblatex-ext/biblatex-ext-oa-doiapi.sty
@@ -1,6 +1,6 @@
\ProvidesPackage{biblatex-ext-oa-doiapi}
- [2019/02/08 v0.7 Obtain open access information from DOI via unpaywall.org
- and doi.org (MW)]
+ [2019/04/04 v0.7a Obtain open access information from DOI via
+ unpaywall.org and doi.org (MW)]
\RequirePackage{etoolbox}
@@ -32,13 +32,15 @@
% from Manuel Pégourié-Gonnar's luacode (https://ctan.org/pkg/luacode)
% licensed under LPPL 1.3c
\def\extblx@oa@api@luastring#1{"\luaescapestring{#1}"}
-\def\extblx@oa@api@luastringN#1{\extblx@oa@api@luastring{\unexpanded{#1}}}
+\def\extblx@oa@api@luastringN#1{%
+ \extblx@oa@api@luastring{\unexpanded{#1}}}
% no local here, since that would restrict the assignment to
% this \directlua only, that would be too local
\directlua{blxextdoiapi = require("blxextdoiapi")}
-% The oai file should contain a (global!) Lua table with the relevant OA data
+% The oai file should contain a (global!) Lua table with the relevant
+% OA data
\IfFileExists{\jobname.oai}
{\extblx@oa@api@info@noline{%
Load OA database from\MessageBreak
@@ -79,7 +81,7 @@
}%
}
-\AtBeginDocument{%
+\AtEndPreamble{%
\ifcsundef{extblx@oa@api@mailset}
{\extblx@oa@api@warning@noline{%
No mail address declared.\MessageBreak
@@ -101,8 +103,8 @@
% biblatex-ext is released under the LaTeX Project Public License v1.3c
% or later.
%
-% A complete list of files included in that package can be found in README.md
-% or - failing that - in ext-standard.bbx.
+% A complete list of files included in that package can be found in
+% README.md or - failing that - in ext-standard.bbx.
%
% Official releases of this package are on CTAN
% https://www.ctan.org/pkg/biblatex-ext