Documentation

Page settings for sheets

Every setting in a sheet's page: block, with its default, the block New title page writes, and how a sheet's file is named.

View Markdown

When you read or print your manuscript, each sheet's page settings decide how it's laid out: whether it starts a new page, stands alone, where its text sits, whether the page it starts shows its number, an image behind it, and whether it's excluded from the manuscript as a note. They live in a page: block at the very top of the sheet's file, its front matter. Write a book in Rundesk shows them at work in a whole book; this page is the reference.

The page block in a sheet's front matter

A sheet's page: block is front matter: lines between two --- lines at the very top of the file. It only configures the page. You never see it in the sheet editor, in Read manuscript or in an export, it counts no words, and Search sheets never matches it. A sheet with no block is a regular sheet, and so is one whose block sets nothing but the defaults.

---
page:
  breaks: standalone
  position: centered
  alignment: centered
  numbers: hide
---
The Keeper of Salt Point

This is the block New title page writes, in the exact form Rundesk writes every block: page:, then each setting that isn't its default on its own line, indented two spaces, in the order of the table below. TOML front matter between +++ lines works too, written as one line: page = { breaks = "standalone", position = "centered" }.

Put only page: in a sheet's front matter. Rundesk reads nothing else there, so another key, such as a status, is only noise in your manuscript's files.

Every page setting and its default

Every setting is optional; one you leave out, or give a value Rundesk doesn't know, is its default. Each key is named as its row in the Page settings panel, and each value as its choice there.

SettingValuesDefaultDescription
breakssame_page, new_page, standalonesame_pageruns the sheet on after the one before, starts it on a new page, or gives it pages of its own: it starts a new page, and the next sheet does too; a chapter's first sheet, a sheet at the top of Pages and the sheet after a standalone one always start a new page
positiontop, third_down, centeredtop, or third_down for a chapter's first pagewhere the text sits down its first page: at the top, a third of the way down, or centered (when it fits one page)
alignmentleft, centeredlefthow the lines sit across the page
numbersshow, hideshowwhether the page the sheet starts shows its number at the foot
headershow, hideshown, with exceptionsshows or hides the book's title and author in the top margin of the page the sheet starts, so the page count never changes
backgroundan image's path in the project, such as images/cover.pngnonean image drawn behind the page the sheet starts: PNG, JPEG, GIF, WebP, ICO or SVG
fitfill, fitfillfill crops the image to cover the page; fit shows the whole image; only with a background
excludetrue, falsefalseexcludes the sheet from the manuscript as a note: dimmed in the Pages list, never in the book's Read manuscript, its exports or a word count, though Read manuscript on the sheet itself shows it

A sheet's text position, page number, background and header hold for the page the sheet starts, and that page alone: hide the number on a chapter's opening and only that page loses it, and a background on a title page doesn't repeat through the chapter. Read manuscript and the PDF follow the same rule.

Unless a sheet writes header, the header shows on every page except the first page of a chapter's opening or of a sheet at the top of Pages, and never on a sheet with pages of its own or one centered on the page; a sheet that starts a new page in the middle of a chapter shows it from that page on. No page shows one without a title or author in desk.yml, whatever header says.

A background's path is from the project's folder, never through a link or outside the project; one that's missing or isn't an image leaves the page on its own paper.

Make a title page

Pick New title page from the + button beside Search sheets to make a sheet whose block sets it alone on its page, centered across and down it, with no page number. Use it for a book's title, a part's opening or a dedication. Add a cover image to a title page with background:

---
page:
  breaks: standalone
  position: centered
  alignment: centered
  numbers: hide
  background: "images/cover.png"
---

Start a chapter on a new page, a third of the way down

A chapter opens on a page of its own, a third of the way down, as a printed book's does, with nothing to set: the first sheet of every folder, at any depth, starts a new page and sinks. A part whose first sheet also opens its first chapter starts one page and sinks once, not twice. A sheet at the top of Pages, in no folder, starts a page at the top, and a sheet excluded from the manuscript never counts as a chapter's first. A part, a chapter or a sheet you read or export alone starts as it does in the whole book, so its pages and their count match the book's.

A position you write always wins on a sheet that starts a page: top holds a chapter's first page at the top, third_down sinks any sheet a third of the way down, and centered centers it down the page when it fits on one, else it starts at the top. In Page settings, Text position gives a chapter's first sheet Third down by default, and Page breaks gives it New page. Writing breaks: new_page or position: third_down there only repeats what already happens, so Page settings never writes them, and pages_check reports either as one to remove. It reports breaks: new_page the same way on a sheet at the top of Pages, or on the sheet after a standalone one.

Edit a sheet's page settings

Since the sheet editor never shows front matter, set a sheet's page settings in its Page settings panel. Click the Page settings button, a sliders icon, last in the sheet's bar, or right-click the sheet in Pages and pick Page settings, which opens the sheet too. The panel slides in at the right of the sheet, which narrows beside it, and stays open as you move between sheets, showing the settings of the sheet in front of you. On any other tab it hides, and it comes back with the next sheet; only the Page settings button, the panel's X or Esc close it. Drag the panel's left edge to make it wider or narrower, from 280 to 560 pixels; Rundesk remembers the width on this computer, and a double-click sets it back.

Exclude from manuscript comes first. Below it, the rows sit in three groups that open and close: Layout, Header and page numbers and Background. Each group's header shows its name and a line summing up its choices, such as New page · Top · Left, or the reason when none of its rows would change the sheet, such as Excluded from manuscript. A group starts open when the sheet sets one of its rows to something other than the default; otherwise click its header, or press Enter or Space on it, to open it.

Each row sets one key of the block:

GroupFront matter keyPanel rowChoices and notes
none, always firstexcludeExclude from manuscripton or off; on, the sheet is a note, not in the manuscript and left out of Stats and the counts
LayoutbreaksPage breaksSame page, New page or Standalone: a standalone sheet shares its pages with no other sheet, and the next sheet starts a new page
LayoutpositionText positionTop, Third down or Centered; centered only if the text fits one page, else it starts at the top; to center one sheet alone, make it Standalone
LayoutalignmentText alignmentLeft or Centered
Header and page numbersheaderHeaderDefault, which says what this sheet gets, such as shown except on its first page; or Show or Hide on the page the sheet starts
Header and page numbersnumbersPage numbersShow or Hide on the page the sheet starts; a hidden number still counts, and the pages after it are numbered as usual
BackgroundbackgroundBackground imagean image file in the project, or None
BackgroundfitImage fitFill, which crops the image to cover the page, or Fit, which shows the whole image

A row or one of its choices is dimmed, with the reason under it, when it wouldn't change the sheet:

  • Page breaks can't be set to Same page on a chapter's or a part's first sheet, a sheet at the top of Pages, or the sheet after one with its own pages: each always starts a new page, and the reason says which. Standalone can always be chosen; at the top of Pages it's like New page, with no header.
  • A sheet that runs on from the one before has Text position, Page numbers, Header, Background image and Image fit dimmed, because the sheet that starts the page sets them, and the reason names that sheet. Choose New page under Page breaks to set them on this sheet.
  • Image fit waits until you choose a background image.
  • A sheet inside an excluded folder shows Exclude from manuscript on and dimmed, with the reason naming the folder; include the folder from its right-click menu to change it.
  • With Exclude from manuscript on, every other row is dimmed, with the reason Excluded from manuscript, since page settings don't apply to a note.
  • With no title or author in desk.yml, Header is dimmed and says to add one there.

Page settings saves as you change it: a moment after your last change, or at once when you close the panel, open another sheet, hide the window or quit, Rundesk writes the block for you, in the exact form above, into the file and into the sheet's unsaved text too, so nothing you typed is lost. Page settings saved shows once for each run of changes, and the panel stays open. If an agent edited the block in the meantime, both changes stand. If the write still fails, a message says why, and the rows go back to what the file holds.

You can also ask an agent to edit the block; it writes the same form, and only when you ask.

Name a sheet's file sheet-.md

A sheet is a markdown file named sheet-, then the second it was made in ten digits, then .md, such as sheet-1795907083.md. New sheet and New title page name it so, and so does an agent's sheet_create. Any other markdown file in the pages folder, like README.md or chapter-3.md, isn't a sheet: Pages leaves it out, and the Files tab still shows it. The file name never shows in Pages, where a sheet goes by its first line, and its place in its folder comes from the folder's .order file, as Writing pages describes.