In this lab you will take the results of a completed data analysis (provided as tables and figures) and produce a professionally formatted report using LaTeX. You will work with an Overleaf template that also compiles locally in VS Code.
By the end of this lab you will be able to:
Estimated time: 90–120 minutes
Tools: Overleaf (free account) and/or VS Code + MiKTeX + LaTeX Workshop
All files are in the Lab-5-Report/ folder:
| Folder / File | Description |
|---|---|
sample-report/Sample-Report.md |
The full report in Markdown — your content source. |
sample-report/tables/*.csv |
Four result tables (descriptive stats, GPA by faculty, regression, t-test). |
sample-report/images/*.png |
Four publication-quality figures generated from the tables. |
latex-template/main.tex |
A complete LaTeX template that already incorporates all content. |
latex-template/references.bib |
BibTeX file with 3 course references. |
latex-template/images/ |
Copies of the figures (ready for \includegraphics). |
Open sample-report/Sample-Report.md and read through the six sections. Notice:
Open the four CSV files in tables/ and the four PNG files in images/. Confirm you understand what each one shows and which section of the report it belongs to.
Choose one of the two paths below.
latex-template/ folder and upload it.main.tex automatically. Click Recompile to generate the PDF.latex-template/ folder in VS Code.main.tex. Press Ctrl+Alt+B (or run LaTeX Workshop: Build with recipe > latexmk).Checkpoint: You should see a multi-page PDF with title, abstract, table of contents, tables, and figures.
Open main.tex and study each element listed below. For each one, find the corresponding line(s) in the .tex file and write down the line number(s) on your worksheet.
| Element | What to find |
|---|---|
| Document class | \documentclass[12pt, a4paper]{article} |
| Page margins | \geometry{margin=2.5cm} |
| Line spacing | \onehalfspacing |
| Image path | \graphicspath{{images/}} |
| Element | LaTeX command |
|---|---|
| Title | \title{...} |
| Author block | \author{...} |
| Date | \date{April 2026} |
| Abstract | \begin{abstract} ... \end{abstract} |
| Table of contents | \tableofcontents |
Find the six \section{} commands and the four \subsection{} commands in the Results section. Note how the table of contents is generated automatically from these.
Find a table environment. Note the structure:
\begin{table}[h]
\centering
\caption{Your caption here.}
\label{tab:yourlabel}
\begin{tabular}{@{}lrr@{}}
\toprule
...
\bottomrule
\end{tabular}
\end{table}
Identify which package provides \toprule, \midrule, \bottomrule (hint: check the preamble).
Find a figure environment:
\begin{figure}[h]
\centering
\includegraphics[width=0.85\textwidth]{filename.png}
\caption{Your caption here.}
\label{fig:yourlabel}
\end{figure}
Find examples of:
Table~\ref{tab:descriptive} — referencing a table.Figure~\ref{fig:faculty_gpa} — referencing a figure.\bibliography{references} — linking the .bib file.Replace the title, author names, and date with your group's information. Recompile and verify the title page updates.
Create a new table anywhere in the Results section that presents the following data (you may invent a label and caption):
| Program | Count | Mean Study Hours |
|---|---|---|
| Undergraduate | 85 | 15.2 |
| Graduate | 75 | 21.8 |
Use the booktabs style (\toprule, \midrule, \bottomrule).
Copy one of the existing PNG files, rename it (e.g., fig5_custom.png), place it in images/, and insert it into the document using \begin{figure}...\end{figure}. Write a declarative caption.
Open references.bib and add a new entry (you may use any real or fictional source). Then cite it in the Introduction using \cite{yourkey}. Recompile twice (once for the .bib, once to resolve references).
Add a sentence in the Discussion section that references your new table and your new figure by their labels (e.g., "As shown in Table~\ref{tab:yourlabel} and Figure~\ref{fig:yourlabel}..."). Verify the numbers auto-update after recompiling.
Recompile one last time. Download or locate the PDF output.
Verify:
??).Submit via the LMS:
main.tex file.references.bib file.Use the provided template and data. Your modifications should be your own work.