Skip to content
Tutorials Center
My learning

Topics

Lesson 35 of 38 ยท Projects and Practice

Project: A One-page Resume in LaTeX

Build a one-page resume or CV step by step: page setup, header, sections, custom commands, links, a data-driven generator and tips for applicant tracking systems.

A resume is a perfect first project. It is short, you need it anyway, and it uses real LaTeX skills: page geometry, custom commands, lists with tight spacing, links and typography. In this project you will build a clean one-page resume with a reusable structure, and then generate it from data.

Goals

  • Fit on one page with comfortable margins.
  • Look consistent: the same style for every job, project and degree.
  • Be machine-readable: text selectable, links clickable, and no tricks that break applicant tracking systems (ATS).
  • Be easy to update: adding a job means adding one command call.

Step 1: the setup

LATEX
\documentclass[10pt, a4paper]{article}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[margin=1.6cm, top=1.4cm, bottom=1.4cm]{geometry}
\usepackage{enumitem}
\usepackage{titlesec}
\usepackage[dvipsnames]{xcolor}
\usepackage[colorlinks=true, urlcolor=NavyBlue]{hyperref}

\pagestyle{empty}          % no page number
\setlength{\parindent}{0pt}
\raggedright

\pagestyle{empty} removes the page number, and \raggedright avoids stretched spacing on short lines. Margins of 1.5 to 2 cm leave room for content without crowding.

Step 2: section style

LATEX
\titleformat{\section}
  {\large\bfseries\scshape\color{NavyBlue}}   % format
  {}{0pt}{}                                    % label, sep, before-code
  [\vspace{-0.6em}\hrule\vspace{0.2em}]        % rule below the heading
\titlespacing*{\section}{0pt}{0.9em}{0.4em}

\setlist[itemize]{leftmargin=1.2em, itemsep=0pt, topsep=2pt, parsep=0pt}

With titlesec you restyle \section without touching its content, so you will write \section{Experience} as usual.

Step 3: reusable entry commands

The core idea of the project: one macro per type of entry, so the source holds data and the macro holds layout.

LATEX
% \entry{Title}{Organisation}{Dates}{Location}
\newcommand{\entry}[4]{%
  \textbf{#1}, #2 \hfill #3\\[-1pt]
  \textit{\small #4}\par\vspace{-2pt}
}

% a compact skills line
\newcommand{\skills}[2]{\textbf{#1:} #2\\}

\hfill pushes the date to the right margin. The % at line ends prevents stray spaces; see custom commands.

Step 4: the document

LATEX
\begin{document}

\begin{center}
  {\Huge\bfseries Ada Example}\\[2pt]
  Hamburg, Germany \quad|\quad
  \href{mailto:[email protected]}{[email protected]} \quad|\quad
  \href{https://github.com/ada}{github.com/ada}
\end{center}

\section{Experience}
\entry{Software Engineer}{Example Labs}{2022 -- present}{Remote}
\begin{itemize}
  \item Reduced build time by 40\% by caching dependencies in CI.
  \item Led migration of a monolith to three services.
\end{itemize}

\section{Education}
\entry{BSc Computer Science}{University of Example}{2018 -- 2022}{Graduated with distinction}

\section{Skills}
\skills{Languages}{Python, Go, SQL, \LaTeX}
\skills{Tools}{Git, Docker, Linux}

\end{document}

Compile with pdfLaTeX; the PDF should be one page. If it spills over, reduce itemsep and margins slightly, shorten bullets, or drop the oldest content; do not shrink the font below 10 pt.

Step 5: generate from data

Updating a resume in several versions (an English and a German one, short and long) is easier if the entries live in data and a script writes the .tex. The stand-in below does this in JavaScript; in a real project you can do it with Python and Jinja, with LuaLaTeX reading a JSON file, or with \input of generated fragments. Note that it escapes LaTeX special characters, a step that is easy to forget.

JS Generate resume LaTeX from data

Press Run (or Ctrl + Enter) to see the console output here.

No output.

The output escapes %, & and _ so that "40%" does not turn into a comment and "Data_Co" does not trigger a "Missing $ inserted" error.

Step 6: polish and test

  • ATS-friendly: avoid tables for layout, text in images and exotic fonts; keep standard headings (Experience, Education, Skills). pdfLaTeX output with fontenc is selectable text.
  • Check text extraction: select all in the PDF reader and paste it into a text editor to see the reading order. Or run pdftotext resume.pdf -.
  • Typography: use -- for date ranges, \% for percentages, a non-breaking space in "5~years", and consistent tense for bullets.
  • Metadata: \hypersetup{pdftitle={Ada Example - Resume}, pdfauthor={Ada Example}}.
  • Versions: keep variants in branches or use a macro \newif\iflong to switch details on and off (custom commands).
  • Fonts: for a different look try \usepackage{libertinus} or XeLaTeX with fontspec (page layout and fonts).

Extensions

  1. Two-column layout: a narrow left column for skills, a wide right column for experience, using paracol or minipage.
  2. An icon set with fontawesome5 next to the contact details.
  3. A cover letter using the same macros and \input{preamble}.
  4. A GitHub Action that builds the PDF on each push (version control).

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Why use \newcommand{\entry}[4]{...} for each job?

    A macro separates content from presentation, so changing the style means editing one definition.
  2. 2. What does \hfill do in \textbf{Job} \hfill 2022?

    \hfill adds stretchable space that fills the rest of the line.
  3. 3. Which character must be escaped when generating LaTeX from data?

    % starts a comment and & _ # $ { } also have special meaning, so generated text must escape them.
  4. 4. How can you check that a resume is readable by an applicant tracking system?

    If the extracted text is complete and in the right order, ATS software can parse it.

Summary

  • Set up margins, empty page style and list spacing first; style sections with titlesec.
  • Make reusable macros for entries and skill lines.
  • Generate the .tex from data when you need several versions, and always escape special characters.
  • Keep it one page, ATS friendly and consistent.

Next: Project: A Research Paper