## Not signed in

Want to take part in these discussions? Sign in if you have an account, or apply for one below

## Site Tag Cloud

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

• CommentRowNumber1.
• CommentAuthorUrs
• CommentTimeSep 22nd 2009

A lab elf kindly pointed out that the symbols {:toc} inserted into an entry will magically automatically make a table of contents of that page appear there.

I am trying this at bordism categories following Stolz-Teichner . It did work for a moment. Now it doesn't anymore. I must have changed something sensitive, but I don't know what!

Does anyone have an idea?

• CommentRowNumber2.
• CommentAuthorUrs
• CommentTimeSep 22nd 2009
This comment is invalid XHTML+MathML+SVG; displaying source. <div> <p>Jon Awbry kindly provided help with this. He notices that typing not just</p> <blockquote> {:toc} </blockquote> <p>but</p> <blockquote> * tic {:toc} </blockquote> <p>does produce the desired result. Strange, though. Why does that hack work?</p> <p>Of course I mainly care that it does workat all, but would still be interested. Anyway, this automatic TOC is a very useful thing. We should start adding it to all entries that are a bit longer.</p> </div>
• CommentRowNumber3.
• CommentAuthorAndrew Stacey
• CommentTimeSep 22nd 2009

RTM

The table of contents works by assigning a special style to a list. It replaces said list by the table of contents (which is why the text of that list doesn't matter) but it needs a list to work. Why the writer of Maruku chose to do it that way is a question that only they can answer. I can speculate, but as I don't know then it's fairly pointless.

The point, such as there is, is that writing * tic {:toc} is not a hack but is how it is supposed to work.

• CommentRowNumber4.
• CommentAuthorUrs
• CommentTimeSep 22nd 2009

Thanks Andrew!

Is that manual already linked to from somewhere around here? I wasn't aware of that.

• CommentRowNumber5.
• CommentAuthorAndrew Stacey
• CommentTimeSep 22nd 2009

It's on the same page as where the link 'extended syntax' on the edit page links to. Admittedly not everything on that page works (specifically, the meta data doesn't seem to as it affects things outside the body of the page) but the table of contents does. I came across it while looking up some syntax for my own installation of instiki and had a vague memory of someone asking about tables of contents on the n-lab.

• CommentRowNumber6.
• CommentAuthorUrs
• CommentTimeSep 23rd 2009

Okay, thanks. Yes, in the early days we several times discusssed how nice it would be to have automatica TOCs. i had no ideas that we already did have them available!

• CommentRowNumber7.
• CommentAuthorAndrew Stacey
• CommentTimeSep 23rd 2009

Copied from 'latest changes' regarding category of fibrant objects: