01Choose a route
LaTeX source is ordinary text with typesetting commands; a TeX engine processes it to produce the PDF. You can write and compile online in Overleaf, or install a TeX distribution locally and use an editor such as TeXstudio or VS Code. Overleaf is the quickest start; local LaTeX works offline and keeps the project on your computer.
ctexart class. Follow your institution's required template if one is provided.Pick a document class: article is a good compact report; report supports chapters for longer reports. For a Chinese report use ctexart or ctexrep, compiled with XeLaTeX or LuaLaTeX.
02Organize the project
For a short report, one file is enough. As it grows, separate chapters and assets so they are easy to find:
Keep filenames simple; avoid spaces and special characters. Back up the full project, not just the exported PDF. The PDF is the deliverable, while the .tex, .bib, images, and any required class files let you rebuild it.
03Build your first PDF
Create main.tex and paste this minimal example. Save, then compile with the editor's Recompile button or run pdflatex main.tex from the project folder:
\documentclass[12pt,a4paper]{article}
\usepackage[margin=1in]{geometry}
\usepackage{graphicx}
\usepackage{hyperref}
\title{A Short Report on Your Topic}
\author{Your Name}
\date{\today}
\begin{document}
\maketitle
\begin{abstract}
Briefly state the question, method, main result, and conclusion.
\end{abstract}
\tableofcontents
\section{Introduction}
Explain the problem and your report's purpose.
\section{Method}
Describe the data and procedure.
\section{Results}
Present the evidence and findings.
\section{Conclusion}
Summarize the answer and limitations.
\end{document}For Chinese, change the first line to \documentclass[12pt,a4paper]{ctexart}, set the project compiler to XeLaTeX (or LuaLaTeX), and write the Chinese text directly in UTF-8. A PDF should appear after a successful compile.
04Structure the report
Start from the assignment brief or research question, not from formatting. A common short-report outline is:
- Title and author: make the topic and authorship clear; follow the required cover format.
- Abstract or executive summary: summarize the question, approach, key result, and conclusion. Write it after the report is stable.
- Introduction: give context, the problem, scope, and what the report will answer.
- Methods or approach: explain data, materials, assumptions, and steps so the work can be understood or reproduced.
- Results and discussion: show findings, then interpret them with evidence and limitations.
- Conclusion and references: answer the question, note limits or next steps, and cite sources consistently.
Use \section{...}, \subsection{...}, and \paragraph{...} for hierarchy instead of manually typing section numbers. Let LaTeX manage numbering, contents pages, and cross-references.
\section{Data and methods}\label{sec:methods}
As described in Section~\ref{sec:methods}, we collected ...
\begin{equation}\label{eq:mean}
\bar{x} = \frac{1}{n}\sum_{i=1}^{n} x_i
\end{equation}
Equation~\ref{eq:mean} defines the sample mean.Put \label after the section, figure, table, or equation caption it refers to. Compile again if references show as ??; LaTeX often needs a second pass to resolve cross-references.
05Add figures, tables, and equations
Put image files in a folder such as figures/. Load graphicx, then include the figure with a caption and label so LaTeX can number and reference it:
\begin{figure}[htbp]
\centering
\includegraphics[width=0.8\textwidth]{figures/results.png}
\caption{Observed result for the study.}
\label{fig:results}
\end{figure}
Figure~\ref{fig:results} shows the observed pattern.Use \begin{table}... for a numbered, captioned table and tabular for its cells. In a row, & separates columns and \\ ends the row. If tables are wide, use a suitable page layout or table package rather than shrinking the text until it is unreadable. Put mathematical expressions in math mode: $a^2+b^2=c^2$ inline, or an equation environment for a numbered display.
06Cite sources and build a bibliography
Keep references in a .bib file and cite them by key. A minimal biblatex setup uses Biber to format the bibliography:
\usepackage[backend=biber,style=authoryear]{biblatex}
\addbibresource{references.bib}
% In the report body:
A reliable source supports this statement \parencite{sample2024}.
% Near the end, before \end{document}:
\printbibliography@article{sample2024,
author = {Lee, Alex and Chen, Min},
title = {A Sample Research Article},
journal = {Journal of Example Studies},
year = {2024},
volume = {12},
number = {2},
pages = {34--48},
doi = {10.0000/example.2024.123}
}Replace the sample entry with real, checked bibliographic details. Follow the required citation style (APA, IEEE, Chicago, or a department template); don't mix citation systems. Online editors usually run the bibliography tools automatically. For local builds, use latexmk -pdf main.tex when configured for your chosen engine, or follow the build sequence required by your template.
07Compile, inspect, and debug
Compile early and often. Read the first clear error in the log; later errors may be knock-on effects. A reliable edit cycle is:
- Compile the smallest working document first; add one feature at a time.
- When an error appears, inspect the file and line shown in the log, and check nearby braces, environments, and special characters.
- Fix errors, then compile again. Warnings about unresolved references or citations often need another compilation pass.
- Open the resulting PDF and inspect page breaks, equations, figures, tables, links, fonts, and the bibliography.
- Export/download the PDF and, if needed, save a source archive so the report can be rebuilt.
\end{...} or }: pair every opening command/environment. A literal %, _, &, or # in text: escape it as \%, \_, \&, or \#. “File not found”: check the filename, extension, case, and relative path. Chinese glyphs missing: use XeLaTeX/LuaLaTeX with ctex and a font that covers the characters.Overfull-box warnings mean some content protrudes past its intended line or page width; inspect the PDF around the logged location. Don't hide a real layout issue by blindly shrinking all text.
08Final checklist before sharing
answers the assigned questionfigures and tables are numbered and citedevery citation has a reference entryno unresolved ?? referencesPDF inspected page by page
Check the requested file name, page size, margins, title page, and submission rules. Verify that all fonts and special characters render correctly, links work, and confidential or identifying data is handled appropriately. Keep the editable source project with the final PDF.
09References and further reading
- Overleaf: Learn LaTeX in 30 minutes — first document, structure, figures, tables, and PDF export.
- Overleaf: Chinese typesetting in LaTeX — ctex, XeLaTeX, and LuaLaTeX.
- Overleaf documentation: Working with .bib files — bibliography databases and citation workflows.
- Overleaf documentation: Fixing LaTeX errors — reading compiler errors and debugging.
- LaTeX Project: Core documentation — official manuals and further resources.