Numbered list starting from a specific number

94 views
Skip to first unread message

Mario Public

unread,
Mar 30, 2020, 4:10:50 AM3/30/20
to TiddlyWiki
I can use

# a
# b

to obtain

1. a
2. b

How can I set the list to start from a specific number? My goal is to obtain

48. a
49. b

Thanks

Mario

PMario

unread,
Mar 30, 2020, 4:41:15 AM3/30/20
to TiddlyWiki
On Monday, March 30, 2020 at 10:10:50 AM UTC+2, Mario Public wrote:

How can I set the list to start from a specific number? My goal is to obtain

48. a
49. b

I'm a bit confused. You increment both. The "number" and the "index". So for me it would be

48.a
48.b

49.a
49.b

and so on.

have fun!
Mario

PMario

unread,
Mar 30, 2020, 4:44:50 AM3/30/20
to TiddlyWiki
Hi,

The problem with CSS numbering is, that it can change if a tiddler is transcluded. So if you do reference eg: 48.a from an other tiddler, IMO it would be much better, to use "hyperlinks" to tiddler titles and heading names.

BUT it's also very "brittle". ... Most of the time, we create lists dynamically based on tags or fields. So the numbering can change at any time.

-mario

TonyM

unread,
Mar 30, 2020, 5:19:09 AM3/30/20
to TiddlyWiki
Mario Public

Rather than using the wikitext markup you can use html and make use of the start value.

<ol start="48">
   <li>That which One and two belong</li>
   <ol>
      <li>One</li>
      <li>Two</li>
   <ol>
</ol>

Note you could also have a list widget around the <li><<currentTiddler>></li> and it will still be honored.

However with lists they will number as many items as there are.

You will have to play with more html/css to get the a/b rather than 1/2 etc...


Regards
Tony

Mario Public

unread,
Mar 30, 2020, 6:39:13 AM3/30/20
to TiddlyWiki
Thanks to everyone.
Maybe I was unclear. The list must contain  a specific sequence like

48. xyx
49. xyz
50. xyz

I tried the html

<ol start="48">
   <li>That which One and two belong</li>
   <ol>
      <li>One</li>
      <li>Two</li>
   <ol>
</ol>


I was unsuccesful. Should I change the tiddler type to text/html?
Insert a full html header, body etc?
Thanks
Mario

Mohammad

unread,
Mar 30, 2020, 6:52:56 AM3/30/20
to TiddlyWiki
It works! No need to change the type!
TW5 supports html tags like ol

Mario Public

unread,
Mar 30, 2020, 8:24:27 AM3/30/20
to tiddl...@googlegroups.com
Confirmed!
Great

Thanks

Mario

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/FG074BdNvTg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/89ceef90-f7e5-4755-883a-6633733f9484%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages