hi, hans

when building following code( also attached) using context (2024-11-01),lmtx will report an error. Is it a problem?

when change line 2596 of mkiv/publ-ini.lua from

local internal = specification.internal or ""

to

local internal = specification.internal or 0, all is ok.


\definebtxdataset[datasetA]
\usebtxdataset[datasetA][sample.bib]
\usebtxdefinitions[aps]
\definebtxrendering[renderingA][aps]
\setupbtxrendering[renderingA][
specification=aps,
dataset=datasetA,
repeat=yes,
continue=no,
]

\setupbtx[dataset=datasetA]

%%%%%%%
\starttext
\chapter[title={first chapter}]
any texts reference \cite[hh2010a]\par
if add below line ,it will produce a build error in the texprocessing.
any texts reference a bib,but not show the bib in text\usecitation[Eijkhout1991]\par
\section[title=BIBS]
\placebtxrendering[renderingA][criterium=chapter]

\chapter[title={second chapter }]
any texts reference \cite[hh2010a]\par
if add below line ,it will produce a error in the texprocessing.
any texts reference a bib,but not show the bib in text\usecitation[Eijkhout1991]\par

\section[title=BIBS]
\placebtxrendering[renderingA][criterium=chapter]

\stoptext


the error reported is:

registered function call [1678]: ...4-11-01/texmf-context/tex/context/base/mkiv/publ-ini.lua:559: attempt to compare number with string
stack traceback:
...4-11-01/texmf-context/tex/context/base/mkiv/publ-ini.lua:559: in local 'register'
...4-11-01/texmf-context/tex/context/base/mkiv/publ-ini.lua:627: in upvalue 'findallused'
...4-11-01/texmf-context/tex/context/base/mkiv/publ-ini.lua:2596: in function

........

----------------------------

zhongtian wang

Shijiazhuang YouWen Information Technology Co.,Ltd,China

13311202589 wangzht@189.cn