Daniel's response is the one I found most useful.
I edited one of my files with the tag $:/tags/stylesheet and created the
bit of CSS code in Daniel's link like this:
.tw-list ol {
counter-reset: item;
}
.tw-list ol li {
display: block;
position: relative;
}
.tw-list ol li:before {
content: counters(item, ".")".";
counter-increment: item;
position: absolute;
margin-right: 100%;
right: 10px; /* space between number and text */
}
Then in the tiddler with the list I entered:
<div class="tw-list">
#This is item 1
#This is item 2
##Sub Item 1.
#Item 3
##Sub Item 1
##Sub Item 2
##Sub Item 3
</div>
which gave me
1. This is item 1
2. This is item 2
2.1 Sub Item 1.
3. Item 3
3.1 Sub Item 1
3.2 Sub Item 2
3.3 Sub Item 3
whereas without the <div class="tw-list"></div> I got this
1. This is item 1
2. This is item 2
1. Sub Item 1.
3. Item 3
1. Sub Item 1
2. Sub Item 2
3. Sub Item 3
I've been wanting to be able to turn on and off this sort of list numbering
for some time. I think this will be very helpful for me.
On Friday, September 19, 2014 1:04:55 AM UTC-5, aamaadmi wrote:
>
> i want to use list as
>
> 1 test
> 1.1 test
> 1.1.1 test
> 1.1.1.1 test
>
> and not
>
> 1 test
> 1 test
> 1 test
> 1 test
>
--
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.