Pages and export
Read it as pages or slides
#Page and view, next to the modes, lays a document out three ways:
- Scroll: one long page, like a web page.
- Pages: the pages of a book on the document's paper. Turn them with the arrow keys.
- Slides: one screen at a time. A new slide starts at each
---line, or at each headingwhen there are none. F5 presents full screen and O shows every slide.
Keep pages for this document, in the same menu, writes set layout pages or
set layout slides into the rules block.
Nothing is cut off. A long table runs on to the next page. A slide that does not fit shrinks its pictures and text, and Split this slide, in the bar under the slides, starts a new slide where the text runs over.
Choose the paper
#File › Page setup… chooses the paper, the margins, the reading column, the fonts and the language. It writes lines like these, which pages, printing, PDF and Word all use:
set page Letter landscape margins narrow
set width 40em
set lang en-US
set font Literata
The paper is A4, A5, A3, Letter or Legal. Without a set page line, a document uses
Settings › Editing › Default paper.
Print or save a PDF
#Press Ctrl+P. The document prints on its own paper, with page numbers and its title at the
top of each page. Choose Save as PDF in the print dialog for a PDF. A ---page--- line
starts a new page.
To change the header and footer, choose File › Export…, then PDF, then
Header and footer text. Each band has a left, a centre and a right place, which take {title}, {date},
{page} and {pages}: Page {page} of {pages}.
Send it to someone
#File › Export… makes each of these on your computer:
| Format | What you get |
| Web page | One .html file with its look, fonts and pictures inside. It opens in any browser, offline. |
| Website | A folder or workbook as linked pages in a .zip, with contents and search. |
| The printed pages. | |
| Word | Headings, lists, tables, pictures, footnotes and equations, on the document's paper. |
| EPUB | An e-book with a cover and contents, for Apple Books, Kobo or Calibre. |
| LaTeX | Sections, tables, footnotes and your maths, for Overleaf or a journal. |
| Fountain | A screenplay, for Highland, Fade In or Final Draft. |
| Markdown, Selfscribe, text | The text without its rules, as it is, or just the words. |
The dialog says what each format cannot keep: a data view becomes a table in Word, and a diagram becomes a picture. It also chooses the colours, light, dark or your theme.
Four lines tell every export about the document. An e-book shows them, and a web page uses them for search engines and link previews:
set author Ada Lindqvist
set description Where to eat, sleep and swim on the island.
set cover pictures/harbour.jpg
set date 2026-10-28
Lock a web page with a passphrase
#Choose Web page and type a passphrase under Lock with a passphrase. The file asks for the passphrase, then opens in the reader's browser. Nothing is sent anywhere, so the file works from an email, a memory stick or any web host. Only the title can be read without the passphrase.
Put a website online
#Choose Whole folder in File › Export…, then Website, and press Publish…. The site goes to an account of your own:
- Cloudflare Pages. Paste an API token with Account › Cloudflare Pages › Edit and your
account ID, then press Publish. The site is at
NAME.pages.dev, and Test copy gives it a preview address first. - GitHub Pages. Save for GitHub Pages… makes a
.zipwith the site and a workflow.Push it to a repository and set Settings › Pages › Source to GitHub Actions.
- A server of your own. Export the website and copy its files to the server. They are plain
files that any web server serves.
Publishing to Cloudflare needs the desktop app, because a browser cannot reach Cloudflare's API.
Add a contents list
#Add Contents in Tools › Manage plugins…, then write an empty toc block where the list
goes. It lists the headings with links and follows them as you write. levels: 1-2,
numbered: yes and title: In this report inside the block change it. Word gets a contents
field with page numbers.
Make a copy for every row
#To send one letter to forty people, or print a certificate for each, write the page once and
let a list fill it in. Type /mail on an empty line and choose Mail merge, or write it
yourself:
~~~ selfscribe
use markdown
use data
set merge guests
inline {{_}} -> var
~~~
Dear {{name}},
Your table is number {{table}}. {{#if vip}}Come to the side door.{{/if}}
```data guests as hidden
name, table:number, vip:bool
Ada Lindqvist, 4, yes
Björn Aas, 7, no
```
The rows are a data block of the document (guests), a file beside it (guests.csv), a block
of another document (people.self#guests), a query or a table of a database. On screen, the
arrows over the page step through the rows. {{#if paid}} … {{else}} … {{/if}} says
different things to different rows.
Merge… in the bar at the bottom makes the copies:
| Choice | What you get |
| One PDF | Every row in one file, each on a new page. |
| Web pages, Word | A .zip with a file per row. |
| Selfscribe | A .zip with a .self file per row, its values written in as set lines. |
| Emails | A .zip with an .eml file per row, addressed and ready to send from your mail app. |
Name each file takes a pattern such as {{name}}, and Only rows where takes a filter
such as not sent.