Reusable LaTeX Exam/Worksheet Template (.tex) + Sample PDF
A reusable, well-documented exam/worksheet TEMPLATE with clear placeholders and reuse instructions, PLUS one filled SAMPLE so you see it working - and it teaches you how to adapt it. Delivered as a .tex template + sample PDF, or a Word/PowerPoint master template, with a copy-paste fallback.
Works on any free AI · Best tool: ChatGPT (with code tools) or Claude
✅ How to use this effectively
- Describe what you set most often (exam, worksheet, DPP) and your usual header info: school, marks, time, instructions.
- Pick [OUTPUT FORMAT]: LaTeX .tex + sample PDF, OR a Word master template, OR a PowerPoint master.
- Let it build the template with clearly labelled [PLACEHOLDERS] and inline comments explaining each part.
- Download the blank template AND the filled sample, and read the 'How to reuse' section.
- Save the template somewhere permanent; next time, just swap the placeholders.
- If a file fails or the template is too basic, use the commonFix reply.
🔧 If it is not right, reply with this: If the file won't open or the template is too bare, reply: 'The file didn't open / the template is too basic. Re-check the environment, rebuild with a reliable tool (a compilable .tex via the installed engine, or python-docx / python-pptx), confirm it opens, and make it richer: documented placeholders, reusable question/solution blocks, auto marks total, header/footer, and a clear How-to-reuse guide. If you still can't return a file, paste the full template text and the filled sample as copy-paste-ready text.'
THE PROMPT
ROLE: You are a document-automation engineer and maths teacher. Build a REUSABLE exam/worksheet TEMPLATE the teacher can use forever, with clearly labelled placeholders, inline comments and reuse instructions, PLUS one fully FILLED sample so they see it working - and a short guide that TEACHES them how to adapt it.
PARAMETERS (ask only for what's missing; default sensibly):
- [SUBJECT/LEVEL]: e.g. Class 10 Maths, JEE physics.
- [DOCUMENT TYPE]: exam paper / worksheet / DPP / formula sheet.
- [HEADER INFO]: school or class name, exam title, total marks, time, general instructions, space for student name/roll/date.
- [STRUCTURE]: sections, question types, marks per question, whether an answer key/solutions block is wanted.
- [BRANDING]: keep it minimal; footer must read [YOUR NAME].
- [OUTPUT FORMAT: PDF / Word (.docx) / PowerPoint (.pptx)] - here this selects the TEMPLATE KIND: choose 'LaTeX .tex template + compiled sample PDF' for PDF, a 'Word master template (.docx with styles)' for Word, or a 'PowerPoint master (.pptx)' for slide-based worksheets/quizzes. Default: LaTeX .tex + sample PDF.
PHASE 1 - UNDERSTAND THE INPUT: Restate the type of paper this teacher sets and the fixed vs variable parts (fixed = layout, header style, marking column; variable = the actual questions). Confirm the structure in one line, then proceed.
PHASE 2 - DESIGN THE DEEP, TEACHING-FOCUSED TEMPLATE. The template must be genuinely reusable and self-explanatory:
- Clearly labelled [PLACEHOLDERS] for every variable field (e.g. [EXAM TITLE], [TOTAL MARKS], [TIME], [Q1 TEXT], [Q1 MARKS]).
- A reusable QUESTION BLOCK the teacher can copy-paste to add questions, and a matching SOLUTION/ANSWER-KEY block.
- Inline COMMENTS explaining what each part does and how to change it (in .tex: %% comments; in Word: a short styled note; in PPT: speaker notes).
- Practical niceties: a marks column or per-question marks, an auto or clearly-marked TOTAL, consistent heading styles, a header with student name/roll/date and a footer reading [YOUR NAME], sensible page breaks, and (if relevant) an instructions box.
- A short 'HOW TO REUSE THIS TEMPLATE' guide at the top or as a one-page companion: which fields to change, how to add/remove a question, how to toggle the solutions on/off, how to recompile or re-export, and 2-3 tips to avoid common breakages (e.g. balanced braces in .tex, keeping styles intact in Word). This guide is the teaching part - write it so a non-technical teacher can follow it.
PHASE 3 - SOLVE & VERIFY: Produce ONE fully FILLED sample using real, correct content (3-5 sample questions WITH worked answers and the reasoning shown, not just final answers) so the teacher sees the template in action. Verify every sample answer is correct (exact values; for proofs no 'clearly'/'obviously'); confirm marks add to the stated total. Never fabricate theorems or data.
PHASE 4 - BUILD THE FILE(S). FIRST check what your environment supports. For LaTeX: provide the .tex template AND compile a sample PDF ONLY if a TeX engine (pdflatex/xelatex) is genuinely installed; if it is NOT installed, say so honestly and instead (a) return the complete .tex as a downloadable text/.tex file the teacher can compile on Overleaf, AND (b) also build the filled sample via reportlab so they still get a sample PDF - or fall back to a Word master template via python-docx. For Word: python-docx with proper paragraph/heading styles so placeholders are easy to find and replace. For PowerPoint: python-pptx, one question/idea per slide, readable fonts (>=18pt), speaker notes explaining reuse. Maths must render readably: in the .tex/PDF path use real LaTeX commands; in Word/PPT/text use clean Unicode/plain notation (a/b, x^2, sqrt(x), <=, >=, !=, pi, theta) and NEVER raw LaTeX like \frac{}{}. Deliver the BLANK template and the FILLED sample as separate files. Clean, minimal, professional; footer [YOUR NAME]. After building, VERIFY each file actually opens (and that the .tex compiles if you claim it does); never claim a file exists if it does not. HONEST FALLBACK: if you cannot return any downloadable file, paste the COMPLETE template text and the filled sample as clean, copy-paste-ready text with clear headings and spacing.
FINAL DELIVERY: Return the download link(s) for the blank template and the filled sample, plus one short sentence on how to reuse it. Offer to also produce another format (LaTeX/Word/PPT) or to add a matching answer-key template on request.