Italicize within \{itemize}

italicitemize

I am trying to italicize within itemize.

\begin{itemize}
  \item \textit{test}
\end{itemize}

The italicization isn't working within the context of the overleaf template that I am working off of (link).

Best Answer

The template uses a font that has different names for all the styles. This means fontspec cannot automatically find the variants such as bold or italics, and you need to specify these manually.

The easiest way is to (re)set the main font from within your own document with an explicit italics font name:

\setmainfont[Color=primary, ItalicFont=Lato-LigIta, Path = fonts/lato/]{Lato-Lig}

Then use \textit as normal:

\documentclass[]{deedy-resume-openfont}

\setmainfont[Color=primary, ItalicFont=Lato-LigIta, Path = fonts/lato/]{Lato-Lig}

\begin{document}

% [...]

\begin{tightemize}
\item Specialization in \textit{Industrial Management}
\end{tightemize}

Result:

enter image description here

There are various italics fonts to choose from with different weights, like Lato-RegIta, Lato-BolIta etc., located in the /fonts folder of the template. Above I picked LigIta which is the lightest variant, to match the main font Lato-Lig.

Note also that the color name primary is defined by the template, when using this approach in different contexts the color setting can be removed or adjusted to a predefined or other custom defined color name.