How Leafscript works, end to end.
Everything here is about the editor at /editor. There is no account to create and nothing to install — open it and the sample document is already there.
Getting started
Open the editor and you land on a three-pane workspace: document settings on the left, the question list in the middle, and a live A4 preview on the right. A sample chemistry question bank is loaded so there is something real to look at.
- Fill in the document details so the title block reads correctly.
- Replace the sample questions, or delete them and add your own.
- Check the page count in the question toolbar, then press Download PDF.
Nothing is saved to a server. The draft lives in this browser and is restored next time you open the editor.
Document details
The first panel on the left feeds the title block printed at the top of page one.
- Institution name
- The large line at the top of the document.
- Document title
- The second line — “Question Bank with Answers”, “Unit Test 2”, and so on.
- Chapter
- Printed under the title, for chapter-wise material.
- Teacher, Class, Subject
- Joined into the single meta line beneath, separated by dots.
- Academic year and Date
- Appended to the same meta line. The date picker writes a readable date; the stored value is ISO.
- Institution logo
- Optional, shown in the running header on every page. Keep it under 400 KB.
Questions and sections
A document is a flat list of two kinds of block: questions and section headings. Add either from the buttons at the top right of the middle pane, and the new block is scrolled into view for you.
- Section heading — a label like “Section A — Short Answer Questions”. It prints centred and bold, and travels with the first question under it so it never ends a page alone.
- Question — a marks box, a Selected tick, and two rich-text fields for the question and its answer.
- The chevrons move a block up or down; the eraser clears its text; the copy-plus icon duplicates it; the bin deletes it.
- Question numbers are assigned automatically in document order — deleting Q2 renumbers everything below it.
The formatting toolbar
Both the question and the answer field carry the same toolbar.
- Bold, italic, underline — and the buttons light up to show what the caret is sitting inside.
- Lists — bulleted and numbered.
- Paragraph style — normal text plus three heading levels.
- Superscript and subscript — press again to step back out, so you can keep typing after H₂O.
- Table — pick rows and columns; the table takes the full column width.
- Image — pick a file; click an image afterwards to resize or remove it.
- Symbols — 29 marks including →, ⇌, ±, √, ∑, π and Δ, each with its name as a tooltip.
- Clear formatting — strips marks from the selection.
- Copy — at the right end; puts the field on your clipboard with formatting, so a paste into Word keeps the bold and the subscripts.
Marks, selection and filters
Each question carries a mark value, typed into the Marks box. It prints on the right of the question line, and it is what the preview filter matches on.
- Selected — the tick next to Marks. Untick a question to leave it out of a filtered print without deleting it.
- Whole document — prints everything.
- Selected questions only — prints just the ticked ones.
- By mark value — prints only the 1-, 2-, 3- or 5-mark questions.
Section headings follow their questions through a filter, and a heading left with nothing under it is dropped from the output.
Typography
A new document opens in Times New Roman at 11pt, numbered Q1., Q2., Q3., with the page number centred in the footer. Typography lets you change any of that:
- Font family
- Eight print-safe families: Times New Roman, Georgia, Cambria, Garamond, Arial, Calibri, Verdana, Trebuchet MS.
- Body / Question / Answer pt
- Three independent point sizes, 6 to 24.
- Line spacing
- 1 to 3, in steps of 0.05.
- Paragraph gap
- The space after each block, in millimetres.
- Question numbering
- Q1., 1. or 1).
- “Answer:” label
- Off for a blank paper, on for the key.
- Divider line
- A dashed rule between questions, for worksheets.
Page, header and footer
- Orientation — A4 portrait or A4 landscape.
- Margins — top, right, bottom and left, each in millimetres, up to 60.
- Header text — a running line on every page, next to the logo.
- Footer text — a running line at the foot of every page.
- Page number — footer centre, footer right, footer left, header right, or none.
Margins are drawn inside the page by Leafscript. Set your browser’s own print margins to None so they are not added twice.
The preview pane
The right-hand pane is not a picture of the document — it is the document, at scale. The same elements are what the printer receives.
- Fit to width is the default; the preset zooms run 50% to 125%.
- Pinch on a trackpad to zoom anywhere from 20% to 400%. The zoom control shows the live value.
- Prev / Next jump between pages, and the indicator tracks the page you have scrolled to.
Printing and PDF
Download PDF and Print both open your browser’s print dialog on the pages in the preview. To get an exact match:
- Choose Save as PDF as the destination.
- Set Margins to None.
- Switch off Headers and footers.
- Leave Background graphics on, so table rules and dividers are included.
Whatever the preview filter is set to is what prints — set it back to “Whole document” if you only meant to inspect a subset.
Drafts, reset and theme
- Autosave — the document is written to this browser shortly after you stop typing.
- Storage limits — large images can overflow the browser’s quota; a warning appears in that case, and shrinking the images clears it.
- Reset — clears the draft and reloads the sample document. It asks first, and it cannot be undone.
- Theme — the sun/moon button switches light and dark, and your choice is remembered. The paper and the PDF stay white either way.
Shortcuts
| ⌘B / Ctrl+B | Bold the selection |
|---|---|
| ⌘I / Ctrl+I | Italic |
| ⌘U / Ctrl+U | Underline |
| ⌘P / Ctrl+P | Open the print dialog — the same thing Download PDF does |
| Pinch on the preview | Zoom the pages from 20% to 400% |
| ⌘Z / Ctrl+Z | Undo inside the field you are typing in |
Common questions
Where is my document stored?
In this browser, on this device. Leafscript saves a draft as you type and restores it when you come back. Nothing is uploaded, and clearing your browser data clears the draft.
Why does my PDF have a header with the page URL in it?
That is your browser, not Leafscript. In the print dialog, switch off “Headers and footers” and set Margins to None. Leafscript already draws its own margins into the page.
The preview says 2 pages but I only wanted 1.
Reduce the paragraph gap or line spacing under Typography, trim the margins under Page, or move a question. The count updates as you change things.
Can I put a question and its answer on the same line?
No — they are separate fields so the “Answer:” label and the answer point size can be controlled independently, and so you can print the paper with the answers hidden.
My institution logo will not load.
Logos must be under 400 KB so the draft still fits in browser storage. Scale the image down and pick it again.
Can I work on two documents at once?
One draft is kept per browser. Open a second browser profile or window in a different browser to keep a second document going.
Does it work on a phone?
Yes. Below a laptop width the editor splits into Settings, Questions and Preview tabs, switched from the buttons in the header.
That is the whole product.
The fastest way through the rest of it is to open a document.
Open the Editor