I'm working in a document with lualatex
where I want to use the Adobe Source family: Source Sans Pro, Source Serif Pro and Source Code Pro.
My problem is that Source Serif Pro does not contain italics yet and I use quite \emph
to highlight the text, which isn't noticeable when using this family. And I saw on the font site that the italics will be drawn someday, for now and in the near future it seems to Source Serif will continue without them.
So my first attempt to solution was add the line
\renewcommand{\familydefault}{\sfdefault}
in this way I could use SourcesSansPro
as the main font and in theory be able to use its obliques for \emph
instead. Unfortunately my solution isn't working.
I can think of there may be a way to work with obliques that I don't know, or if isn't possible, redefine the command \emph
to use boldface instead of italics for highlight the text.
This is my MWE BTW:
\documentclass[fontsize=10pt,paper=letter,headings=small,bibliography=totoc,DIV=9,headsepline=true,titlepage=on]{scrartcl}
%\usepackage[spanish,mexico]{babel}
\usepackage{fontspec}
\defaultfontfeatures{Mapping=tex-text}
\usepackage{xunicode}
\usepackage{xltxtra}
\setmainfont{SourceSerifPro}
\setsansfont{SourceSansPro}
\setmonofont{SourceCodePro}
\renewcommand{\familydefault}{\sfdefault}
\begin{document}
This is a proof paragraph containing \emph{highlighted text} and placeholder text:
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\end{document}
\usepackage{sourcecodepro,sourceserifpro} \usepackage[default]{sourcesanspro}
). It is also possible to use bold for \emph (see What is the canonical way to redefine the \emph command). – Silke Aug 4 '15 at 10:00LuaLaTeX
or are made for use withpdfLaTeX
? – Aradnix Aug 4 '15 at 17:14fontspec
and the original OpenType fonts when using LuaLaTeX or XeLaTeX, or converted Type1 fonts when using pdfLaTeX. I keep them reasonably up to date, so if your TeX distribution is up to date, so should the fonts. Also see the documentation for more information. – Silke Aug 4 '15 at 20:27