Skip to content

A cv latex template

I started from the twentyseconds latex theme because I think a latex cv looks more professional (it's possible to do things like this):

a-bad-justification

I like the two-column layout but not the left column created outside the document. Because of this I should set the dimensions of the second column exactly like those of the frame containing the text making the use of latex useless.

To replicate this two column configuration I thought to use this clever solution based on tcolorbox package.

First of all I created this basic latex document:

latex
% twentyonesecondcv.cls
\ProvidesClass{twentyonesecondcv}[2017/01/08 CV class]
\documentclass{article}
\usepackage{blindtext}
\usepackage{xcolor}
\usepackage{geometry}
\usepackage[most]{tcolorbox}
\geometry{margin=0pt}

\definecolor{gray}{HTML}{4D4D4D}
\definecolor{sidecolor}{HTML}{E7E7E7}
\definecolor{mainblue}{HTML}{0E5484}
\definecolor{maingray}{HTML}{B9B9B9}
\newtcolorbox{bgbox}[1][]{nobeforeafter,leftright skip=0pt,boxrule=0pt,enhanced jigsaw,sharp corners,#1}

\newcommand{\sidesection}[1]{
    \noindent
    \begin{bgbox}[height=\paperheight,colback=sidecolor,width=0.33\textwidth]
    #1
    \end{bgbox}%
}
\newcommand{\mainsection}[1]{%
    \noindent
    \begin{bgbox}[height=\paperheight,colback=white,width=0.67\textwidth]
    #1
    \end{bgbox}%
}
latex
% tex document
\documentclass[letterpaper]{twentyonesecondcv} % a4paper for A4

\begin{document}
\noindent
\sidesection{col 1, pag 1:: \lipsum[1-3]}
\mainsection{col 2, pag 1:: \textit{\lipsum[1-5]}}
\newpage

\noindent
\sidesection{col 1, pag2:: \lipsum[3-5]}
\mainsection{col 2, pag2:: \textit{\lipsum[3-7]}}
\end{document}

You can notice that this example is already on two pages: it's ok to keep your cv simple and quick to read, but what if you have a long list of experiences to show?

Of course latex is good because the markup engine should keep you free to think about your content, not concentrating on handle manual placements of borders, paragraph positions and so on. My biggest problem about this was filling empty space: commands like \vfill aren't working within newtcolorbox because the box has no fixed height.

Luckily (should be from version 3.70) it's possible to change this behavior; for this you need the options

  • height=<value>
  • text fill

As already said, the box can't use \vfill because initially haven't a fixed height so these options are changing that. I use height=\heigthpage because my boxes height are equals to entire page height.

Last precaution is to avoid commands enforcing fixed value settings like the tikzpicture one used within the custom command \makeheaderprofile.

For some reason instead the custom commands used to create the skill sections (\skills and \skillstext) works fine.

Finally here the result and the github repository!

I published this latex template on this overleaf page.


Updated August 23th: I got notice of a wrong command reference and then I updated the template, check it.

made-with-latex

LaTeX Project Public Licensee

github repository

Donate

Like my website? Pay me a coffee
References are available upon request. I hereby authorize the use of my personal data in compliance with the Italian D. Lgs. 196/2003, art. 13 for the purpose of making me job offers.