label bug with latest beta (2011.04.22)
Hi With the latest beta (2011.04.22) I cannot compile my thesis any more. I think I've narrowed it down to this minimal example: %%% \starttext \startpart[title={Table of Contents}] \completecontent[criterium=all] \stoptext %%% ! LuaTeX error /usr/share/texmf/tex/context/base/strc-lst.lua:496: no string to print stack traceback: [C]: in function 'texsprint' /usr/share/texmf/tex/context/base/strc-lst.lua:496: in function 'label' <main ctx instance>:1: in main chunk. Shouldn't be the label function something like this: function lists.label(n) local l = lists.result[n] local t = l.titledata if t then texsprint(t.label or 0) -- 0 if no label? end end Can someone confirm this? It works with the 2011.04.20 beta, logs attached. Adam
On 23-4-2011 6:25, Reviczky, Adam wrote:
Hi
With the latest beta (2011.04.22) I cannot compile my thesis any more. I think I've narrowed it down to this minimal example:
%%% \starttext \startpart[title={Table of Contents}] \completecontent[criterium=all] \stoptext %%%
! LuaTeX error /usr/share/texmf/tex/context/base/strc-lst.lua:496: no string to print stack traceback: [C]: in function 'texsprint' /usr/share/texmf/tex/context/base/strc-lst.lua:496: in function 'label' <main ctx instance>:1: in main chunk.
Shouldn't be the label function something like this: function lists.label(n) local l = lists.result[n] local t = l.titledata if t then texsprint(t.label or 0) -- 0 if no label? end end
Can someone confirm this? It works with the 2011.04.20 beta, logs attached.
more like: function lists.label(n,default) local l = lists.result[n] local t = l.titledata if t then texsprint(t.label or default or "") end end and then in strc-lst.mkiv: \edef\currentlistlabel{\ctxlua{structures.lists.label(\currentlistindex,"\currentlistlabel")}}% ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Reviczky, Adam