Gutterpress proof

Markdown & CSS, typeset for printOpen source · by Dimm City

Change your book's design

Click Setup (the wrench) in the toolbar to open Book setup. Its tabs are Book, Look, Extensions and Online copy, with Advanced set apart on the right. Close it with the X or Esc. Every change is saved as you make it: there is no Save button, and the top of Book setup says Saving… and then Saved.

Title, page and chapters

On the Book tab:

Save as template…, at the bottom, saves this book's look, page and extras as a template you can start new books from.

Book setup, Book tab: title, authors, page size, margins, print checks and chapters

Choose a look

A look is a complete design for a book. On the Look tab, under Choose a look, each look is a small picture of a page: Clean book, Zine, Technical doc and Academic, and any look your book has from elsewhere, with who made it when the look says. The one your book uses comes first, with a tick. Click another to use it instead; Gutterpress saves the choice as soon as you stop, and the line under the pictures says what the look is like. A new book already has the look its template came with. In a window wider than about 1620 pixels, pointing at a look shows it larger, over two facing sample pages, beside Book setup.

To change a built-in look's own CSS, click Make an editable copy under the pictures while your book uses it. Gutterpress copies the look into your book's extensions folder (for example extensions/zine), and the copy takes the built-in's place: its picture now says From a folder, and its stylesheet, theme.css, is yours to edit. The book then uses your copy, so a later Gutterpress version never changes it. (gutterpress ext add zine --look does the same from the command line.)

A book can combine two looks: add a second one on the Extensions tab, under Add an extension → Built-in looks (see combine two looks). Such a book says so above the pictures, and its looks are changed there. Formatting extras such as callouts and math are on the Extensions tab too.

Adjust the look

Under Adjust the look are the six settings every built-in look has: Body text font, Heading font, Body text size, Line spacing, Text color and Accent color (headings and links). The Sample page beside them shows each change as you make it. Your changes are saved to your book's own stylesheet (styles/book.css unless you chose another; Gutterpress makes one the first time you change something), never to the look itself, so they stay if you change looks. A color or a number is saved when you leave its field or press Enter. Type a color with or without its #, or another setting written as var(--color-ink) to use that setting's color (the accent then follows your text color). Anything else is not saved, and the field says so. Reset to the look's settings asks first, then (Replace) takes your changes to these six out again; Undo changes in Advanced brings them back.

Book setup, Look tab: the looks to choose from, and the six settings beside the sample page

Every setting, and your stylesheets

All settings in Advanced opens the Advanced tab at All design settings: every setting your look has, grouped into Fonts, Colors, Sizes & numbers and Other, each with the CSS name you would use in a stylesheet. A setting one of your stylesheets already sets is changed in that stylesheet; a new one goes into the first. The undo arrow beside a value you changed earlier offers Use the look's value; Undo changes undoes the changes made since you opened Book setup.

At the top of Advanced, Open manifest.yaml opens the book's manifest in the editor. Under Stylesheets are the book's own .css files, in the order they load: a later one wins where two disagree, and all of them load after your extensions. Each row has ↑ and ↓ to move it, Open, which opens the file in the editor, and Remove, which takes it off the list and never deletes the file. A book always keeps at least one stylesheet, so the last one has no Remove. Under Add a stylesheet are the other .css files in your book's folder and its styles folder: Add puts one at the end of the list. A book with no stylesheet says so and offers Create styles/book.css. The styling chapter covers what a stylesheet can do.

Book setup, Advanced tab: the stylesheets, and every design setting

Change the page size and margins

The page size and the margins are on the Book tab (see above), and you can change them at any time. Both live in your book's manifest and nowhere else: the size you choose is the size your book prints at and the size your finished PDF is checked against, and no stylesheet is edited.

Under Page size, choosing DriveThruRPG print or Trade paperback uses that preset's page size and print checks; Another size takes a common size (Letter, A4, Digest…) or a width and height you type. A book whose manifest gives it a size of its own shows Another size with that size; choosing DriveThruRPG print or Trade paperback goes back to that preset's size. A book that has never chosen its print checks follows the preset (DriveThruRPG print checks against DriveThruRPG); once you tick or untick a service, the choice is yours.

Under Margins (inches), type the top, bottom, inside and outside margins (inside is the edge at the binding). A change is saved as soon as you leave the field, and your margins win over any a look sets. A book that has not set its own margins yet shows the ones its look gives it, or the 1 in default, and says so; change one and they become yours. To go back, press Use the look's margins (or Use the default margins when no look sets any): your margins are taken out of the manifest and the fields show what the book prints with again. The built-in looks set neither a page size nor margins, so what you choose here is what you get.

Book setup, Book tab: the page size choices and the four margin fields

Next: add plugins and formatting extras.