Export to PDF, Word, and ePub
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
iPhone: share a note via the Mac-powered export (DOCX/EPUB/PDF/HTML) — Getting started/07 Lettuce on iPhone (preview). The Mac renders the PDF with the same engine as its own export, so no LaTeX or pandoc is needed for PDF.
Slides:
lettuce slidesturns a note into a deck — CLI cookbook/00 Overview.Website:
published: true+ Publishing/01 Publishing a note for the static-site path.And the vault itself is always plain Markdown — the ultimate export is a copy of the folder.
Related
Getting started/06 Migrating from another app — the import direction