W3C home > Mailing lists > Public > www-style@w3.org > September 2008

RE: [page][gcpm] should a named page start on a new page?

From: Refstrup, Jacob Grundtvig <jacob.refstrup@hp.com>
Date: Thu, 11 Sep 2008 23:22:02 +0000
To: Håkon Wium Lie <howcome@opera.com>, marbux <marbux@gmail.com>
CC: "www-style@w3.org" <www-style@w3.org>
Message-ID: <59DD1BA8FD3C0F4C90771C18F2B5B53A3746F1C253@GVW0432EXB.americas.hpqcorp.net>

Håkon wrote:
> Also sprach marbux:
>
> ...removed...
>  > 8. A book contains endmatter pages, e.g.:
>  >
>  > 8(a). Appendices that require continuation of the book's page
>  > numbering but different page headers that include the
> appendix number
>  > and title.
>
> This is a good use case. This style sheet should work:
>
>   @page chapter {
>      @bottom-center { content: counter(page) }
>   }
>   @page appendix {
>      @top-center { content: "Appendix " counter(appendix) ":
> " string(title) }
>      @bottom-center { content: counter(page) }
>   }
>
>   div.appendix { counter-increment: appendix }
>   div.chapter { counter-increment: chapter }
>   h1 { string-set: title content() }
>
>
>  > 8(b). As in 8(a) but each appendix has its own page numbering.
>
>   div.appendix { counter-reset: page }
>

What if these pages need to be referenced from a toc? Sometimes pages in appendices are numbered A-1, A-2, ... --- there may already exit the mechanism to do this but I think it would be a good use case to add.

- Jacob
Received on Thursday, 11 September 2008 23:24:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:12 GMT