Chapter 64

Export and Compile

The export panel#

Open it with File ▸ Export… (⇧⌘E), the Export button, or More ▸ Export…. It has a list of formats on the left, options on the right, and buttons along the bottom.

Formats#

FormatFileNotes
HTML.htmlA standalone styled page.
HTML (without Styles).htmlClean structure with no theme CSS.
PDF.pdfPaginated.
Word (.docx).docxA real Word package. It uses the theme's colours, fonts, size and line spacing; browser layout selectors have no Word equivalent. Equations, diagrams and charts become pictures.
Image.pngOne image of the rendered document.
PDF Archive (.zip).zipOrdered PDF segments plus a manifest, for very large documents.

Options#

SectionControls
StyleTheme chooses the Render Theme. The theme controls the exported document's typography and colours.
Page (PDF, PDF Archive and Word)Paper size (A3, A4, A5, Letter, Legal, Tabloid, or a custom Width and Height), Orientation (Portrait or Landscape), and Top margin, Bottom margin, Left margin and Right margin, all in millimetres (25.4 mm, one inch, to start with). Use these page settings as default saves them for later exports; it is greyed out until you change something. Otherwise they apply to this export only.
Advanced optionsCustom CSS, applied after the theme for this export only.

The panel says "Save as name" with the file name it will use, and "These choices apply to this export only." Choosing a format shows what it makes, in a line at the bottom left: for example "A standalone web page with the selected style." for HTML, or "One paginated PDF document." for PDF.

Buttons#

Cancel closes the panel. Share… sends the generated file straight to the system share sheet. Export asks where to save it. While it works, the panel shows "Rendering…". If something goes wrong, it says "Export failed." If fill-in fields remain, Pilcrow asks first (Chapter 63).

Page settings, header and footer templates, the table of contents and numbering options that apply to every export live in Settings ▸ Contents & Labels and Settings ▸ Export (Chapter 70).

The compile sheet#

File ▸ Compile Manuscript… (or Compile… in the Project panel) combines a book project's files in manifest order. It is available once a project is loaded.

SectionControls
ManuscriptA summary: "N files", "N left out", and any "Cannot be found" paths, which must be fixed before compiling. An Order list shows the final sequence.
OutputFormat, then Start on a new page: Front matter, Parts, Chapters, Back matter. Between scenes sets the separator ("None" or a mark). Table of contents, Number headings, and Keep a version of each file first (saves a Version History entry for every included file).
PresetSaved presets. Save as preset with a Preset name and Save. Delete Preset removes the chosen one.

Choose Compile… to pick where to save, or Cancel. While it runs it shows "Reading N of N…" then "Compiling…", with Stop. Variables with no value are listed ("These {{variables}} have no value and were left as written") and left visibly unchanged. If the file cannot be created, it says "The book could not be created there."

New Book#

File ▸ New Book… asks for Title, Author, Write in (the syntax for the chapters), and Keep it in (a folder, with Choose…). Choose Create. Pilcrow makes the folder with a manifest and a first chapter. If the book cannot be created there, it says so.