diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2014-06-22 16:15:04 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2014-06-22 16:15:04 +0200 |
commit | 1ecc526301d15d2acb698b6a136ea6c58483cc15 (patch) | |
tree | 514baae18c8530d94c5205d91abbf2d837727e6e /tex/context/base/publ-oth.lua | |
parent | 7aa5fe02497c01cc56d86bc4d01eb036435f2149 (diff) | |
download | context-1ecc526301d15d2acb698b6a136ea6c58483cc15.tar.gz |
2014-06-22 15:54:00
Diffstat (limited to 'tex/context/base/publ-oth.lua')
-rw-r--r-- | tex/context/base/publ-oth.lua | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tex/context/base/publ-oth.lua b/tex/context/base/publ-oth.lua index 14da19f9c..ff7e0e29c 100644 --- a/tex/context/base/publ-oth.lua +++ b/tex/context/base/publ-oth.lua @@ -66,7 +66,10 @@ end function loaders.endnote(dataset,filename) -- we could combine the next into checkfield but let's not create too messy code - loaders.lua(dataset,publications.endnotes_to_btx(io.loaddata(filename) or "")) + local dataset, fullname = publications.resolvedname(dataset,filename) + if fullname then + loaders.lua(dataset,publications.endnotes_to_btx(io.loaddata(fullname) or "")) + end end -- refman -- @@ -97,7 +100,10 @@ end function loaders.refman(dataset,filename) -- we could combine the next into checkfield but let's not create too messy code - loaders.lua(dataset,publications.refman_to_btx(io.loaddata(filename) or "")) + local dataset, fullname = publications.resolvedname(dataset,filename) + if fullname then + loaders.lua(dataset,publications.refman_to_btx(io.loaddata(fullname) or "")) + end end -- test -- |