ListStyles-Talk

This is a talk page for improving ListStyles.


Note that the value=x option is set numerically even if you are using, for instance, the %alpha% style. So if you wanted to start a second level numbered list at D you would use this:

## %ALPHA%%item value=4%this is a fourth
## and a fifth (should be numbered E)
  1. this is a fourth
  2. and a fifth (should be numbered E)
Peter Bowers March 31, 2008, at 03:22 AM

This is nice if you know what number you want your item to have, but it defeats the purpose of having automatically numbered lists (e.g. what if you arbitrarily insert a new numbered item somewhere, now you'd have to go through all your explicit entries and reset those numbers!) it would be really nice if we could put %item value=resume% to tell the engine to pick up where it left off... shi December 31, 2007, at 03:18 PM

I strongly second this thought. The ONLY reason I ever use the renumbering is to resume when the numbers have been reset by an intervening markup. It's very awkward to have to do manual renumbering on a potentially long list with potentially many interruptions. Peter Bowers March 31, 2008, at 03:22 AM
I strongly support this, in fact some time back I added PITS.01105 - [lease vote for it, simon March 12, 2018, at 01:47 AM

See, test, comment Cookbook:ListResume. --Petko March 12, 2018, at 03:16 PM


PmWiki needs a List page, for list formatting (cf Tables), perhaps this page should be renamed to become that?

A; simon June 30, 2009, at 08:55 PMSimon


Doesn't work as expected. It 'Forgets' the nested level formats. See below:

# %ROMAN% Top level A
## %ALPHA% Second level A
## Second level
## Second level
### Third level A
#### %alpha% Fourth level A
##### %roman% Fifth level A
##### Fifth level A
#### Fourth level A
# Top level AA
## Second level B
### Third level B
#### Fourth level B
##### Fifth level B
### Third level B
# Top level A
  1. Top level A
    1. Second level A
    2. Second level
    3. Second level
      1. Third level A
        1. Fourth level A
          1. Fifth level A
          2. Fifth level A
        2. Fourth level A
  2. Top level AA
    1. Second level B
      1. Third level B
        1. Fourth level B
          1. Fifth level B
      2. Third level B
  3. Top level A

XES

It is not supposed to remember the styles of previous lists -- the wikistyles apply to the current list only. Each sub-list is different, see the HTML <ul> tags.

If you want something more consistent and easy to use, add your elaborate styles to local.css:

# %list myoutline% Top level
##  Second level
## Second level
## Second level
### Third level
#### Fourth level
##### Fifth level
##### Fifth level
#### Fourth level
# Top level
## Second level
### Third level
#### Fourth level
##### Fifth level
### Third level
# Top level
  1. Top level
    1. Second level
    2. Second level
    3. Second level
      1. Third level
        1. Fourth level
          1. Fifth level
          2. Fifth level
        2. Fourth level
  2. Top level
    1. Second level
      1. Third level
        1. Fourth level
          1. Fifth level
      2. Third level
  3. Top level

This is in local.css:

  ol.myoutline { list-style-type: upper-roman; }
  ol.myoutline ol { list-style-type: upper-alpha; }
  ol.myoutline ol ol { list-style-type: decimal; }
  ol.myoutline ol ol ol { list-style-type: lower-alpha; }
  ol.myoutline ol ol ol ol { list-style-type: lower-roman; }

--Petko

This is a talk page for improving PmWiki.ListStyles.