Sorry I have minimal knowledge of how font families work in TeX. After trying to read the fontspec documentation I get more and more confused. I am trying to get as many variants of Latin Modern Roman working as I can, especially the variants of unslanted roman, oblique small caps. Foe example I do not know how to get small caps oblique to be used when itshape and scshape are both in effect.
I originally wanted \textup
to have the Unslanted variant of the font but doing UprightFont = Latin Modern Roman Unslanted
would change all normal font to that as well. I thought the whole point of \textup
and \textrm
being separate commands is allow distinction with upshape? Anyhow because of this I am defining \textun
for the unslanted variant.
Is it also possible to have fake bold with small caps by using, say, weight
in fontspec such that I can put \textsc{Abc}
in section headings (i.e. such that it works with \bfseries
)?
\documentclass[a4paper,10pt,english,draft]{article}
% Additional Options
\usepackage[log-declarations=false]{xparse}
\usepackage[quiet]{fontspec}
%fontspec options:
\setmainfont[Ligatures=TeX,SmallCapsFont={* Caps}, SlantedFont={* Slanted}]{Latin Modern Roman}
\newfontface\textun{lmromanunsl10-regular.otf}
%I cannot use \newfontface\textun{Latin Modern Roman Unslanted} for some reason...
\begin{document}
Latin Modern Roman normal text \newline
\textit{Latin Modern Roman italic text} \newline
\textsl{Latin Modern Roman Slanted} \newline
\textun{Latin Modern Roman Unslanted} \newline
\textsc{Latin Modern Roman Caps} \newline
\emph{\textsc{Latin Modern Roman Oblique small caps?}}
\end{document}