diff --git a/docs/showcase/book-spread.png b/docs/showcase/book-spread.png index 2e1f002..960eb5e 100644 Binary files a/docs/showcase/book-spread.png and b/docs/showcase/book-spread.png differ diff --git a/docs/showcase/book.docx b/docs/showcase/book.docx index 9e72df3..2138cff 100644 Binary files a/docs/showcase/book.docx and b/docs/showcase/book.docx differ diff --git a/docs/showcase/book.odt b/docs/showcase/book.odt index db2c393..e82c59e 100644 Binary files a/docs/showcase/book.odt and b/docs/showcase/book.odt differ diff --git a/docs/showcase/newsletter-tables.png b/docs/showcase/newsletter-tables.png index d452e8d..85b481d 100644 Binary files a/docs/showcase/newsletter-tables.png and b/docs/showcase/newsletter-tables.png differ diff --git a/docs/showcase/newsletter.docx b/docs/showcase/newsletter.docx index db39565..fb5cde4 100644 Binary files a/docs/showcase/newsletter.docx and b/docs/showcase/newsletter.docx differ diff --git a/docs/showcase/newsletter.odt b/docs/showcase/newsletter.odt index 4f55982..34f63fe 100644 Binary files a/docs/showcase/newsletter.odt and b/docs/showcase/newsletter.odt differ diff --git a/scripts/showcase/book.ts b/scripts/showcase/book.ts index 3cee216..0b14f4b 100644 --- a/scripts/showcase/book.ts +++ b/scripts/showcase/book.ts @@ -59,12 +59,15 @@ export async function build(): Promise { ...body(raw), ] }; - // Right-hand pages carry the chapter, left-hand pages the book; the number sits outside. - const right = HF({ tabStops: '11r' }, { type: 'chapterField', attrs: { level: 1, text: 'Down the Rabbit-Hole' } }, T('\t'), PAGE_NUMBER); - const left = HF({ tabStops: '11r' }, PAGE_NUMBER, T('\t'), T('Alice’s Adventures in Wonderland', ITALIC)); + // Running heads name the chapter on right-hand pages, the book on left-hand ones, each + // towards the outer edge; the page number sits centred at the foot of every page. + const right = HF({ textAlign: 'right' }, { type: 'chapterField', attrs: { level: 1, text: 'Down the Rabbit-Hole' } }); + const left = HF(null, T('Alice’s Adventures in Wonderland', ITALIC)); + const folio = () => HF({ textAlign: 'center' }, PAGE_NUMBER); // A chapter opens on a right-hand page with no running head, its number at the foot. const chapterSet: HfSet = { ...EMPTY_HF_SET, header: right, headerEven: left, differentOddEven: true, startsOn: 'odd', - differentFirstPage: true, headerFirst: null, footerFirst: HF({ textAlign: 'center' }, PAGE_NUMBER) }; + footer: folio(), footerEven: folio(), + differentFirstPage: true, headerFirst: null, footerFirst: folio() }; const front: HfSet = { ...EMPTY_HF_SET }; const sections = [front, ...Array.from({ length: 12 }, () => chapterSet)]; sections[1] = { ...chapterSet, pageNumberStart: 1 }; diff --git a/scripts/showcase/newsletter.ts b/scripts/showcase/newsletter.ts index ee662b3..7c106f8 100644 --- a/scripts/showcase/newsletter.ts +++ b/scripts/showcase/newsletter.ts @@ -102,13 +102,17 @@ export async function build(): Promise { T('Eden Astronomy Society, Oak Hill Observatory. Edited by the committee. Published four times a year. Contributions for the next issue to the editors by 15 November.', GREY, SMALL)), ] }; - const footer = HF({ tabStops: '18r' }, T('Eden Astronomy Society · Newsletter 3/2026', GREY, SMALL), + // The masthead is the first page's head; the pages after it carry a running one. + const header = HF({ tabStops: '18r', borderBottom: '0.5pt solid #5A6B7F', borderPadding: 2 }, + T('Eden Astronomy Society', GREY, SMALL), T('\tSeptember 2026', GREY, SMALL)); + const footer = () => HF({ tabStops: '18r' }, T('Newsletter 3/2026', GREY, SMALL), T('\tPage ', GREY, SMALL), PAGE_NUMBER); return { name: 'newsletter', doc, styles, margins: { top: 1.5, bottom: 1.5, left: 1.5, right: 1.5 }, - hf: { header: null, footer, pageCount: 2, headerDistanceCm: 0.8, footerDistanceCm: 0.8 }, + hf: { header, footer: footer(), headerFirst: null, footerFirst: footer(), differentFirstPage: true, + pageCount: 2, headerDistanceCm: 0.8, footerDistanceCm: 0.8 }, language: { language: 'en', country: 'GB' }, hyphenate: true, props: { title: 'Newsletter 3/2026', subject: 'Eden Astronomy Society', author: 'The committee', keywords: 'astronomy, society', description: '' },