Export to PDF, Word, and ePub

~2 min read

Export to PDF, Word, and ePub

Publishing makes a website; export makes a document. Any note — or a whole group — can leave Lettuce as PDF, HTML, Word (.docx), or ePub.

Export one note

File → Export → PDF / HTML / Word / ePub — pick a destination and you’re done. PDF and HTML are rendered natively with the same reader styling you see in the app (callouts, code, math, diagrams included).

PDFs are laid out on real pages (A4 or Letter, following your Mac’s region) with the print styles applied: collapsed sections open, no page chrome, breaks kept out of code blocks and tables. While a PDF renders, nothing on the page can load from the internet. That keeps an export from phoning home, and it means an HTML document that pulls a library or image from the web exports without it. Self-contained documents export exactly as they look.

HTML documents in the vault export as they are, scripts included, so charts drawn by a script appear in the PDF.

Export a group as one document

Right-click a group in the sidebar → Export Group as → … to bind every note under that folder (nested ones too, in sidebar order) into a single document — a group is a manuscript. PDF inserts a page break between notes; HTML separates them with a rule; Word/ePub read as continuous chapters. The file is named after the group.

Word and ePub need pandoc

PDF and HTML are built in. .docx and ePub conversion uses pandoc (brew install pandoc) — the menu items are simply disabled until it’s installed.

Other ways out