MKIV bibliography: attempt to index local 'used' (a nil value)
Hi, I get the following error with the latest beta (Arch Linux, Lua 5.2.3): ConTeXt ver: 2014.08.21 09:56 MKIV beta fmt: 2014.8.22 int: english/english .../context/tex/texmf-context/tex/context/base/publ-ini.lua:650: attempt to index local 'used' (a nil value) stack traceback: .../context/tex/texmf-context/tex/context/base/publ-ini.lua:650: in function 'enhance' .../context/tex/texmf-context/tex/context/base/publ-dat.lua:151: in function '__index' .../context/tex/texmf-context/tex/context/base/publ-ini.lua:1349: in function 'btxpreparelistentries' [\directlua]:1: in main chunk 1 \usebtxdataset [example][mkiv-publications.bib] 2 \definebtxrendering[example][dataset=example] 3 \starttext 4 \chapter{One} 5 some text.\cite[example::demo-001] 6 >> \placebtxrendering[example][criterium=all] 7 \stoptext 8 9 Minimal example: \usebtxdataset [example][mkiv-publications.bib] \definebtxrendering[example][dataset=example] \starttext \chapter{One} some text.\cite[example::demo-001] \placebtxrendering[example][criterium=all] \stoptext The following patch seems to fix the problem: *** publ-ini.lua.old 2014-08-21 13:53:31.267777602 +0200 --- publ-ini.lua 2014-08-21 13:47:52.967781191 +0200 *************** *** 647,652 **** --- 647,655 ---- local short = formatters["%t%02i"](t,mod(year,100)) local s = shorts[short] -- we could also sort on reference i.e. entries.text + if not used then + used = { } + end local u = used[tag] if u then u = u[1].entries.text -- hm
participants (1)
-
Enrique Jiménez Gallego