Skip to content

PDF: add page numbers to exported screenplay (Hollywood convention) #35

@stultus

Description

@stultus

Problem

Exported PDFs have no page numbers. Hollywood convention requires page numbers in the top-right corner (format N.), starting from page 2 — the first page is unnumbered. Industry readers routinely reject unnumbered scripts.

Current state

No numbering: property is set on any of the four #set page(...) calls in the Typst markup:

  • src-tauri/src/screenplay/pdf.rs:699 (Hollywood embedded)
  • src-tauri/src/screenplay/pdf.rs:1088 (Indian embedded)
  • src-tauri/src/screenplay/pdf.rs:1546 (Hollywood standalone)
  • src-tauri/src/screenplay/pdf.rs:1645 (Indian standalone)

Suggested fix

Add numbering: "1." and number-align: right + top on the screenplay #set page(...) calls. Skip numbering on the title page itself using #counter(page).update(1) after the title page so numbering begins at 1 on the screenplay body.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions