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).
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:
Then use
\textit
as normal:Result:
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 pickedLigIta
which is the lightest variant, to match the main fontLato-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.