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... Peter
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? Wolfgang
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
Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________
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
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 -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Peter Rolf
-
Wolfgang Schuster