summaryrefslogtreecommitdiff
path: root/tex/context/base/publ-oth.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/publ-oth.lua')
-rw-r--r--tex/context/base/publ-oth.lua10
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 --