If you're having to create a TOC *inside* a tiddler, then you're probably 
not following the philosophy of tiddlers 
<https://tiddlywiki.com/#Philosophy%20of%20Tiddlers>. Yes, TiddlyWiki has a 
philosophy.

The idea in TW is that each tiddler contains the smallest meaningful text. 
Sometimes what is meaningful is a paragraph. Sometimes it's a word. 
Sometimes it's an article.

Once you have all these tiddlers, you can then use tools like the TOC macro 
or the List Widget to create an index into them. If they're connected by a 
common tag, then you can also easily re-arrange them. You can slice them 
and dice them, compare them and share them.

Having said all that, there's a bug in TW that *may* allow you to index 
inside a tiddler, if you want more things in your TW than are dreamt of in 
your *philosophy* 
<http://www.shakespeare-online.com/quickquotes/quickquotehamletdreamt.html>. 


See: 

https://groups.google.com/d/topic/tiddlywiki/ikjxwjllFtE/discussion

I notice the very last link in the thread leads to a 404 error, but there 
may be other links in the discussion that you can use.

On Tuesday, December 10, 2019 at 7:32:13 AM UTC-8, Chuck R. wrote:
>
> My setup: TW5.1.19 on tiddlyspot.com, using Chrome to view and edit the 
> TW online, using Windows 7 or 10, using TW5 markup
>
> I just want a TOC at the top of tiddlers where I insert the TOC, to show a 
> list of the headers listed in that tiddler only, with links so the user can 
> click on a link in the TOC to jump to that area of the tiddler. 
>
> I've looked at some of the <<toc>> macros but I can't get them to work, 
> nor find any documentation on which parameters are required. I've tried 
> this at the top of a normal TW5 language tiddler: 
>
> <div class="tc-table-of-contents">
> <$macrocall $name="toc-selective-expandable" tag=<<currentTiddler>> >
> </div>
>
>
> But then my whole tiddler disappears when I save the changes with no TOC. 
> I can edit the tiddler again and everything is still there, but none of the 
> contents are displayed. 
>
> Is this possible? I don't want another sidebar TOC as my horizontal spaces 
> is very limited for my browser and desktop. I prefer to keep my brower tall 
> and narrow that is. 
>
> Thank you.
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/93c33642-cd89-4eb3-8113-1e773b413d3d%40googlegroups.com.

Reply via email to