LaTeX & Typst (papers, theses, resumes and slides) Module 1
Start here: from source file to PDF interview questions
Interview questions on “Start here: from source file to PDF”: warm-ups, then what each harder question tests and how a good answer starts.
Warm-up questions
Short questions with short answers, each answered in full.
-
Fresher to mid
How do TeX, LaTeX and a distribution such as TeX Live differ?
Answered in the lesson LaTeX and Typst: what they are and when to use each
-
Fresher to mid
How do TeX Live, MiKTeX and TinyTeX differ?
Answered in the lesson Install TeX Live, TinyTeX or MiKTeX, and Typst
-
Fresher to mid
Why does LaTeX sometimes need two runs?
Answered in the lesson Your first document and the compile cycle
-
Fresher to mid
Why can a % sign make text disappear in LaTeX, but not in Typst?
Answered in the lesson Special characters, quotes, dashes and spaces
-
Fresher to mid
What is a minimal working example, and why do people ask for one?
Answered in the lesson Reading errors and making a minimal example
Questions with model answers
What each question tests, the first step of a good answer and the follow-ups to expect.
-
Fresher to mid
Your group must submit a paper in five days to a journal that publishes its own LaTeX class. One co-author edits only in Word with tracked changes; another would rather write in Typst. Which toolchain do you choose, and how do you organise the writing so that nobody's work is lost?
- What it tests
- Separating a venue's fixed requirement from preferences, planning how each person's changes come back, and avoiding a last-minute conversion of a whole paper.
- First step
- Start from the one requirement nobody can change: the journal wants LaTeX source in its class, so the master file is a .tex file in that class from the first day. Then decide how the Word user's changes come back, and what the Typst user hands over, before anyone writes a paragraph.
- Follow-ups
-
- The co-author sends back a .docx full of tracked changes. How do you merge them?
- What do you check on day four so that the paper builds on the journal's side?
- Would your answer change if the journal accepted any PDF?
From the lesson LaTeX and Typst: what they are and when to use each
Model answer, Pro. Model answers open with any pass; prices are in the notice on this page.Opening the model answers with your pass…
Model answers open with any MySmartCoPilot pass.
- Pro pass · 1 week₹79$2.99
- 30 days₹179$5.99
- 1 year₹1,699$45
One payment; a pass never renews. The price shown is the total you pay: no fees or charges are added at checkout.
Passes can’t be bought right now, so the model answers can’t be opened at the moment. If you have a pass, enter your licence key.
It also opens every other in-depth part in Learn and every Pro tool. Sales are final, except where the law gives you a right to withdraw, for example in the EU and the UK (refund policy).
In the answer:
- Model answer
- Follow-up answers
- Common mistakes
- Rubric
- Variants
- about 3 minutes
-
Mid to senior
Your department marks about 200 lab reports a term, all written from a LaTeX template, and asks whether students should move to Typst. Make the case for or against, and say what you would measure before deciding.
- What it tests
- Weighing build speed, tagged output and learning cost against templates, venues and package coverage, and turning the decision into checks instead of taste.
- First step
- Ask where the reports go. If they are only marked as PDFs, nothing outside the department needs LaTeX source, so the question becomes whether every feature the template uses exists in Typst. List those features, then time one typical report in both systems on a student laptop.
- Follow-ups
-
- Two reports a term need a package with no Typst equivalent. Now what?
- How would you run a pilot without disrupting the term?
- What result would make you keep LaTeX?
From the lesson LaTeX and Typst: what they are and when to use each
Model answer, Pro.In the answer:
- Model answer
- Follow-up answers
- Common mistakes
- Rubric
- Variants
- about 3 minutes
-
Fresher to mid
Every student's thesis builds on their own laptop, but the department's build server stops on some of them with "File `exam.cls' not found" or a similar missing file. What do you check, and how do you make the build give the same result for everyone?
- What it tests
- Telling a missing file from a broken document, reading what the server has installed, and pinning the toolchain so laptops and the server agree.
- First step
- Compare the two environments before touching the document: the first line of each log gives the engine and TeX Live year, and kpsewhich on the server shows whether the named file exists there. A file present on the laptops and absent on the server is an installation gap, not a writing mistake.
- Follow-ups
-
- The server's TeX Live is a year older than the laptops'. Does that matter?
- How do you find every package the theses need, not only the first missing one?
- A student added a .sty file to their own folder. Is that acceptable?
From the lesson Install TeX Live, TinyTeX or MiKTeX, and Typst
Model answer, Pro.In the answer:
- Model answer
- Follow-up answers
- Common mistakes
- Rubric
- Variants
- about 3 minutes
-
Fresher to mid
You installed TeX Live 2026, yet your logs still begin with TeX Live 2023 and a package you just installed with tlmgr is not found. Explain what is going on and how you fix it without reinstalling anything.
- What it tests
- Understanding PATH order, matching tlmgr to the installation that runs, and confirming a fix from the log rather than from memory.
- First step
- Ask the shell which copies exist: which -a pdflatex and which -a tlmgr list every copy in PATH order. If the 2023 copy comes first, both the engine and tlmgr belong to it, so the package went into the tree you are not using, or into the new one that never runs.
- Follow-ups
-
- Why did tlmgr install succeed although the package is still not found?
- Your editor shows TeX Live 2026 but the terminal shows 2023. How can that be?
- How do you remove the old installation safely?
From the lesson Install TeX Live, TinyTeX or MiKTeX, and Typst
Model answer, Pro.In the answer:
- Model answer
- Follow-up answers
- Common mistakes
- Rubric
- Variants
- about 3 minutes
-
Fresher to mid
The PDF your CI job builds from a thesis shows ?? in place of every figure and section number, while the PDF on the author's laptop is fine. The job runs pdflatex once. What is wrong, and what should the job run instead?
- What it tests
- Understanding the .aux cycle, why a laptop hides it, and replacing a fixed number of runs with a tool that decides from the log.
- First step
- Notice what differs: the laptop keeps its .aux files between builds, so one more run there always reads numbers from the run before, while the CI job starts from a clean checkout and runs pdflatex once, so it never reads any. The fix is to run until the log asks for no rerun.
- Follow-ups
-
- Would running pdflatex exactly twice in the job be enough?
- The thesis uses BibTeX. What else must the job run?
- How do you make the job fail when references stay undefined?
From the lesson Your first document and the compile cycle
Model answer, Pro.In the answer:
- Model answer
- Follow-up answers
- Common mistakes
- Rubric
- Variants
- about 2 minutes
-
Fresher to mid
After a co-author's commit, the CI job that builds your paper runs until it is killed after an hour, with no error in its output. Explain what most likely happened and how you change the build so it can never happen again.
- What it tests
- Knowing TeX's default interaction mode, reading what a stopped build looks like, and making a build fail fast with a usable message and exit status.
- First step
- A LaTeX build that neither finishes nor fails is almost always waiting for input: by default TeX stops at an error and shows a ? prompt. Look at the end of the job's output for an error message followed by ?, and the line it names, before changing anything.
- Follow-ups
-
- Which options change the behaviour, and what does each one do?
- How does the script know the build failed?
- Would Typst have the same problem?
From the lesson Your first document and the compile cycle
Model answer, Pro.In the answer:
- Model answer
- Follow-up answers
- Common mistakes
- Rubric
- Variants
- about 2 minutes
-
Fresher to mid
A script builds attendance letters from a spreadsheet: names, course titles and fees go into a LaTeX template. One letter lost half its text, another failed to build. How do you find the cause, and how do you make the script safe for any row?
- What it tests
- Recognising reserved characters in data, telling silent loss from errors, escaping at the boundary where data enters the template, and testing the result.
- First step
- Look at the two rows, not at the template: a fee such as "40% off" or a course called "R&D" in the data is enough. A % hides the rest of its line without an error, and & stops the build, so the cause is unescaped data, not the template.
- Follow-ups
-
- Where exactly should the escaping happen, and why there?
- A name contains an accented letter or a character the font lacks. What then?
- How would you test that every row prints as it is in the spreadsheet?
From the lesson Special characters, quotes, dashes and spaces
Model answer, Pro.In the answer:
- Model answer
- Follow-up answers
- Common mistakes
- Rubric
- Variants
- about 3 minutes
-
Fresher to mid
A chapter pasted from a word processor builds on your laptop with LuaLaTeX, but the department's pdfLaTeX build stops with "Unicode character (U+202F) not set up for use with LaTeX". The line looks fine. What is happening, and how do you fix the chapter and stop it happening again?
- What it tests
- Reading a Unicode error by its code point, knowing why engines differ, and cleaning pasted text systematically rather than line by line.
- First step
- Trust the code point, not your eyes: U+202F is a narrow no-break space, which a word processor can insert and no one can see. pdfLaTeX has no definition for it, while LuaLaTeX passes it to the font. Find every such character in the chapter by its code point before editing anything.
- Follow-ups
-
- Why did LuaLaTeX accept the character when pdfLaTeX did not?
- What do you replace U+202F, U+200B and U+00A0 with?
- How do you catch these characters before they reach the build?
From the lesson Special characters, quotes, dashes and spaces
Model answer, Pro.In the answer:
- Model answer
- Follow-up answers
- Common mistakes
- Rubric
- Variants
- about 3 minutes
-
Fresher to mid
A 200-page thesis split into chapter files stops with "Runaway argument?" and "File ended while scanning use of \@xdblarg", with no line number of the author's. The submission is tomorrow. How do you find the mistake quickly?
- What it tests
- Reading what a runaway argument does print, narrowing a multi-file document by halving, and fixing without breaking the rest.
- First step
- Read the text after "Runaway argument?": TeX prints what it swallowed, starting at the brace that never closed. Search all chapter files for those first words; they usually lead straight to a heading or caption whose closing brace is missing.
- Follow-ups
-
- The swallowed text is too common to search for. What next?
- How do you halve a document that is split into twelve chapter files?
- How do you stop this kind of mistake reaching the build again?
From the lesson Reading errors and making a minimal example
Model answer, Pro.In the answer:
- Model answer
- Follow-up answers
- Common mistakes
- Rubric
- Variants
- about 3 minutes
-
Fresher to mid
Your report builds with exit status 0 the day before it is due, but the log has 40 "Overfull \hbox" lines, 3 "Missing character" lines and "There were undefined references". You have two hours. What do you fix first, and why?
- What it tests
- Ranking warnings by what the reader loses, reading the size of an overfull box, and checking the result in the PDF instead of the log alone.
- First step
- Rank by what the reader sees. Undefined references print ?? and missing characters leave gaps or wrong words, so both change the content; most overfull boxes stick out by a point or two, which few readers notice. Start with the references and the characters, then the overfull lines by size.
- Follow-ups
-
- How do you tell an overfull box worth fixing from one you can leave?
- The undefined references stay after a second run. What does that tell you?
- How do you confirm in the PDF that the fixes worked?
From the lesson Reading errors and making a minimal example
Model answer, Pro.In the answer:
- Model answer
- Follow-up answers
- Common mistakes
- Rubric
- Variants
- about 3 minutes
All LaTeX & Typst (papers, theses, resumes and slides) interview questions · The LaTeX & Typst (papers, theses, resumes and slides) track