Am 30.10.2012 um 16:06 schrieb Peter Rolf
Am 30.10.2012 16:00, schrieb Wolfgang Schuster:
Am 30.10.2012 um 15:22 schrieb Peter Rolf
: Hi,
I get an empty TOC for my document with the latest beta (works with 2012-10-19). I have deleted the *.tuc file (just to be sure), but still no TOC after a fresh run. Sorry, no small example yet. The document is the draft documentation of a not yet published module (won't compile without the module files). No time to look deeper into this, as I have to finish the documentation…
Do you write the manual as a normal document or in the source?
as a normal document
I can reproduce it with a minimal example: \starttext \completecontent \chapter{First chapter} \section{First section} \section{Second section} \chapter{Second chapter} \section{Third section} \section{Fourth section} \stoptext The problem is the following function in strc-doc.lua table.setmetatableindex(collected, { __index = function(t,i) sections.load() return collected[i] or { } end }) In a previous version the first line was setmetatable(collected, { and I get also the TOC when I make this change in the source but but none with table.setmetatableindex(collected, { I guess there is a reason for this change but I have no idea for which purpose. Wolfgang