ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* emtpy TOC (beta)
@ 2012-10-30 14:22 Peter Rolf
  2012-10-30 15:00 ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Rolf @ 2012-10-30 14:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: emtpy TOC (beta)
  2012-10-30 14:22 emtpy TOC (beta) Peter Rolf
@ 2012-10-30 15:00 ` Wolfgang Schuster
  2012-10-30 15:06   ` Peter Rolf
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2012-10-30 15:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 30.10.2012 um 15:22 schrieb Peter Rolf <indiego@gmx.net>:

> 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
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: emtpy TOC (beta)
  2012-10-30 15:00 ` Wolfgang Schuster
@ 2012-10-30 15:06   ` Peter Rolf
  2012-10-30 15:50     ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Rolf @ 2012-10-30 15:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 30.10.2012 16:00, schrieb Wolfgang Schuster:
> 
> Am 30.10.2012 um 15:22 schrieb Peter Rolf <indiego@gmx.net>:
> 
>> 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
> ___________________________________________________________________________________
> 

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: emtpy TOC (beta)
  2012-10-30 15:06   ` Peter Rolf
@ 2012-10-30 15:50     ` Wolfgang Schuster
  2012-10-30 17:06       ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2012-10-30 15:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen


Am 30.10.2012 um 16:06 schrieb Peter Rolf <indiego@gmx.net>:

> Am 30.10.2012 16:00, schrieb Wolfgang Schuster:
>> 
>> Am 30.10.2012 um 15:22 schrieb Peter Rolf <indiego@gmx.net>:
>> 
>>> 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
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: emtpy TOC (beta)
  2012-10-30 15:50     ` Wolfgang Schuster
@ 2012-10-30 17:06       ` Hans Hagen
  0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2012-10-30 17:06 UTC (permalink / raw)
  To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users

On 30-10-2012 16:50, Wolfgang Schuster wrote:
>
> Am 30.10.2012 um 16:06 schrieb Peter Rolf <indiego@gmx.net>:
>
>> Am 30.10.2012 16:00, schrieb Wolfgang Schuster:
>>>
>>> Am 30.10.2012 um 15:22 schrieb Peter Rolf <indiego@gmx.net>:
>>>
>>>> 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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-10-30 17:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-30 14:22 emtpy TOC (beta) Peter Rolf
2012-10-30 15:00 ` Wolfgang Schuster
2012-10-30 15:06   ` Peter Rolf
2012-10-30 15:50     ` Wolfgang Schuster
2012-10-30 17:06       ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).