Title and copyright pages
A title page or a copyright page says the same things in every book: its title, its authors, the year it came out. Write those as placeholders, and Leafbind fills in each book’s own when you export it. A series can then use the same pages for every book, and no book ever carries another book’s title.
Write a placeholder
Section titled “Write a placeholder”Type the fact’s name between double braces, {{ … }}, anywhere in a document:
# {{ title }}
*{{ subtitle }}*
{{ authors }}Copyright © {{ publication_date | date("yyyy") }} {{ authors }}
First published {{ publication_date | date("d MMMM yyyy") }}.An EPUB of The Lighthouse Keeper by Anna Bauer prints The Lighthouse Keeper, then Anna Bauer, and Copyright © 2026 Anna Bauer. So does the copy for Royal Road and Patreon, and Preview and Book show the page that way too.
There is nothing to switch on. A document with a placeholder in it is filled in, wherever it goes in the book: a title page, a chapter, an afterword.
In the editor
Section titled “In the editor”A placeholder shows the value it will print, in italics: The Lighthouse Keeper where you typed {{ title }}. Click it to see and change what you typed; it shows the value again when you move on. Change the subtitle in Project details & settings, and the editor shows the new one.
A placeholder with a mistake in it is underlined in red. Point at it to see why.
Placeholders are not spell-checked, and they don’t count towards the word count.
What you can use
Section titled “What you can use”| Write | It prints | Set it in |
|---|---|---|
{{ title }} |
the book’s title | Project details & settings → Title |
{{ subtitle }} |
the subtitle | Project details & settings → Subtitle |
{{ authors }} |
the authors, joined as your book’s language joins them: Anna Bauer and Carl Diehl, or Anna Bauer und Carl Diehl in a German book | Authors, on the book or on its series |
{{ publication_date }} |
the publication date, as 2026-11-01 |
see The publication date |
{{ series_name }} |
the series’ name | the series |
{{ series }} |
the series’ short code, such as SE |
the series |
{{ reading_order }} |
the book’s place in its series | Project details & settings |
{{ version }} |
the book’s version, such as 24.03 |
Project details & settings → Version |
{{ language }} |
the book’s language, such as en-GB |
Language |
A fact that isn’t set prints nothing. To print a line only when there is something to say, write it between {% if … %} and {% endif %}, each on a line of its own:
{% if subtitle %}*{{ subtitle }}*{% endif %}{{ authors }} prints every author. To set each one in a paragraph of its own:
{% for author in authors %}{{ author }}
{% endfor %}date writes a date the way you want it:
| Write | It prints |
|---|---|
{{ publication_date | date("yyyy") }} |
2026 |
{{ publication_date | date("d MMMM yyyy") }} |
1 November 2026 |
{{ publication_date | date("d. MMMM yyyy") }} |
1. November 2026, in a German book |
{{ publication_date | date("MMM yyyy") }} |
Nov 2026 |
yyyy is the year, MM the month as a number, MMMM its name and MMM its short name, dd the day. A month’s name is written in your book’s language, in English or German, so set the book’s language first. {{ date("yyyy") }}, with no fact in front, writes the day you export.
The publication date
Section titled “The publication date”{{ publication_date }} is the first of these that the book has:
- Publication date in Project details & settings;
- the day you marked the book published;
- the day you export.
Leafbind never fills in the publication date for you. A book you publish again gets the new date from step 2. If your copyright page should keep the first one, set Publication date once.
Mistakes, and what the book prints
Section titled “Mistakes, and what the book prints”A placeholder Leafbind can’t fill in, such as {{ subtile }}, is named in the export dialog before the file is written: a ⚠ Placeholders row says which page, which line and what is wrong. Click it to open the page at that line. If you export anyway, that page goes into the book exactly as you wrote it, with its braces, so you can find it in a proof; the rest of the book is filled in as usual. The copy for Royal Road and Patreon says so too, before you post.
Names are written with underscores: publication_date, never publication-date. Leafbind points it out if you use a hyphen.
Braces you want to keep
Section titled “Braces you want to keep”To print {{ and }} themselves, wrap them in {% raw %} and {% endraw %}:
{% raw %}Type {{ title }} for the title.{% endraw %}From Scrivener
Section titled “From Scrivener”Scrivener’s <$PROJECTTITLE> and <$fullname> come across as {{ title }} and {{ authors }} when you import a Scrivener project. A Scrivener placeholder with no counterpart, such as the word count <$wc100>, is kept as written, and the import names it, so you can decide what the page should say instead.