I am trying to format a text so that it is bold and italic at the same time. I am doing this by nesting the \textbf
and \textit
commands, what should be no problem according to "Correct" way to bold/italicize text?. However, in the resulting pdf the text appears just bold.
\documentclass[10pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{a4wide}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage[font=small]{caption}
\usepackage{multicol}
\usepackage{etoolbox}
\usepackage{url}
\usepackage{enumitem}
\patchcmd{\chapter}{\if@openright\cleardoublepage\else\clearpage\fi}{}{}{}
\patchcmd{\quote}{\rightmargin}{\leftmargin 1em \rightmargin}{}{}
\renewcommand{\thesection}{\Roman{section}}
\renewcommand{\familydefault}{\sfdefault}
\renewcommand{\baselinestretch}{1.0}
\begin{document}
\begin{multicols}{2}
\textbf{
\textit{Keywords}\textemdash Service oriented Architecture, Service, Component, Functional Safety
}
\end{multicols}{2}
\end{document}
I don't whether this is of relevance, but this code is inside a multicolumn environment.
Best Answer
LaTeX warns to the terminal and log file
which says that the computer modern fonts don't have sans serif bold italic, so it is going to use sans serif bold normal shape instead.
Adding (for example)
selects a similar but different font set that does have this shape.