Skip to content

Headers and Footers #27

@bennyboer

Description

@bennyboer

Headers and footers should be separate "Template" files. Templates are *.lsc files that can be applied multiple times.

For example a file for a footer with the current date at the left, the current page in the middle and the authors name at the end.

<table>
  <table-row>
    <table-cell><var name="CURRENT_DATE"/></table-cell>
    <table-cell><var name="CURRENT_PAGE"/></table-cell>
    <table-cell><var name="AUTHOR_NAME"/></table-cell>
  </table-row>
</table>

The headers and footers are configured within the stylesheet. The following example applies the above footer template to each second page:

page:number(1..*, skip=1) {
  footer: "templates/footer.lsc";
}

Technical information

Headers and footers are always laid out first when creating a new page. This is needed as the size of the header and footer may vary for each page. Only after headers and footers are properly typeset can the page layout proceed as usual.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions