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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to