[pmwiki-users] Page TOC listing showing up center-aligned

John Rankin john.rankin at affinity.co.nz
Thu Aug 3 21:03:31 CDT 2006

On Friday, 4 August 2006 1:11 AM, Sandy <sandy at onebit.ca> wrote:
>> I have been unable to think of a case when one would prefer
>> the toc items to be centred or right aligned, so I plan to
>> implement this change in the next release.
>> Another workaround, of course, is to centre headings via an
>> external style sheet. This would be suitable when one wants 
>> all headings of a particular level to have the same style.
>I rather like the look of a centered list at times.
>We ran into this problem with my skin, rosetrellis. I'd centered the 
>contents of the sidebar using the skin's CSS. This did not look good at 
>all when combined with the bulleted list in the sidebar at
>My recommendation:
>1a Use the skin and CSS to align the headings on individual pages, so 
>all pages look alike. This way there is no alignment info in the text 
>that gets copied to the TOC. (Ideally, there should be no style info at 
>all in the text that gets copied to the TOC. This gives the TOC routine 
>and/or the skin the most options.)

Yes, I had envisaged that a skin author could over-ride the default
toc style via css if desired to control things like the text alignment. 
In general, the style of the toc and the style of the headings should be

If, for example, one puts (:toc-page PageName:) in a side bar, then
omitting heading alignment information seems the correct thing to do. 
I'm not sure I agree that toc should copy no style info from the text. 
What if an author writes:

!!This is %red%really important%% information

I think the toc honours the author's intention by picking that up.

I'll release an update and we'll see what happens.

John Rankin

More information about the pmwiki-users mailing list