[tw5] Re: Create a list of numbers

2018-06-27 Thread Mohammad
Thank you Mark and Diego! I enjoyed the help from all of you. Each showed a different way to produce these numbers. Cheers Mohammad On Wednesday, June 27, 2018 at 7:17:21 PM UTC+4:30, Diego Mesa wrote: > > Mohammad, > > If you dont want the *full* formula plugin, you can also just use Evan' >

[tw5] Re: Create a list of numbers

2018-06-27 Thread 'Mark S.' via TiddlyWiki
Adding to what everyone else has said, if you use a large list of numbers, the "nth" operator, and an upper limit, then you can roll your own range operator. e.g. <> would give numbers 27 through 36. One problem is that you couldn't use "0" since "nth" is 1-based. There was another thread

[tw5] Re: Create a list of numbers

2018-06-27 Thread Diego Mesa
Mohammad, If you dont want the *full* formula plugin, you can also just use Evan' range operator directly: http://evanbalster.com/tiddlywiki/formulas.html#%24%3A%2Fplugins%2Febalster%2Fformula%2Ffilters%2Frange.js Diego On Wednesday, June 27, 2018 at 8:06:23 AM UTC-5, Mohammad wrote: > > Jed,

[tw5] Re: Create a list of numbers

2018-06-27 Thread Mohammad
Jed, BTC Thank you very much! Both code works for me! I am learning a lot for this forum! I use your code with the *concatenate* macro from Tobias Beer and now I can create any number of tiddlers (slides) by one click in my Tiddlyshow application with names like Lec01-slide01, Lec01-slide02,

[tw5] Re: Create a list of numbers

2018-06-27 Thread BurningTreeC
Hi Mohammad, I just add how I create such lists: Look at this tiddler ... it stores all integer numbers from 1 to in its list field I just do: <$list

[tw5] Re: Create a list of numbers

2018-06-27 Thread Jed Carty
If you know what a maximum n would be you can do something like this: title: $:/macro/numb tags: $:/tags/Macro list: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 \define numb(n:10 format:"<> ") <$list filter=

[tw5] Re: Create a list of numbers

2018-06-27 Thread Mohammad
Thank you Tony! Most of the time n is unknown in advance so, the question is how write a macro or a code to generate <> 0, 1, 2, 3, , n /Mohammad On Wednesday, June 27, 2018 at 10:20:41 AM UTC+4:30, TonyM wrote: > > Mohammad, > > In many cases the following may be enough? > > <$list

[tw5] Re: Create a list of numbers

2018-06-26 Thread TonyM
Mohammad, In many cases the following may be enough? <$list filter="0 1 2 3 4 5 6 7 8 9" variable="units"> <> or <$list filter="1 2 3 4 5 6 7 8 9 10 11 12" variable="set"> <> or <$list filter="0 1 2 3 4 5 6 7 8 9" variable="tens"> <$list filter="0 1 2 3 4 5 6 7 8 9" variable="units"> <><>