You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jspwiki.apache.org by Gary Kephart <ga...@pobox.com> on 2021/09/07 06:33:58 UTC

Ordered lists broken into columns restart numbering

Is there any way to break a long ordered list into columns and still 
retain the same numbering?

Thanks,
   Gary

-- 
Gary Kephart
Facebook: gary.kephart
Twitter: @garykephart

"The penalty that good men pay for not being interested in politics is to be governed by lesser men." -- Plato.


Re: Ordered lists broken into columns restart numbering

Posted by Gary Kephart <ga...@pobox.com>.
Thanks! That worked. :)

Gary

On 9/7/2021 5:48 AM, Juan Pablo Santos Rodríguez wrote:
> Hi Gary,
>
> there's a multi-column style [#1] that can be combined with some in-place
> css magic to achieve that:
>
> %%add-css
> .columns {
>    counter-reset: mycounter
> }
> .columns ol {
>    list-style: none;
> }
> .columns ol li:before {
>    counter-increment: mycounter;
>    content: counter(mycounter) ". ";
> }
> /%
>
> #qwe
> #qwe
>
> %%columns
> #asd
> #asd
> ----
> #asd
> #asd
> ----
> #asd
> #asd
> /%
>
> #zxc
> #zxc
> #zxc
>
> should retain numbering inside the columns, but not for the other numbered
> lists (qwe and zxc should begin at 1, whereas asd lists on second and third
> column should begin at 3 and 5). Each %%column section should begin at 1
> too.
>
> HTH,
> juan pablo
>
>
> [#1]: https://jspwiki-wiki.apache.org/Wiki.jsp?page=Multi Columns Style
>
> On Tue, Sep 7, 2021 at 8:34 AM Gary Kephart <ga...@pobox.com> wrote:
>
>> Is there any way to break a long ordered list into columns and still
>> retain the same numbering?
>>
>> Thanks,
>>     Gary
>>
>> --
>> Gary Kephart
>> Facebook: gary.kephart
>> Twitter: @garykephart
>>
>> "The penalty that good men pay for not being interested in politics is to
>> be governed by lesser men." -- Plato.
>>
>>


-- 
Gary Kephart
Facebook: gary.kephart
Twitter: @garykephart

"The penalty that good men pay for not being interested in politics is to be governed by lesser men." -- Plato.


Re: Ordered lists broken into columns restart numbering

Posted by Juan Pablo Santos Rodríguez <ju...@gmail.com>.
Hi Gary,

there's a multi-column style [#1] that can be combined with some in-place
css magic to achieve that:

%%add-css
.columns {
  counter-reset: mycounter
}
.columns ol {
  list-style: none;
}
.columns ol li:before {
  counter-increment: mycounter;
  content: counter(mycounter) ". ";
}
/%

#qwe
#qwe

%%columns
#asd
#asd
----
#asd
#asd
----
#asd
#asd
/%

#zxc
#zxc
#zxc

should retain numbering inside the columns, but not for the other numbered
lists (qwe and zxc should begin at 1, whereas asd lists on second and third
column should begin at 3 and 5). Each %%column section should begin at 1
too.

HTH,
juan pablo


[#1]: https://jspwiki-wiki.apache.org/Wiki.jsp?page=Multi Columns Style

On Tue, Sep 7, 2021 at 8:34 AM Gary Kephart <ga...@pobox.com> wrote:

> Is there any way to break a long ordered list into columns and still
> retain the same numbering?
>
> Thanks,
>    Gary
>
> --
> Gary Kephart
> Facebook: gary.kephart
> Twitter: @garykephart
>
> "The penalty that good men pay for not being interested in politics is to
> be governed by lesser men." -- Plato.
>
>