It is easy to remove the header of the first page of a chapter with a page break and page styles. But I can’t see how to remove the footer of the last page, although it is quite common too.
I could use a page break before the last page, and apply a special style, but that’s an ugly hack: it will probably split a paragraph in two (although I can justify the last line of the first and remove indentation of the second to make them look like one paragraph again) and if I ever modify anything before the last page, the page break will happen in the middle of nowhere. It’s also logically unsatisfying for such a common requirement.
The other solution would be to use conditional text with a variable set to TRUE on the last page and FALSE everywhere else, e.g.:
IF last_page
THEN [nothing]
ELSE [text of the footer]
The problem here is that I can’t see how to use a variable or field in text of the footer, and I want it to show the page number.
So I’m stuck. Anybody?