Printing

File → Print… (Ctrl+P) opens a paginated preview: the sheet appears as it will come out, with the margins, the page break and the numbering. The print button sits inside it, next to the zoom, the page navigation and the paper setup. The note, the code, the HTML page, the image and the open PDF all print; on the other screens the item stays greyed out saying why. The same button sits in each screen's own toolbar: in the note, next to the export one; and in code, in the PDF, in the image and in the HTML page, in their own toolbars.

What reaches the paper is what reading mode shows: transclusion resolved, figure numbering in place and the private comment (%%…%%) left out. With a dark content theme the sheet comes out on white paper — a black page would waste ink and clash with any document handed to someone. Margins are 20 mm at the sides and 15 mm top and bottom, and the footer carries Page X of Y. In the preview, the Margins button switches between the document margins and the minimum the printer can reach; for a PDF and for an image it starts at the minimum, because there the file already carries its own margin. Next to it, Theme changes the colours of the printed sheet: the default is automatic (it is what turns a dark theme into white paper), and the list offers the light themes from the catalogue and your own — someone reading in Dracula Dark can print in Dracula Light, the same colour language made for paper. Dark themes are left out because on paper they would paint the whole page. The theme already in use is marked (in use) in the list: choosing it does not change the sheet.

In code, the syntax comes out coloured on white paper, with the line numbers in the margin, and a long line wraps instead of being cut: on paper there is no horizontal scrolling to reach what runs past the margin. The image comes out with the markup you drew, and a small image is not enlarged — it comes out at its own size, centred on the sheet. A GIF prints the frame currently on screen.

Printing a PDF from LightNote rasterises the pages, and your highlights go along; for the best typographic quality, print the PDF from the system reader, where the text stays vector. Exporting to PDF (File → Export note) is a different thing and stays as it always was: if you want the page number or the document margins in the file too, tick the two boxes in Export with options… — they start off so the PDF of anyone already exporting does not change. In a very long document the preview is skipped, because it holds every page in memory at once; the app goes straight to the print dialog, which has no such limit.