On 30-10-2012 16:50, Wolfgang Schuster wrote:
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 })
should be table.setmetatableindex(collected, function(t,i) sections.load() return collected[i] or { } end) ----------------------------------------------------------------- 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 -----------------------------------------------------------------