I have some emph
asised letters in \textbf{}
, i.e. \textbf{\emph{abc}}
, to bold-italicise the letters. However, the text merely comes to be italic, not bold italic. How can I redefine \emph
to get bold italic letters when I have to use \emph
in \textbf{}
?
I also have to use XeLaTeX
and fontspec
.
MWE
\documentclass[
a4paper]{article}
\usepackage{fontspec}
\setmainfont[Scale = MatchUppercase,BoldFont = Libertinus Sans Bold]{Libertinus Serif}
\setsansfont[Scale = MatchUppercase,BoldFont = LinBiolinum_RB.otf,ItalicFont = LinBiolinum_RI.otf,BoldItalicFont = LinBiolinum_RBO.otf]{LinBiolinum_R.otf}
\begin{document}
I want to make \textbf{\emph{abc}} bold italic,
like
{\sffamily\bfseries\emph{abc}}.
\end{document}
Best Answer
The example from the question works as-is for me with LuaLaTeX, but throws an error with XeLaTeX (
dvipdfmx:fatal: Invalid font: -1 (1)
).In my experience loading files with file names instead of font names is usually much more reliable.
So if we replicate what you already did for Biolinum in
\setsansfont
also for Libertinus in\setmainfont
we end up withwhich works fine with XeLaTeX and LuaLaTeX