Gutterpress proof

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

Write and preview your book

The toolbar

Across the top of the window, from the left:

Edit mode: the table of contents, the editor and the live preview side by side

In a narrow window, Edit and Read become Markdown and Preview tabs.

Write

The editor is on the left in Edit mode. Your writing is markdown; the writing chapter covers the syntax and the layout markers.

The editor toolbar has buttons for bold, italic, strikethrough, inline code, links, quotes, bulleted and numbered lists, and a heading picker. Its Insert menu adds a layout block (Chapter, Section, Two columns, Page break, Spread), a horizontal rule, a table, an image or a snippet.

Save (Ctrl+S) saves now; it turns blue when there are unsaved changes. Edits are also saved automatically unless you turn that off in Settings → Saving. The status control in the status bar starts with Saved (for example Saved on this computer) and reads Saving… or Unsaved changes while edits are not written yet; more on it here.

Pick a class from a list

Classes are how you tune a block or an image: .gp-no-break, .gp-right, a plugin's .dc-snug. You do not have to remember them. In the editor, type a .

and a list appears. It starts with Gutterpress's own gp-* classes, then the classes each plugin your book uses documents in its component catalog, then the classes your book's own stylesheets use. Each suggestion has a one-line description where there is one, and says where it comes from. On an image the image classes come first; on a marker line a plugin's classes for that marker do.

Keep typing to narrow the list, then press Tab or Enter to accept (Esc dismisses it). Ctrl+Space asks for the list inside empty braces. The list works the same way as the @ suggestions for markers and components.

Change a block's properties

A marker block (@section, @skill, @gear, a plugin's own markers, @page) can be tuned from a dialog, without typing a class or a marker by hand. Open it either way:

The dialog has:

Only what you change is edited. The variant word, #id, label="…", other classes and whichever spelling you use (.class or {.class}) stay exactly as written, and Apply with nothing changed writes nothing. Edits made from the editor go into its undo history (Ctrl+Z).

Your book's files and images

The left panel has three tabs:

The Files tab, with New chapter and New folder

Preview

The preview shows your book's pages exactly as they will print, and updates as you type.

Key Does
Right arrow or Page Down Next page
Left arrow or Page Up Previous page
Home / End First / last page
+ or = / - Zoom in / out
F Fit to width
Ctrl+F Find in the preview

The page keys work when you are not typing in the editor or a field.

Read mode: the preview on its own, two pages at a time

Fix problems

The Problems badge in the editor toolbar checks your book as you work and reads No problems or a summary. Click it to open the list at the bottom of the editor: problems are grouped by file, and clicking one opens the file at the line it is about. Esc closes the list.

The Problems panel under the editor, reporting a missing image

Next: insert snippets and components.