Want to take part in these discussions? Sign in if you have an account, or apply for one below
Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.
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?
<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>
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.
Thanks Andrew!
Is that manual already linked to from somewhere around here? I wasn't aware of that.
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.
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!
Copied from 'latest changes' regarding category of fibrant objects:
The length limit is really long now, about 500 million characters. If we get that long we should contact the Guinness book of records. The problem was actually due to having a wiki-link in one of the headings. Oddly enough, there was no error message on this in the logs but changing it solved the problem (it now says “see also fibration sequence” after the heading). I imagine it’s to do with the fact that things in the table of contents are links to the sections in the document so having a wiki-link would mean that one thing (the entry in the table of contents) was a link to two places (the section and the page the wiki-link points to). As the Maruku filter is independent of the wiki, it doesn’t know of wiki-links and so doesn’t know how to handle them.
Thanks!!
1 to 8 of 8