How to teach a 60-minute LaTeX workshop for beginners
Build a 60-minute LaTeX workshop around a one-page report. By the end, each learner should be able to compile it and show how inserting a section changes a cross-reference. Give them one misspelled command to fix using the log. Save figures and bibliographies for the next session.
On November 23, Overleaf revisited several academic library teaching cases, including peer instruction and individual consultations at Princeton and longer workshops at the University of Oklahoma. The article by del Junco and colleagues cited in that post was published online in August 2026. The schedule below is a proposed lesson plan; those cases did not evaluate it against other schedules.
Before class: take setup off the clock
Send learners main.tex, the expected PDF and your choice of editor and engine. Ask them to build the example once before class. A browser editor or an existing TeX Live or MiKTeX installation will do. If using a browser, check sign-in, network access and institutional policy ahead of time. The sample is in English and uses the article class with pdfLaTeX. It needs no extra packages, images or bibliography files.
Keep a clean starter file, a completed exercise and both PDFs on hand. If the network fails, learners with a local installation can keep building. Those without a working editor can pair up or predict the output on paper and check it once they have access.
The 60-minute agenda
| Time | Instructor task | Learner checkpoint |
|---|---|---|
| 0–10 min | Open main.tex; confirm the main file and engine | The PDF has Method and Result sections |
| 10–25 min | Show \section, \label and \ref | Explain where Section 1 comes from |
| 25–40 min | Ask for a prediction before inserting Context | Method and its reference both change to 2 |
| 40–50 min | Misspell a command in a practice copy | Find it in the log, fix it and rebuild |
| 50–60 min | Ask learners to repeat the key steps on their own | Save the source and the latest successful PDF |
Teaching illustration: build a working sample, make one edit, then check the change in the PDF.
Copyable exercise: make Section 1 become Section 2
Save the whole example as main.tex. In EasyLaTeX, set it as the main file and choose pdfLaTeX. See editing and compiling in EasyLaTeX for the controls.
\documentclass{article}\begin{document}\section{Method}\label{sec:method}We timed the same task three times.\section{Result}The method is described in Section~\ref{sec:method}.The three runs took 12, 14, and 16 seconds.\end{document}If you run pdfLaTeX locally, run it twice in the directory containing the file. The first pass writes the label information and the next reads it. In a browser editor, wait for the build to finish; if ?? persists, check the log and rebuild if necessary.
pdflatex -interaction=nonstopmode -halt-on-error main.texpdflatex -interaction=nonstopmode -halt-on-error main.tex- In the Result section, find the sentence that refers to
Section 1. - Insert
\section{Context}and a short sentence before Method. Leave\label{sec:method}attached to Method. - Rebuild until the reference updates. The PDF should show Context, Method and Result in order. Result should now refer to
Section 2, with the example times still at 12, 14 and 16 seconds.
If the PDF still shows ??, compare the keys in \label and \ref character for character and confirm which main file you built. Put \label after the numbered item it names. Learn LaTeX’s cross-referencing lesson explains what the auxiliary file does.
Debug one error before everyone leaves
In a practice copy, change \section{Result} to \sectoin{Result}. Find Undefined control sequence as the first error in the current log, locate the typo, fix it and rebuild. Some editors can keep showing a previously generated PDF, so check that the latest build succeeded. In EasyLaTeX, open Bug and look at Original Log; the compilation troubleshooting guide covers other common messages.
Teaching illustration: bring a minimal source file and the first error so a helper can reproduce the problem.
- Identify the main file and compiler.
- Explain why
\labeland\refshare a key. - Show
Section 2in the PDF after inserting Context. - Locate and fix the deliberate typo using the log.
- Save the source and PDF from the last successful build.
For learners stuck on their own thesis template, offer a short follow-up consultation. Ask for the editor or engine name, the smallest source file that reproduces the problem, and the first error message. Replace unpublished material with shareable content before sending the example.