Your country

Tools that support it use your country for local currency, number formats, units and paper size. Your choice is saved only in this browser.

Type a name or a two-letter code. Use the up and down arrow keys to move through the countries, Enter to choose one and Escape to close.

LaTeX & Typst (papers, theses, resumes and slides) Module 5

Figures, floats and drawing interview questions

Interview questions on figures, floats and drawing: short warm-ups, then what each harder question tests, the first step of a good answer and its follow-ups.

12 questions: 4 warm-ups and 8 with model answers · Levels: Fresher to senior

Warm-up questions

Short questions with short answers, each answered in full.

  1. Fresher to mid

    How does a figure's caption differ from its alternative text?

    Answered in the lesson Images, figures and alternative text

  2. Fresher to mid

    What does [htbp] mean on a LaTeX figure, and what does LaTeX do with [h] alone?

    Answered in the lesson Floats, placement, captions and subfigures

  3. Fresher to mid

    Why keep a paper's diagrams as TikZ or CeTZ code rather than as pictures from a drawing program?

    Answered in the lesson Drawing basics: TikZ and CeTZ

  4. Fresher to mid

    When would you draw a plot in pgfplots or lilaq rather than in Python or R?

    Answered in the lesson Flowcharts, trees, graphs and data plots

Questions with model answers

What each question tests, the first step of a good answer and the follow-ups to expect.

  1. Fresher to mid

    A university's accessibility check rejects your LaTeX thesis because its 40 figures have no alternative text. Some are charts made in Python, some are photographs, a few are decorative rules. How do you add the text, and how do you show that every figure has it before you submit again?

    What it tests
    Switching tagging on, the alt and artifact keys, writing descriptions by kind of image, long descriptions for charts, and checking the built PDF's structure tree rather than the source.
    First step
    Switch tagging on first: without \DocumentMetadata{tagging=on} the alt key is ignored and the PDF has no tags at all. Build once with LuaLaTeX and collect the warnings "Alternative text for graphic is missing". They list the figures to fix, each of which the tags currently name by its file name.
    Follow-ups

    From the lesson Images, figures and alternative text

    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.

    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
  2. Mid to senior

    A co-author sends 15 diagrams as SVG files for a paper that a build server compiles with pdfLaTeX, and the build stops at the first one. How do you get them into the PDF so that they stay sharp and searchable, and the build stays repeatable?

    What it tests
    pdfLaTeX's graphics extensions, converting SVG to PDF, keeping text as text, the svg package's dependence on Inkscape, and making a conversion part of a build that gives the same result every time.
    First step
    Read the error first: "Unknown graphics extension: .svg" means pdfLaTeX cannot read the format at all, so the fix is a conversion, not a path or an option. Convert one diagram to PDF, include it, and check with pdftotext that its labels are still text before you convert the other 14.
    Follow-ups

    From the lesson Images, figures and alternative text

    Model answer, Pro.

    In the answer:

    • Model answer
    • Follow-up answers
    • Common mistakes
    • Rubric
    • Variants
    • about 3 minutes
  3. Fresher to mid

    In a 150-page LaTeX thesis, figures appear two to five pages after they are first cited, and two of them land in the next section. How do you find the cause and fix it, without forcing every figure into place with [H]?

    What it tests
    How LaTeX places floats, the order rule that makes one stuck figure hold back the rest, the size limits for top floats and pages of floats, barriers at section boundaries, and measuring the result instead of eyeballing it.
    First step
    Find the first figure that is late: every later figure of the same kind waits behind it, so the first late one is usually the cause. Look at its letters and its size. A figure taller than about 0.7 of the text height, written without p, can wait to the end of the chapter and take the rest with it.
    Follow-ups

    From the lesson Floats, placement, captions and subfigures

    Model answer, Pro.

    In the answer:

    • Model answer
    • Follow-up answers
    • Common mistakes
    • Rubric
    • Variants
    • about 3 minutes
  4. Mid to senior

    A two-column conference paper needs one diagram across both columns at the top of a page, and a figure of four panels whose parts are cited as Figure 4b and Figure 4c. How do you build both, in LaTeX and in Typst, and what do you check in the PDF before you submit?

    What it tests
    Full-width floats in two-column LaTeX, Typst's placement and scope, subfigures with labels in both systems, and checking references, placement and tags in the built PDF.
    First step
    Separate the two problems. The wide diagram is a float that must span both columns: figure* in LaTeX, a floating figure with scope "parent" in Typst. The panels are one figure with lettered subfigures, each with its own label. Build each in a minimal file before you place them in the paper.
    Follow-ups

    From the lesson Floats, placement, captions and subfigures

    Model answer, Pro.

    In the answer:

    • Model answer
    • Follow-up answers
    • Common mistakes
    • Rubric
    • Variants
    • about 3 minutes
  5. Mid to senior

    A thesis with 60 TikZ figures takes four minutes to build, and co-authors have stopped building it before they commit. How do you make the build fast again while keeping the figures editable, their words searchable and the PDF accessible?

    What it tests
    Measuring where build time goes, stand-alone figure files built once, TikZ's externalisation and its shell-escape cost, letting a build tool rebuild only what changed, and keeping alternative text on included figures.
    First step
    Measure before changing anything: build once with the figures and once with them replaced by empty boxes, or time one figure on its own. If the figures account for most of the four minutes, the fix is to stop drawing all 60 on every run, not to make each one faster.
    Follow-ups

    From the lesson Drawing basics: TikZ and CeTZ

    Model answer, Pro.

    In the answer:

    • Model answer
    • Follow-up answers
    • Common mistakes
    • Rubric
    • Variants
    • about 3 minutes
  6. Mid to senior

    The same block diagram must appear in a LaTeX paper, a Typst report and a web page, and stay identical in all three as it changes. How do you produce and maintain it, and what do you check in each output?

    What it tests
    One source for a figure, cropped PDF and SVG exports, what each SVG export keeps (text, styles, size), fonts across outputs, and alternative text in each medium.
    First step
    Choose one source and generate the rest: either a TikZ stand-alone file, built to a cropped PDF for the paper and converted to SVG for the report and the web, or a CeTZ file, compiled to PDF and exported to SVG by Typst. Two hand-kept copies of one diagram will drift apart.
    Follow-ups

    From the lesson Drawing basics: TikZ and CeTZ

    Model answer, Pro.

    In the answer:

    • Model answer
    • Follow-up answers
    • Common mistakes
    • Rubric
    • Variants
    • about 3 minutes
  7. Fresher to mid

    A journal asks that every figure read in greyscale and for readers with a colour vision deficiency. Your paper has eight pgfplots figures with four coloured lines each and a legend. How do you fix them, and how do you check the result before you submit?

    What it tests
    Using marks and dash patterns as well as colour, choosing distinct combinations for many series, legends and direct labels, and checking a plot's PDF rather than looking at it on one screen.
    First step
    Give every series two signs that are not colour, a mark and a dash pattern, chosen so that no two series share both. With four series, four marks and three dash patterns are enough. Set them once in a cycle list or a style, so the eight figures change together.
    Follow-ups

    From the lesson Flowcharts, trees, graphs and data plots

    Model answer, Pro.

    In the answer:

    • Model answer
    • Follow-up answers
    • Common mistakes
    • Rubric
    • Variants
    • about 3 minutes
  8. Mid to senior

    Your thesis plots come from 3 GB of experiment logs, read by pgfplots through large CSV exports, and a full build now takes ten minutes. How do you restructure the pipeline so that the plots stay reproducible and the build is fast?

    What it tests
    Separating analysis from typesetting, summary tables written by scripts, when to include a finished figure, keeping the pipeline reproducible, and matching fonts between scripts and the thesis.
    First step
    Measure which plots cost the time, then move the reading of raw data out of the thesis: a script reads the logs once and writes for each figure the small table it shows. The thesis plots those tables, so its build no longer depends on the size of the logs.
    Follow-ups

    From the lesson Flowcharts, trees, graphs and data plots

    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

Quick answers and tool search

Type to search tools or to get a quick answer, for example 18% of 2500. Use the up and down arrow keys to move through the results, Enter to choose, and Escape to close.