Texmaker
Texmaker is a free, open-source desktop editor for writing LaTeX documents. It runs on Windows, macOS, and Linux. A writer edits a plain-text .tex file, runs a LaTeX compiler, and inspects the resulting PDF. Texmaker brings the source editor, build commands, messages, and PDF preview into one window. This makes it a practical tool for learning how a document is built and for working on reports, papers, and other structured documents.[1]
What the editor and compiler do
Texmaker helps with writing and navigation. It highlights LaTeX commands, checks spelling, inserts symbols and common commands, and shows the document outline. Its templates provide starting points for common document types. A separate LaTeX distribution supplies the actual compilers and packages. TeX Live, MiKTeX, and MacTeX are examples of distributions. Texmaker runs the configured compiler using the source file as input. The compiler writes the PDF and a log describing the build.[2][3]
The outline is useful once a document has several sections. In a longer project, Texmaker can designate a main file as the master document so the build runs from that file even while a chapter is open. When the tools are configured for SyncTeX, the editor and PDF viewer can jump between corresponding locations in the source and output.[2]
Build a first PDF
Copy this example into Texmaker and save it as first.tex.
\documentclass{article}
\begin{document}
\section{A first equation}
For a right triangle, the side lengths satisfy
\[
a^2 + b^2 = c^2.
\]
\end{document}
- Make sure a LaTeX distribution is available to Texmaker. Open Configure Texmaker to check the build commands.
- Run a build that uses PDFLaTeX and opens the PDF viewer. Texmaker's Quick Build can run those steps together.
- In the PDF, find the heading and the displayed equation. Change the heading in the source file, save it, and build again. Check where the new heading appears in the PDF and the editor's outline.[2]
Read the build log
When a build fails, start with the first error in Messages / Log file. Texmaker can jump to a source line from the log. Check the command or surrounding lines, make one change, and build again. An error about starting the compiler suggests checking the installation or command path. An error such as Undefined control sequence means the compiler ran and encountered a command it could not recognize.[2]
For a classroom exercise, change \section in the example to \sectoin. Ask learners to identify the error message and the source line before fixing the command. Then have them explain how they know the problem was in the source.
Work on a research document
For a report or paper, use sections to outline the argument and labels to refer to figures, tables, or equations. With BibTeX, a .bib file holds reference records, and the source cites them by key. Texmaker can read detected bibliography files and suggest citation keys as you type. The project's build sequence needs to run the bibliography tool and allow LaTeX to resolve the references. Check the rendered citations and bibliography after adding a source.[2]
Keep the source files, bibliography, figures, and any custom style files together. Write down the main file and build command, especially when sharing a project. A useful reproducibility exercise is to give another learner a copy of the source folder. Ask them to rebuild it using the build notes and record which packages, paths, or commands they had to clarify.
Discussion questions, essay ideas, and learning related AI prompt ideas
- What does working with a source file and a generated PDF change about how you review or share a document?
- Essay idea. Explain how structure, cross-references, and a separate bibliography can help a team maintain a long report. Give one example of a build dependency the team would need to document.
- AI learning prompt. “Explain the first LaTeX error in the log excerpt I provide. Point to the command involved and propose one small change to test.” Check the suggested explanation against the source, rebuild, and verify the result in the log and PDF. Use a fictional sample or share an excerpt suitable for public use.
Further reading
- LaTeX Project documentation, including introductions and reference material.
- Texmaker release notes.
- Texmaker tames LaTeX, Linux.com (2008), a historical review.
- Klaus Braune and colleagues, LaTeX: Basissystem, Layout, Formelsatz, a German-language LaTeX reference.