diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/base/bibl-tra.lua')
-rw-r--r-- | Master/texmf-dist/tex/context/base/bibl-tra.lua | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/context/base/bibl-tra.lua b/Master/texmf-dist/tex/context/base/bibl-tra.lua index 6341898eef5..6a70160230e 100644 --- a/Master/texmf-dist/tex/context/base/bibl-tra.lua +++ b/Master/texmf-dist/tex/context/base/bibl-tra.lua @@ -1,4 +1,4 @@ -if not modules then modules = { } end modules ['bibl-bib'] = { +if not modules then modules = { } end modules ['bibl-tra'] = { version = 1.001, comment = "this module is the basis for the lxml-* ones", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", @@ -33,6 +33,12 @@ local template = utilities.strings.striplong([[ \bibdata{%s} ]]) +local bibtexbin = environment.arguments.mlbibtex and "mlbibcontext" or "bibtex" + +directives.register("publications.usemlbibtex", function(v) + bibtexbin = v and "mlbibcontext" or "bibtex" +end) + function hacks.process(settings) local style = settings.style or "" local database = settings.database or "" @@ -41,16 +47,16 @@ function hacks.process(settings) interfaces.showmessage("publications",3) io.savedata(file.addsuffix(jobname,"aux"),format(template,style,database)) if trace_bibtex then - report_tex("processing bibtex file '%s'",jobname) + report_tex("processing bibtex file %a using %a",jobname,bibtexbin) end - os.execute(format("bibtex %s",jobname)) + os.execute(format("%s %q",bibtexbin,jobname)) -- purge 'm end end function hacks.register(str) if trace_bibtex then - report_tex("registering bibtex entry '%s'",str) + report_tex("registering bibtex entry %a",str) end registered[#registered+1] = str ordered[str] = #registered @@ -115,7 +121,7 @@ function hacks.registerplaced(str) end function hacks.doifalreadyplaced(str) - commands.testcase(used[str]) + commands.doifelse(used[str]) end -- we ask for <n>:tag but when we can't find it we go back |