Typesetting Math Exams and Lesson Plans: Numbers, Formulas, Figures
There is only one standard for a well-typeset exam: can a reader find “question 17, part 2, option C” within three seconds. Every rule below exists to serve that.
1. The goal is locating, not decorating
A math exam is skimmed, never read linearly. The marker jumps to question 17 part (2); the student hunts the four options of question 8; the author checks the answer to question 22. Everybody is locating something. Nobody starts at line one.
So the priority is not beauty but findability: question numbers must be scannable, stems and options must form distinct visual groups, formulas must not dissolve into body text, and figures must travel with their questions. Every rule below follows from this.
A fast self-check
Zoom the finished page to 50% and look at it whole. If you can still separate the number zone, the stem zone, the option zone, and the figure zone at a glance, the hierarchy works. If the page is a uniform grey block, your sizes and spacing are all too similar.
2. Numbering: three levels, and do not mix in auto-numbering
Question numbers are the exam’s navigation system. The convention has three levels: major questions as 17., sub-questions as (1) (2), options as A. B. C. D. The exact glyphs matter less than the fact that the three levels look different at a glance.
| Level | Recommended | Common mistake |
|---|---|---|
| Major question | 17. (12 points) | Mixing 17. / 17、 / 17 . within one paper |
| Sub-question | (1), (2) | Using 1) or ①, which collides with the next level |
| Option | A. B. C. D. | Half-width A. with no space, letters jammed against text |
| Fill-in blank | Underline or box of fixed length | Blanks of different lengths, which reads as sloppy |
One technical recommendation: type question numbers by hand rather than using Word’s list numbering. Auto-numbering can renumber or break when you insert a question, copy between documents, or export to PDF — and a mis-numbered exam is the worst possible failure. Typing by hand costs you manual renumbering when editing; it buys you a guarantee.
If you must use auto-numbering (large banks, frequent reordering), keep every sub-question of a major question inside one list, with no ordinary paragraphs in between, or the numbering restarts.
3. Formula size: why math always looks smaller
The most common typesetting complaint. You set 10.5 pt, yet formulas look a size smaller. Nothing is configured wrong: the two font families have different metrics. A CJK glyph nearly fills its em box, while a math italic letter occupies only the middle portion (a small x-height). The eye reads that as smaller type.
Handle it in three tiers rather than applying one blanket fix:
| Position | Treatment | Reason |
|---|---|---|
| Inline math | Same size as body text | Enlarging it raises the line height and makes paragraphs ragged — worse than slightly small |
| Display math | 0.5–1 pt larger than body | Display equations are focal points; the extra size compensates for x-height |
| Scripts | Use the equation’s own super/subscript | Manual shrinking destroys baselines and makes levels indistinguishable |
One overlooked detail: line spacing in paragraphs containing display math. Use a fixed value rather than 1.5 lines, otherwise Word expands the line to the actual height of the equation and you get two different line spacings on the same page. A fixed value around 1.4–1.6× the body size is stable.
Why fractions and radicals seem to sink
A fraction pushes the baseline downward, so a line mixing CJK text and fractions looks like it dropped. The fix is not to adjust the equation but to set a fixed line spacing for that paragraph — and to keep equations inline-embedded. Floating equations detach from the text baseline and will drift on other machines.
4. Option alignment: two acceptable layouts
Multiple-choice options have exactly two acceptable layouts. Pick one and use it for the whole paper.
| Layout | When | How |
|---|---|---|
| Four in one row | All options are short — a number or a brief expression | Tab stops at the 1/4, 2/4, 3/4 positions of the text width |
| Two by two | Options contain formulas or run long | A borderless 2×2 table, 50% columns, vertically centred cells |
Aligning with spaces is the classic error. Space width depends on the font, so a different machine or size scrambles the four options instantly. Tab stops and tables are structural: they survive font changes.
Another detail: the separator after the letter. A full-width period followed by a full-width space holds its position better than a half-width A. with an ordinary space, because full-width glyphs do not resize when the font falls back.
5. Figures: why they move on someone else’s computer
Images live in Word in two modes that behave completely differently. This is the root cause of “it looked fine on my machine”.
- In line with text: the image behaves as one very large character and flows with the text. Change the font, add a paragraph, open it elsewhere — it moves with its line, predictably.
- Floating (in front of text, square wrapping): the image is anchored to a paragraph but positioned absolutely. Reflowed text, different margins, even a different printer driver can shift it.
Use inline-embedded for every figure in an exam. If you genuinely need text to wrap, put the figure centred on its own line instead — wrapping is a leading cause of layout accidents, especially in two-column layouts where figures hop to the other column.
One hard rule: the figure and its question must be in the same paragraph group. Select the figure paragraph and the stem, then enable “keep lines together” and “keep with next”, so you never ship a page where the figure is on page 3 and the question on page 4.
6. Answer keys: pagination beats styling
The goal of an answer page is not appearance but not being seen early. For a student paper, answers start on a fresh page. For a teacher’s copy, answers follow each question instead.
Structure the teacher version like this:
- Distinguish answers from questions with a visual mark — lighter background or a left rule — not merely the word “Answer:”.
- Start the worked solution in its own indented paragraph, separate from the answer itself; markers read the answer first and consult the working only when needed.
- Leave a fixed gap after each item so teachers can annotate by hand instead of squeezing between lines.
- A summary answer table at the end is only worth it for short answers (multiple choice, fill-in). For extended-response questions it adds nothing.
For the student version, do the opposite: answers on the final page with a footer note. If distribution is digital, ship the key as a separate file — page order in a PDF is trivially reversible, so layout tricks protect nothing.
7. Batch workflow: template, Markdown, conversion
For one paper a term, manual formatting is fine. For a paper every week — or a bank of several hundred items — the process must be fixed, or all your time goes into re-formatting. The reusable pipeline has three steps.
- Build the template once: margins, body style, three numbering levels, option tab stops, formula sizes. Save it as reference.docx.
- Write items in Markdown: one paragraph per stem, one line per option group, math in $…$, figures as image references. Content and formatting stay separate, so editing a question never touches layout.
- Convert with pandoc using the template, then convert the batch to PDF. Math travels as OMML and stays editable in Word.
# Batch exam generation: every Markdown file uses one template
for f in papers/*.md; do
pandoc "$f" -o "${f%.md}.docx" --reference-doc=math-paper.docx
done
# Convert the finished set to PDF (CJK needs the right fonts installed)
for f in papers/*.docx; do
libreoffice --headless --convert-to pdf "$f" --outdir out/
doneThe value here is that the template is the single source of formatting truth. Change the line spacing once, regenerate everything, and fifty documents are consistent without opening a single one. Writing formulas conservatively — see the LaTeX guide — is the precondition for this to work.
8. Nine checks before delivery
- Question numbers run continuously with no gaps or duplicates, and point values are present.
- Sub-question numbering style is uniform across the paper — no 1) / (1) / ① mixture.
- Option alignment is consistent; no section uses tab stops while another uses spaces.
- Every figure is inline-embedded and sits on the same page as its question.
- Display formulas are 0.5–1 pt larger than body text; inline math matches the body.
- Paragraphs containing fractions use fixed line spacing, with no mix of spacings on one page.
- Fill-in blanks are the same length and never split across a line break.
- Page numbers exist, and for double-sided printing the binding margin is correct on odd and even pages.
- Export a PDF and page through it. Layout that looks right in Word does occasionally break in PDF.
That last item is not paranoia. Word pagination depends on locally installed font metrics; if a font is substituted during PDF export, line counts and page breaks can change. Treating the PDF as the deliverable and checking it page by page is the only reliable method.
Frequently asked
Word’s auto-numbering keeps breaking. What should I do?
Type exam question numbers by hand. Auto-numbering renumbers or breaks when you insert items, copy across documents, or export. If you must automate, keep all sub-questions of one major question in a single list with no ordinary paragraphs in between.
Why do formulas look one size smaller than the text?
Math font letters occupy only part of the em box, so their visual mass is smaller than a CJK glyph at the same point size. Keep inline math at body size — enlarging it wrecks line spacing — and let display math run 0.5–1 pt larger as compensation.
Why do images jump to another position on a different computer?
They are floating (in front of text or square-wrapped), which means absolute positioning. Set them to inline with text so they behave as oversized characters that travel with the text flow.
Formulas overflow into the other column in a two-column layout. Fix?
The formula is simply too wide for the column. Either make that question span both columns, break the equation across aligned lines, or switch the page to a single column. Never shrink the font to force it — that breaks size consistency across the paper.
How do I stop students from seeing the answer key early?
Start it on a new page with a footer note, and for digital distribution ship the key as a separate file. Page order in a PDF can be jumped to directly, so layout alone protects nothing.
How should an A3 two-column exam be set up?
A3 landscape, two columns with 1.5–2 cm gutters, and a wider inner margin for binding. Two cautions: never let a figure span both columns, and verify that tab stops for options are re-measured inside the narrower column.
Tools mentioned above
- Markdown & LaTeX editorPreview questions and formulas as you type instead of fighting Word layout
- LaTeX math cheat sheetFractions, matrices and alignment written correctly so conversion holds
- Word to PDFFreeze pagination and fonts before delivery
Read next
WebP compatibility map: when it is safe, and when you must fall back to JPG
Two sentences get repeated about WebP: that it is 30% smaller than JPG, and that all modern browsers support it. The first is half true — it depends on the quality you are targeting. The second is true for browsers and completely false for software. This article takes both apart with measured numbers and a layered compatibility table.
PNG or JPG: a table by use case, with measured size and quality data
This question has ten thousand answers, and most of them stop at “photos use JPG, icons use PNG” — correct, but not enough to decide about the file in front of you. Here three test images go through seven format settings, and the argument is made with bytes and pixel-level error: when JPEG saves 80%, and when it saves 18% while damaging the edges of your text.
Markdown to Word and PDF: Keeping Formulas, Tables, and CJK Layout Intact
Markdown is fast to write; deliverables are usually Word. The step in between is where things break: formulas become images, tables collapse, CJK text loses its fonts. Here is the chain, opened up.
How to Write LaTeX Math: From Inline Symbols to Aligned Equations
Six separate problems hide inside “my formula won’t render”: where the notation goes, how scripts bind, how brackets grow, how matrices are written, how lines align, and how to read an error. Each one has a fixed rule.